프로젝트
GitHub에서 보기
ashqal/ChromeLikeSwipeLayout
소개
아래로 당겨 더 많은 작업을 실행하세요!
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalChromeLikeSwipeLayout
Pull down, and execute more action!
Screenshot
Usage
<com.asha.ChromeLikeSwipeLayout
android:id="@+id/chrome_like_swipe_layout"
app:clwl_circleColor="#89d999"
app:clwl_gap="0dp"
app:clwl_radius="45dp"
app:clwl_maxHeight="30dp"
app:clwl_collapseDuration="300"
app:clwl_rippleDuration="300"
app:clwl_gummyDuration="300"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#DDDDDD">
...
</LinearLayout>
</com.asha.ChromeLikeSwipeLayout>
- item selected callback
ChromeLikeSwipeLayout chromeLikeSwipeLayout = (ChromeLikeSwipeLayout) findViewById(R.id.chrome_like_swipe_layout);
ChromeLikeSwipeLayout.makeConfig()
.addIcon(R.drawable.selector_icon_add)
.addIcon(R.drawable.selector_icon_refresh)
.addIcon(R.drawable.selector_icon_close)
.maxHeight(dp2px(40))
.radius(dp2px(35))
.gap(dp2px(5))
.circleColor(0xFF11CCFF)
.gummyDuration(1000)
.rippleDuration(1000)
.collapseDuration(1000)
.listenItemSelected(new ChromeLikeSwipeLayout.IOnItemSelectedListener() {
@Override
public void onItemSelected(int index) {
Toast.makeText(RecyclerViewActivity.this, "onItemSelected:" + index, Toast.LENGTH_SHORT).show();
}
})
.setTo(chromeLikeSwipeLayout);
Supported
- All ViewGroup
Download
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.ashqal:ChromeLikeSwipeLayout:<version>'
}
Release Note
0.4
- maxHeight supported(Thanks to Tommy Chan).
- Using
jitpackinstead of jCenter - NestedScroll supported.
- Fix a few bugs.
0.3
- add multi touch support
##LICENSE
Copyright 2015 Asha
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
관련 프로젝트 살펴보기
불러오는 중…