修改吐司提示风格
This commit is contained in:
		| @@ -1,8 +1,8 @@ | ||||
| #Created by .winboll/winboll_app_build.gradle | ||||
| #Wed Apr 02 11:42:36 GMT 2025 | ||||
| #Wed Apr 02 12:03:21 GMT 2025 | ||||
| stageCount=5 | ||||
| libraryProject=libaes | ||||
| baseVersion=15.2 | ||||
| publishVersion=15.2.4 | ||||
| buildCount=5 | ||||
| buildCount=14 | ||||
| baseBetaVersion=15.2.5 | ||||
|   | ||||
| @@ -1,62 +1,7 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?>  | ||||
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >  | ||||
|     <!-- 边框阴影部分 -->  | ||||
|     <!-- 相对边框的Offset设置(android:left, top, right, bottom) -->  | ||||
|     <item  | ||||
|         android:left="0dp"  | ||||
|         android:top="0dp"  | ||||
|         android:right="0dp"  | ||||
|         android:bottom="0dp">  | ||||
|         <shape android:shape="rectangle" >  | ||||
|             <gradient  | ||||
|                 android:angle="270"  | ||||
|                 android:startColor="@color/colorToastShadow" | ||||
|                 android:centerColor="@color/colorToastShadow" | ||||
|                 android:endColor="@color/colorToastShadow"/>  | ||||
|             <corners  | ||||
|                 android:bottomLeftRadius="10dip"  | ||||
|                 android:bottomRightRadius="10dip"  | ||||
|                 android:topLeftRadius="10dip"  | ||||
|                 android:topRightRadius="10dip" />  | ||||
|         </shape>  | ||||
|     </item> | ||||
|     <!-- 边框部分 --> | ||||
|     <item  | ||||
|         android:left="0dp"  | ||||
|         android:top="0dp"  | ||||
|         android:right="1dp"  | ||||
|         android:bottom="2dp">  | ||||
|         <shape android:shape="rectangle" >  | ||||
|             <gradient  | ||||
|                 android:angle="270"  | ||||
|                 android:startColor="@color/colorToastFrame" | ||||
|                 android:centerColor="@color/colorToastFrame" | ||||
|                 android:endColor="@color/colorToastFrame"/>  | ||||
|             <corners  | ||||
|                 android:bottomLeftRadius="10dip"  | ||||
|                 android:bottomRightRadius="10dip"  | ||||
|                 android:topLeftRadius="10dip"  | ||||
|                 android:topRightRadius="10dip" />  | ||||
|         </shape>  | ||||
|     </item> | ||||
|     <!-- 背景主体部分 --> | ||||
|     <item | ||||
|         android:left="2dp"  | ||||
|         android:top="2dp"  | ||||
|         android:right="3dp"  | ||||
|         android:bottom="3dp">  | ||||
|         <shape android:shape="rectangle" >  | ||||
|             <gradient | ||||
|                 android:type="linear" | ||||
|                 android:angle="90" | ||||
|                 android:startColor="@color/colorToastBackgroung" | ||||
|                 android:centerColor="@color/colorToastBackgroung" | ||||
|                 android:endColor="@color/colorToastBackgroung"/>  | ||||
|             <corners  | ||||
|                 android:bottomLeftRadius="10dip"  | ||||
|                 android:bottomRightRadius="10dip"  | ||||
|                 android:topLeftRadius="10dip"  | ||||
|                 android:topRightRadius="10dip" />  | ||||
|         </shape>  | ||||
|     </item>  | ||||
| </layer-list> | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <shape xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:shape="rectangle"> | ||||
|     <solid android:color="#BF4C4C4C" /> | ||||
|     <!-- 定义成圆角的 --> | ||||
|     <corners android:radius="15dp" /> | ||||
| </shape> | ||||
|   | ||||
| @@ -1,35 +1,38 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <LinearLayout | ||||
| 	xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| 	android:layout_width="wrap_content" | ||||
| 	android:layout_height="wrap_content" | ||||
| 	android:orientation="vertical" | ||||
| 	android:gravity="center_horizontal" | ||||
| 	android:background="@drawable/toast_frame" | ||||
| 	android:padding="10dp"> | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:layout_width="wrap_content" | ||||
|     android:layout_height="wrap_content" | ||||
|     android:orientation="vertical" | ||||
|     android:gravity="center_horizontal" | ||||
|     android:background="@drawable/toast_frame" | ||||
|     android:padding="10dp"> | ||||
|  | ||||
| 	<TextView | ||||
| 		android:layout_width="wrap_content" | ||||
| 		android:layout_height="wrap_content" | ||||
| 		android:textSize="14sp" | ||||
| 		android:textStyle="bold" | ||||
| 		android:id="@+id/customtoastTextView1" | ||||
| 		android:background="#FFFFFFFF" | ||||
| 		android:gravity="center_horizontal"/> | ||||
|     <TextView | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:text="@string/app_name" | ||||
|         android:textStyle="bold" | ||||
|         android:textColor="#FFFFFFFF"/> | ||||
|  | ||||
| 	<View | ||||
| 		android:layout_width="match_parent" | ||||
| 		android:layout_height="1dp" | ||||
| 		android:background="#FFE8E8E8"/> | ||||
|     <LinearLayout | ||||
|         android:orientation="horizontal" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content"> | ||||
|  | ||||
| 	<TextView | ||||
| 		android:layout_width="wrap_content" | ||||
| 		android:layout_height="wrap_content" | ||||
| 		android:textSize="14sp" | ||||
| 		android:text="Text" | ||||
| 		android:id="@+id/customtoastTextView2" | ||||
| 		android:background="#FFFFFFFF" | ||||
| 		android:gravity="center_horizontal"/> | ||||
|         <ImageView | ||||
|             android:layout_width="40dp" | ||||
|             android:layout_height="40dp" | ||||
|             android:src="@drawable/ic_launcher"/> | ||||
|  | ||||
|         <TextView | ||||
|             android:id="@android:id/message" | ||||
|             android:layout_width="wrap_content" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:layout_margin="10dp" | ||||
|             android:textColor="#FFFFFFFF"/> | ||||
|  | ||||
|     </LinearLayout> | ||||
|  | ||||
| </LinearLayout> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ZhanGSKen
					ZhanGSKen