修改页面的bug
This commit is contained in:
@@ -5,6 +5,6 @@
|
||||
<item android:state_focused="true"
|
||||
android:color="#ff000000"/> <!-- focused -->
|
||||
<item android:state_enabled="false"
|
||||
android:color="@color/colorGray"/> <!-- focused -->
|
||||
android:color="@color/colorGrays"/> <!-- focused -->
|
||||
<item android:color="#ff000000"/> <!-- default 默认颜色 -->
|
||||
</selector>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_selected="true" />
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_enabled="false"/>
|
||||
<item android:drawable="@drawable/shape_red_hui_bg_disable" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/shape_red_hui_bg_disable" android:state_selected="true" />
|
||||
<item android:drawable="@drawable/shape_red_hui_bg_disable" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/shape_red_hui_bg_disable" android:state_enabled="false"/>
|
||||
<item android:drawable="@drawable/shape_hui_bg" />
|
||||
</selector>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_selected="true" />
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/shape_red_radius_bg_disable" android:state_enabled="false"/>
|
||||
<item android:drawable="@drawable/shape_red_bg_disable" android:state_checked="true" />
|
||||
<item android:drawable="@drawable/shape_red_bg_disable" android:state_selected="true" />
|
||||
<item android:drawable="@drawable/shape_red_bg_disable" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/shape_red_bg_disable" android:state_enabled="false"/>
|
||||
<item android:drawable="@drawable/shape_radius_bg" />
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/shape_red_bg_disable.xml
Normal file
5
app/src/main/res/drawable/shape_red_bg_disable.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/colorGrays" />
|
||||
<corners android:radius="1dp" />
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/shape_red_hui_bg_disable.xml
Normal file
4
app/src/main/res/drawable/shape_red_hui_bg_disable.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/colorGray" />
|
||||
</selector>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/colorGray" />
|
||||
<solid android:color="@color/colorGrays" />
|
||||
<corners android:radius="50dp" />
|
||||
</shape>
|
||||
@@ -18,19 +18,19 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/message_final"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:padding="10dp"
|
||||
android:src="@drawable/ic_arrow_left" />
|
||||
<!-- style="@style/text_style_toolbar_title"-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:text="消息"
|
||||
android:textColor="#000" />
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
android:text="全部已读"
|
||||
android:textColor="@color/black" />
|
||||
</RelativeLayout>
|
||||
|
||||
<com.jcodecraeer.xrecyclerview.XRecyclerView
|
||||
android:id="@+id/message_recycler"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -19,6 +19,45 @@
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:src="@drawable/icon_arrow" />
|
||||
<TextView
|
||||
android:id="@+id/tv1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="其他"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toBottomOf="@id/road_bg"
|
||||
app:layout_constraintLeft_toLeftOf="@id/road_bg"
|
||||
app:layout_constraintRight_toRightOf="@id/road_bg"
|
||||
app:layout_constraintTop_toTopOf="@id/road_bg" />
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="15dp"
|
||||
android:background="@drawable/top_bg_line_left"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tv1"
|
||||
app:layout_constraintRight_toLeftOf="@id/tv1"
|
||||
app:layout_constraintTop_toTopOf="@id/tv1" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:background="@drawable/top_bg_line_right"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tv1"
|
||||
app:layout_constraintLeft_toRightOf="@id/tv1"
|
||||
app:layout_constraintTop_toTopOf="@id/tv1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_explain"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="任务说明"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tv1"
|
||||
app:layout_constraintRight_toRightOf="@id/tv1"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv1" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -123,6 +123,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitXY"
|
||||
android:background="@color/colorPrimaryBlue"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@@ -167,6 +168,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitXY"
|
||||
android:background="@color/colorPrimaryBlue"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@@ -210,6 +212,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_weight="1"
|
||||
android:scaleType="fitXY"
|
||||
android:background="@color/colorPrimaryBlue"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
|
||||
@@ -16,5 +16,6 @@
|
||||
<color name="colorRed">#F44236</color>
|
||||
<color name="colorText">#87CDF6</color>
|
||||
<color name="colorRead">#ED1931</color>
|
||||
<color name="colorGrays">#BDBDBD</color>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user