Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang committed Feb 25, 2020
1 parent 3561421 commit 0414cbc
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 230 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Of course, you can continue to use the [2.x](https://github.com/CymChad/BaseRecy
## Demo
![](https://github.com/CymChad/BaseRecyclerViewAdapterHelper/blob/master/readme/demo.png)

[国内下载地址](https://www.lanzous.com/i8ate4f)
[国内下载地址](https://www.lanzous.com/i9onlzc)

# proguard-rules.pro
> 此资源库自带混淆规则,并且会自动导入,正常情况下无需手动导入。
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
applicationId "com.chad.baserecyclerviewadapterhelper"
minSdkVersion 16
targetSdkVersion 28
versionCode 7
versionCode 9
versionName "3.0"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ class HomeActivity : AppCompatActivity(), OnItemClickListener {
val top = layoutInflater.inflate(R.layout.top_view, binding.recyclerView, false)
addHeaderView(top)
setOnItemClickListener(this@HomeActivity)
// setOnItemClickListener { adapter, _, position ->
// val item = adapter.data[position] as HomeEntity
// if (!item.isHeader) {
// startActivity(Intent(this@HomeActivity, item.activity))
// }
// }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class HomeAdapter(data: MutableList<HomeEntity>) :

override fun convertHeader(helper: BaseViewHolder, item: HomeEntity) {
helper.setGone(R.id.more, true)
helper.setText(R.id.header, item?.headerTitle)
helper.setText(R.id.header, item.headerTitle)
}
}
8 changes: 0 additions & 8 deletions app/src/main/res/drawable/circle_primary_color.xml

This file was deleted.

30 changes: 14 additions & 16 deletions app/src/main/res/layout/activity_adapter_use.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout style="@style/bg"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/bg">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:paddingLeft="@dimen/dp_10"
android:background="@color/spinner_bg"
android:gravity="center"
android:paddingRight="@dimen/dp_10"
>
android:orientation="horizontal"
android:paddingLeft="@dimen/dp_10"
android:paddingRight="@dimen/dp_10">

<ImageView
android:id="@+id/img_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:id="@+id/img_back"
android:src="@mipmap/back"/>
android:src="@mipmap/back" />

<com.jaredrummler.materialspinner.MaterialSpinner
android:id="@+id/spinner"
Expand All @@ -28,8 +27,7 @@
android:background="@null"
app:ms_background_color="@color/spinner_bg"
app:ms_hide_arrow="false"
app:ms_text_color="#ffffff"
/>
app:ms_text_color="#ffffff" />

<LinearLayout
android:layout_width="match_parent"
Expand All @@ -43,19 +41,19 @@
android:layout_height="wrap_content"
android:text="IsFirstOnly"
android:textColor="@color/new_text_color"
android:textSize="16sp"/>
android:textSize="16sp" />

<com.kyleduo.switchbutton.SwitchButton
android:id="@+id/switch_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:textColor="@drawable/custom_text_state_color"
app:kswTextOff="false"
app:kswTextOn="true"
android:textColor="@drawable/custom_text_state_color"
app:kswThumbDrawable="@drawable/thumb_drawable"
app:kswThumbColor="#555771"
app:kswTintColor="#00ddB6"/>
app:kswThumbDrawable="@drawable/thumb_drawable"
app:kswTintColor="#00ddB6" />

</LinearLayout>
</LinearLayout>
Expand All @@ -65,6 +63,6 @@
android:id="@+id/rv_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fadingEdge="none"/>
android:fadingEdge="none" />

</LinearLayout>
23 changes: 0 additions & 23 deletions app/src/main/res/layout/activity_expandable_item_use.xml

This file was deleted.

68 changes: 0 additions & 68 deletions app/src/main/res/layout/activity_test.xml

This file was deleted.

42 changes: 0 additions & 42 deletions app/src/main/res/layout/item_expandable_lv0.xml

This file was deleted.

41 changes: 0 additions & 41 deletions app/src/main/res/layout/item_expandable_lv1.xml

This file was deleted.

23 changes: 0 additions & 23 deletions app/src/main/res/layout/item_expandable_lv2.xml

This file was deleted.

Binary file modified readme/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0414cbc

Please sign in to comment.