liuzhenxing1118 2 年之前
父節點
當前提交
9406bc74eb

+ 18 - 0
app/src/main/res/drawable-xhdpi/bottom_t_bg.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+android:shape="rectangle">
+    <solid android:color="#F5F6F8" />
+
+    <corners
+    android:bottomLeftRadius="0dp"
+    android:bottomRightRadius="28dp"
+    android:topLeftRadius="0dp"
+    android:topRightRadius="28dp" />
+
+    <gradient
+        android:startColor="#FFD435E2"
+        android:endColor="#FF8927CF"
+        android:angle="270"
+        />
+
+</shape>

二進制
app/src/main/res/drawable-xhdpi/bottom_voice.png


+ 17 - 0
app/src/main/res/drawable-xhdpi/bottom_voice_bg.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+    android:shape="rectangle">
+    <solid android:color="@color/white" />
+
+    <corners
+        android:bottomLeftRadius="28dp"
+        android:bottomRightRadius="28dp"
+        android:topLeftRadius="28dp"
+        android:topRightRadius="28dp" />
+
+    <gradient
+        android:startColor="#FF3EF1B2"
+        android:endColor="#FF2CBDF0"
+        android:angle="270"
+        />
+</shape>

+ 3 - 6
app/src/main/res/layout/chat_fragment_bottom.xml

@@ -22,9 +22,8 @@
             android:textFontWeight="700"
             android:fontFamily="Roboto"
             android:paddingRight="10dp"
-            android:backgroundTint="@color/chat_left"
             android:drawableRight="@drawable/bottom_t"
-            style="@style/xp_style_button_right"
+            android:background="@drawable/bottom_t_bg"
             />
 
         <Button
@@ -38,12 +37,10 @@
             android:textSize="12sp"
             android:textFontWeight="700"
             android:fontFamily="Roboto"
+            android:textAlignment="textStart"
             android:paddingLeft="15dp"
-            android:paddingRight="10dp"
-            android:paddingTop="2dp"
-            android:backgroundTint="@color/chat_Right"
             android:drawableLeft="@drawable/bottom_voice"
-            style="@style/xp_style_button_all"
+            android:background="@drawable/bottom_voice_bg"
             />
 
     </RelativeLayout>