77 任务显示优化。
This commit is contained in:
@@ -26,7 +26,7 @@ public class MyAlbumListAdapter extends BaseQuickAdapter<AlbumBean, BaseViewHold
|
|||||||
helper.setVisible(R.id.iv_album_suo,true);
|
helper.setVisible(R.id.iv_album_suo,true);
|
||||||
}
|
}
|
||||||
helper.setText(R.id.tv_album_name, item.getName());
|
helper.setText(R.id.tv_album_name, item.getName());
|
||||||
helper.setText(R.id.tv_album_count, item.getRead_num());
|
helper.setText(R.id.tv_album_count, "浏览 "+item.getRead_num());
|
||||||
} else {
|
} else {
|
||||||
helper.setImageResource(R.id.riv_album, com.xscm.moduleutil.R.mipmap.create_album);
|
helper.setImageResource(R.id.riv_album, com.xscm.moduleutil.R.mipmap.create_album);
|
||||||
helper.setVisible(R.id.tv_album_name, false);
|
helper.setVisible(R.id.tv_album_name, false);
|
||||||
|
|||||||
@@ -20,12 +20,12 @@
|
|||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:layout_marginTop="@dimen/dp_80"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintTop_toBottomOf="@id/top_bar">
|
app:layout_constraintTop_toBottomOf="@id/top_bar">
|
||||||
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl_top"
|
android:id="@+id/rl_top"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -91,10 +91,12 @@
|
|||||||
android:layout_marginTop="@dimen/dp_12"
|
android:layout_marginTop="@dimen/dp_12"
|
||||||
android:layout_marginRight="@dimen/dp_16"
|
android:layout_marginRight="@dimen/dp_16"
|
||||||
android:textSize="@dimen/sp_16"
|
android:textSize="@dimen/sp_16"
|
||||||
app:tabIndicatorColor="@color/transparent"
|
app:tabIndicatorColor="@color/colorPrimary"
|
||||||
app:tabIndicatorFullWidth="false"
|
app:tabIndicatorFullWidth="false"
|
||||||
app:tabIndicatorGravity="bottom"
|
app:tabIndicatorGravity="bottom"
|
||||||
app:tabIndicatorHeight="0dp"
|
android:background="@color/transparent"
|
||||||
|
app:tabRippleColor="@color/transparent"
|
||||||
|
app:tabIndicatorHeight="@dimen/dp_2"
|
||||||
app:tabMinWidth="@dimen/dp_20"
|
app:tabMinWidth="@dimen/dp_20"
|
||||||
app:tabMode="scrollable"
|
app:tabMode="scrollable"
|
||||||
app:tabSelectedTextColor="@color/black"
|
app:tabSelectedTextColor="@color/black"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/recycle_view"
|
android:id="@+id/recycle_view"
|
||||||
|
android:layout_marginTop="@dimen/dp_10"
|
||||||
android:paddingHorizontal="@dimen/dp_12"
|
android:paddingHorizontal="@dimen/dp_12"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
||||||
|
|||||||
Reference in New Issue
Block a user