Commit f0c45081 by 霍志良

feat:UI修改

parent a981a8fd
...@@ -30,11 +30,14 @@ class RegionRecyclerViewAdapter( ...@@ -30,11 +30,14 @@ class RegionRecyclerViewAdapter(
holder.itemView.tvRegionName.setTypeface(Typeface.DEFAULT_BOLD) holder.itemView.tvRegionName.setTypeface(Typeface.DEFAULT_BOLD)
holder.itemView.tvRegionName.setTextColor(context.resources.getColor(R.color.platform_main_theme)) holder.itemView.tvRegionName.setTextColor(context.resources.getColor(R.color.platform_main_theme))
holder.itemView.view_select.visibility = View.VISIBLE holder.itemView.view_select.visibility = View.VISIBLE
holder.itemView.setBackgroundColor(context.resources.getColor(R.color.white))
} else { } else {
//未选中状态 //未选中状态
holder.itemView.tvRegionName.setTypeface(Typeface.DEFAULT) holder.itemView.tvRegionName.setTypeface(Typeface.DEFAULT)
holder.itemView.tvRegionName.setTextColor(context.resources.getColor(R.color.platform_default_text_color)) holder.itemView.tvRegionName.setTextColor(context.resources.getColor(R.color.platform_default_text_color))
holder.itemView.view_select.visibility = View.INVISIBLE holder.itemView.view_select.visibility = View.INVISIBLE
holder.itemView.setBackgroundColor(context.resources.getColor(R.color.platform_color_F7F7F7))
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp" android:layout_height="40dp"
android:background="?android:attr/selectableItemBackground" android:background="@color/white"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingLeft="16dp" android:paddingLeft="16dp"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
android:text="授权" android:text="授权"
android:textColor="@color/platform_main_theme" android:textColor="@color/platform_main_theme"
android:textSize="@dimen/platform_sp_14" android:textSize="@dimen/platform_sp_14"
android:visibility="gone"></TextView> android:visibility="gone" />
<ImageView <ImageView
android:id="@+id/ivCheckCircle" android:id="@+id/ivCheckCircle"
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical" android:gravity="center_vertical"
android:background="@color/platform_white"> android:background="@color/platform_color_F7F7F7">
<View <View
android:id="@+id/view_select" android:id="@+id/view_select"
android:layout_width="4dp" android:layout_width="4dp"
android:layout_height="21dp" android:layout_height="21dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:background="@color/platform_main_theme" android:background="@color/platform_main_theme"
android:visibility="invisible"/> android:visibility="invisible" />
<TextView <TextView
android:id="@+id/tvRegionName" android:id="@+id/tvRegionName"
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
android:id="@+id/rvRegion" android:id="@+id/rvRegion"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/platform_white" android:background="@color/platform_color_F7F7F7"
android:layout_weight="1" android:layout_weight="1"
android:paddingTop="10dp" android:paddingTop="10dp"
android:overScrollMode="never"/> android:overScrollMode="never"/>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
android:id="@+id/rvSub" android:id="@+id/rvSub"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/platform_color_F7F7F7" android:background="@color/white"
android:layout_weight="2" android:layout_weight="2"
android:paddingTop="10dp" android:paddingTop="10dp"
android:overScrollMode="never"/> android:overScrollMode="never"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment