动态ui调整
@@ -62,7 +62,7 @@ class UserInfoDynamicFragment : BaseViewBindingFragment<FragmentUserinfoDynamicB
|
||||
private fun initDynamicList(list: List<WorldDynamicBean>) {
|
||||
if (dynamicAdapter == null) {
|
||||
binding.rvDynamic.layoutManager = LinearLayoutManager(mContext)
|
||||
binding.rvDynamic.addItemDecoration(HorizontalDecoration(SizeUtils.dp2px(mContext, 15f), false, false))
|
||||
binding.rvDynamic.addItemDecoration(HorizontalDecoration(SizeUtils.dp2px(mContext, 12f), false, false))
|
||||
dynamicAdapter = UserInfoDynamicAdapter(mContext)
|
||||
dynamicAdapter?.setEnableLoadMore(false)
|
||||
dynamicAdapter?.setOnItemChildClickListener { _, view: View, pos: Int ->
|
||||
|
BIN
app/src/main/res/drawable-xhdpi/bg_home_tab.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 756 B |
@@ -193,6 +193,7 @@
|
||||
android:id="@+id/ll_like"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="horizontal">
|
||||
|
||||
@@ -206,7 +207,7 @@
|
||||
<TextView
|
||||
android:id="@+id/tv_like"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_24"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2.5dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
@@ -220,6 +221,7 @@
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_toEndOf="@id/ll_like"
|
||||
android:orientation="horizontal"
|
||||
android:paddingEnd="0dp">
|
||||
@@ -234,7 +236,7 @@
|
||||
<TextView
|
||||
android:id="@+id/tv_comment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_24"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2.5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/color_6D6B89"
|
||||
@@ -253,8 +255,8 @@
|
||||
android:paddingEnd="0dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_22"
|
||||
android:layout_height="@dimen/dp_22"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/icon_square_dynamic_share" />
|
||||
</LinearLayout>
|
||||
|
@@ -134,6 +134,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_like"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_width="66dp"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
@@ -141,8 +142,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_like_pic"
|
||||
android:layout_width="@dimen/dp_22"
|
||||
android:layout_height="@dimen/dp_22"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/icon_dy_list_like_false"
|
||||
android:scaleType="centerInside" />
|
||||
@@ -150,7 +151,7 @@
|
||||
<TextView
|
||||
android:id="@+id/tv_like"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_30"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6.5dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
@@ -162,14 +163,15 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_comment"
|
||||
android:layout_width="66dp"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_toEndOf="@id/ll_like"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_comment_pic"
|
||||
android:layout_width="@dimen/dp_22"
|
||||
android:layout_height="@dimen/dp_22"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/icon_dy_list_comment" />
|
||||
@@ -177,7 +179,7 @@
|
||||
<TextView
|
||||
android:id="@+id/tv_comment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_30"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6.5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/text_normal_c6c6e9"
|
||||
@@ -194,8 +196,8 @@
|
||||
android:paddingEnd="0dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_22"
|
||||
android:layout_height="@dimen/dp_22"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/icon_dy_list_share"
|
||||
|