Compare commits
3 Commits
99de6c05ba
...
4e4673a93b
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e4673a93b | |||
| b385aa7030 | |||
| 55c7f7d327 |
32
aes/src/main/res/drawable-night/bg_frame.xml
Normal file
32
aes/src/main/res/drawable-night/bg_frame.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item
|
||||
android:left="2dp"
|
||||
android:top="2dp"
|
||||
android:right="2dp"
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="#0F000000"
|
||||
android:startColor="#0F000000" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:left="3dp"
|
||||
android:top="3dp"
|
||||
android:right="3dp"
|
||||
android:bottom="5dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="#00000000"
|
||||
android:startColor="#1AFFFFFF" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#FF666666" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -12,11 +12,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0F000000"
|
||||
android:startColor="#0F000000" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景部分 -->
|
||||
@@ -31,11 +27,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0FFFFFFF"
|
||||
android:startColor="#FFFFFFFF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ADsControlView
|
||||
android:id="@+id/ads_control_view"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
6
appbase/src/main/res/drawable/bg_container_border.xml
Normal file
6
appbase/src/main/res/drawable/bg_container_border.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke android:width="1dp" android:color="#FFB0B0B0" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<android.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp">
|
||||
android:padding="16dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<android.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -14,21 +14,21 @@
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0">
|
||||
android:layout_weight="1.0" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_vertical"
|
||||
android:spacing="12dp">
|
||||
android:spacing="12dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="关于应用"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
@@ -40,7 +40,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="应用崩溃测试"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
@@ -52,7 +52,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="应用日志测试"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
@@ -64,7 +64,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="应用日志测试(新窗口)"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
@@ -76,7 +76,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="应用吐司测试"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
@@ -88,7 +88,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="分屏测试"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
@@ -100,7 +100,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="多开窗口"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
android:background="#81C7F5"
|
||||
android:paddingVertical="12dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Main2Activity"
|
||||
android:textSize="24sp"
|
||||
android:textColor="@color/gray_900"/>
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -4,6 +4,6 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<attr name="borderCornerRadius" format="dimension" />
|
||||
<declare-styleable name="AboutView">
|
||||
<attr name="app_name" format="string" />
|
||||
<attr name="app_apkfoldername" format="string" />
|
||||
|
||||
@@ -49,6 +49,10 @@ public class ASupportToolbar extends Toolbar {
|
||||
// 工具栏描边
|
||||
int nStroke = 5;
|
||||
|
||||
TypedArray taBorder = getContext().obtainStyledAttributes(new int[]{R.attr.borderCornerRadius});
|
||||
float cornerRadius = taBorder.getDimension(0, 6 * getResources().getDisplayMetrics().density);
|
||||
taBorder.recycle();
|
||||
|
||||
//分别为开始颜色,中间夜色,结束颜色
|
||||
int colors0[] = { mEndColor , mCenterColor, mStartColor};
|
||||
GradientDrawable gradientDrawable0;
|
||||
@@ -57,7 +61,7 @@ public class ASupportToolbar extends Toolbar {
|
||||
gradientDrawable0.setShape(GradientDrawable.RECTANGLE);
|
||||
gradientDrawable0.setColors(colors0); //添加颜色组
|
||||
gradientDrawable0.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
||||
gradientDrawable0.setCornerRadius(20);
|
||||
gradientDrawable0.setCornerRadius(cornerRadius);
|
||||
|
||||
int colors1[] = { mCenterColor , mCenterColor, mCenterColor };
|
||||
GradientDrawable gradientDrawable1;
|
||||
@@ -66,7 +70,7 @@ public class ASupportToolbar extends Toolbar {
|
||||
gradientDrawable1.setShape(GradientDrawable.RECTANGLE);
|
||||
gradientDrawable1.setColors(colors1); //添加颜色组
|
||||
gradientDrawable1.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
||||
gradientDrawable1.setCornerRadius(20);
|
||||
gradientDrawable1.setCornerRadius(cornerRadius);
|
||||
|
||||
int colors2[] = { mEndColor, mCenterColor, mStartColor };
|
||||
GradientDrawable gradientDrawable2;
|
||||
@@ -75,7 +79,7 @@ public class ASupportToolbar extends Toolbar {
|
||||
gradientDrawable2.setShape(GradientDrawable.RECTANGLE);
|
||||
gradientDrawable2.setColors(colors2); //添加颜色组
|
||||
gradientDrawable2.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
||||
gradientDrawable2.setCornerRadius(20);
|
||||
gradientDrawable2.setCornerRadius(cornerRadius);
|
||||
|
||||
ld = new LayerDrawable(array); //参数为上面的Drawable数组
|
||||
ld.setLayerInset(2, nStroke * 2, nStroke * 2, getWidth() + nStroke * 2, getHeight() + nStroke * 2);
|
||||
|
||||
@@ -51,6 +51,10 @@ public class AToolbar extends Toolbar {
|
||||
// 工具栏描边
|
||||
int nStroke = 5;
|
||||
|
||||
TypedArray taBorder = getContext().obtainStyledAttributes(new int[]{R.attr.borderCornerRadius});
|
||||
float cornerRadius = taBorder.getDimension(0, 6 * getResources().getDisplayMetrics().density);
|
||||
taBorder.recycle();
|
||||
|
||||
//分别为开始颜色,中间夜色,结束颜色
|
||||
int colors0[] = { mEndColor , mCenterColor, mStartColor};
|
||||
GradientDrawable gradientDrawable0;
|
||||
@@ -59,7 +63,7 @@ public class AToolbar extends Toolbar {
|
||||
gradientDrawable0.setShape(GradientDrawable.RECTANGLE);
|
||||
gradientDrawable0.setColors(colors0); //添加颜色组
|
||||
gradientDrawable0.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
||||
gradientDrawable0.setCornerRadius(20);
|
||||
gradientDrawable0.setCornerRadius(cornerRadius);
|
||||
|
||||
int colors1[] = { mCenterColor , mCenterColor, mCenterColor };
|
||||
GradientDrawable gradientDrawable1;
|
||||
@@ -68,7 +72,7 @@ public class AToolbar extends Toolbar {
|
||||
gradientDrawable1.setShape(GradientDrawable.RECTANGLE);
|
||||
gradientDrawable1.setColors(colors1); //添加颜色组
|
||||
gradientDrawable1.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
||||
gradientDrawable1.setCornerRadius(20);
|
||||
gradientDrawable1.setCornerRadius(cornerRadius);
|
||||
|
||||
int colors2[] = { mEndColor, mCenterColor, mStartColor };
|
||||
GradientDrawable gradientDrawable2;
|
||||
@@ -77,7 +81,7 @@ public class AToolbar extends Toolbar {
|
||||
gradientDrawable2.setShape(GradientDrawable.RECTANGLE);
|
||||
gradientDrawable2.setColors(colors2); //添加颜色组
|
||||
gradientDrawable2.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
|
||||
gradientDrawable2.setCornerRadius(20);
|
||||
gradientDrawable2.setCornerRadius(cornerRadius);
|
||||
|
||||
|
||||
ld = new LayerDrawable(array); //参数为上面的Drawable数组
|
||||
|
||||
@@ -13,11 +13,7 @@
|
||||
android:startColor="@color/colorACardShadow"
|
||||
android:centerColor="@color/colorACardShadow"
|
||||
android:endColor="@color/colorACardShadow"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 边框部分 -->
|
||||
@@ -32,11 +28,7 @@
|
||||
android:startColor="@color/colorACardFrame"
|
||||
android:centerColor="@color/colorACardFrame"
|
||||
android:endColor="@color/colorACardFrame"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景主体部分 -->
|
||||
@@ -52,11 +44,7 @@
|
||||
android:startColor="@color/colorACardBackgroung"
|
||||
android:centerColor="@color/colorACardBackgroung"
|
||||
android:endColor="@color/colorACardBackgroung"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -13,11 +13,7 @@
|
||||
android:startColor="?attr/attrAToolbarEndColor"
|
||||
android:centerColor="?attr/attrAToolbarCenterColor"
|
||||
android:endColor="?attr/attrAToolbarStartColor"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 边框部分 -->
|
||||
@@ -32,11 +28,7 @@
|
||||
android:startColor="?attr/attrAToolbarCenterColor"
|
||||
android:centerColor="?attr/attrAToolbarCenterColor"
|
||||
android:endColor="?attr/attrAToolbarCenterColor"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景主体部分 -->
|
||||
@@ -52,11 +44,7 @@
|
||||
android:startColor="?attr/attrAToolbarStartColor"
|
||||
android:centerColor="?attr/attrAToolbarCenterColor"
|
||||
android:endColor="?attr/attrAToolbarEndColor"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
6
libaes/src/main/res/drawable/bg_container_border.xml
Normal file
6
libaes/src/main/res/drawable/bg_container_border.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke android:width="1dp" android:color="#FFB0B0B0" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
@@ -12,11 +12,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0F000000"
|
||||
android:startColor="#0F000000" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景部分 -->
|
||||
@@ -31,11 +27,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="@color/colorAccent"
|
||||
android:startColor="@color/colorAccent" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
android:startColor="@color/colorOHPCTSBackground"
|
||||
android:centerColor="@color/colorOHPCTSBackground"
|
||||
android:endColor="@color/colorOHPCTSBackground"/>
|
||||
<corners android:radius="6dip"/>
|
||||
<corners android:radius="?attr/borderCornerRadius"/>
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 第二进度条 -->
|
||||
@@ -22,7 +22,7 @@
|
||||
android:startColor="@color/colorOHPCTSSecondaryProgress"
|
||||
android:centerColor="@color/colorOHPCTSSecondaryProgress"
|
||||
android:endColor="@color/colorOHPCTSSecondaryProgress"/>
|
||||
<corners android:radius="6dip"/>
|
||||
<corners android:radius="?attr/borderCornerRadius"/>
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
@@ -36,7 +36,7 @@
|
||||
android:startColor="@color/colorOHPCTSProgress"
|
||||
android:centerColor="@color/colorOHPCTSProgress"
|
||||
android:endColor="@color/colorOHPCTSProgress"/>
|
||||
<corners android:radius="6dip"/>
|
||||
<corners android:radius="?attr/borderCornerRadius"/>
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -16,6 +16,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0"
|
||||
android:id="@+id/aboutviewroot_ll"/>
|
||||
android:id="@+id/aboutviewroot_ll" android:background="@drawable/bg_container_border" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -19,13 +19,13 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0"
|
||||
android:id="@+id/activitydrawerLinearLayout1"/>
|
||||
android:id="@+id/activitydrawerLinearLayout1" android:background="@drawable/bg_container_border" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.baoyz.widget.PullRefreshLayout
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -15,7 +15,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0">
|
||||
android:layout_weight="1.0" android:background="@drawable/bg_container_border">
|
||||
|
||||
<androidx.drawerlayout.widget.DrawerLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -26,7 +26,7 @@
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/activitydrawerfragmentFrameLayout1"/>
|
||||
android:id="@+id/activitydrawerfragmentFrameLayout1" android:background="@drawable/bg_container_border" />
|
||||
|
||||
<com.baoyz.widget.PullRefreshLayout
|
||||
android:orientation="vertical"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/activitytestaboutfragmentFrameLayout1"/>
|
||||
android:id="@+id/activitytestaboutfragmentFrameLayout1" android:background="@drawable/bg_container_border" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.AToolbar
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="用户须知"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@android:color/black"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginBottom="16dp" />
|
||||
|
||||
@@ -22,14 +21,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginBottom="20dp">
|
||||
android:layout_marginBottom="20dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="小米广告SDK隐私政策: "
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/darker_gray" />
|
||||
android:textSize="14sp" />
|
||||
|
||||
<!-- 可点击链接(用TextView承载,通过代码设置蓝色+下划线) -->
|
||||
<TextView
|
||||
@@ -44,8 +42,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text=",点击链接查看完整政策"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/darker_gray" />
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 按钮容器(水平排列) -->
|
||||
@@ -53,7 +50,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="end">
|
||||
android:gravity="end" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_disagree"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -22,7 +22,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end">
|
||||
android:gravity="end" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical">
|
||||
android:gravity="center_vertical" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -23,7 +23,7 @@
|
||||
android:layout_height="60dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
android:id="@+id/fragmentviewpageLinearLayout1">
|
||||
android:id="@+id/fragmentviewpageLinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal" android:background="@drawable/bg_container_border">
|
||||
|
||||
<ImageView
|
||||
android:layout_centerVertical="true"
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/ads_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ads_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"/>
|
||||
android:orientation="vertical" android:background="@drawable/bg_container_border" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -4,14 +4,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
android:padding="16dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="应用支持模式设置:"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/black"
|
||||
android:layout_marginBottom="12dp"/>
|
||||
|
||||
<RadioGroup
|
||||
@@ -26,7 +25,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="无扰单机模式"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/darker_gray"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<RadioButton
|
||||
@@ -35,7 +33,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="米盟广告模式"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/darker_gray"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<RadioButton
|
||||
@@ -43,8 +40,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="云宝物语模式"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/darker_gray"/>
|
||||
android:textSize="14sp"/>
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
@@ -54,7 +50,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="0dp"> <!-- 移除顶部多余间距 -->
|
||||
android:layout_marginTop="0dp"> <!-- 移除顶部多余间距 -- android:background="@drawable/bg_container_border">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_winboll_store"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center">
|
||||
android:gravity="center" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -15,7 +15,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center">
|
||||
android:gravity="center" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.AOHPCTCSeekBar
|
||||
android:layout_width="300dp"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<attr name="borderCornerRadius" format="dimension" />
|
||||
<attr name="colorTextColor" format="color" />
|
||||
<attr name="colorPrimary" format="color" />
|
||||
<attr name="colorPrimaryDark" format="color" />
|
||||
|
||||
@@ -456,7 +456,6 @@ public final class CrashHandler {
|
||||
int padding = dp2px(16); // 内边距 16dp(适配不同屏幕)
|
||||
message.setPadding(padding, padding, padding, padding);
|
||||
message.setText(mLog); // 设置崩溃日志
|
||||
message.setTextColor(Color.BLACK); // 文字黑色
|
||||
message.setTextIsSelectable(true); // 支持文本选择(便于手动复制)
|
||||
}
|
||||
|
||||
|
||||
@@ -178,7 +178,6 @@ public class GlobalCrashReportView extends LinearLayout {
|
||||
// 设置默认配色
|
||||
mTitleColor = Color.WHITE;
|
||||
mTitleBackgroundColor = Color.BLACK;
|
||||
mTextColor = Color.BLACK;
|
||||
mTextBackgroundColor = Color.WHITE;
|
||||
// 加载布局
|
||||
inflateView();
|
||||
@@ -210,7 +209,7 @@ public class GlobalCrashReportView extends LinearLayout {
|
||||
);
|
||||
mTextColor = typedArray.getColor(
|
||||
R.styleable.GlobalCrashActivity_colorText,
|
||||
Color.BLACK
|
||||
0
|
||||
);
|
||||
mTextBackgroundColor = typedArray.getColor(
|
||||
R.styleable.GlobalCrashActivity_colorTextBackgound, // 注:原拼写错误,保持与 attrs.xml 一致
|
||||
@@ -253,7 +252,7 @@ public class GlobalCrashReportView extends LinearLayout {
|
||||
|
||||
// 配置日志文本控件样式
|
||||
if (mTvReport != null) {
|
||||
mTvReport.setTextColor(mTextColor);
|
||||
if (mTextColor != 0) mTvReport.setTextColor(mTextColor);
|
||||
mTvReport.setBackgroundColor(mTextBackgroundColor);
|
||||
// 可选:设置日志文本换行方式(默认已换行,此处增强可读性)
|
||||
mTvReport.setSingleLine(false);
|
||||
|
||||
@@ -116,7 +116,6 @@ public class LogView extends RelativeLayout {
|
||||
// 获取Log Level spinner实例
|
||||
mLogLevelSpinner = findViewById(cc.winboll.studio.libappbase.R.id.viewlogSpinner1);
|
||||
|
||||
metTagSearch.setTextColor(mContext.getResources().getColor(R.color.white));
|
||||
metTagSearch.addTextChangedListener(new TextWatcher() {
|
||||
|
||||
@Override
|
||||
@@ -248,7 +247,6 @@ public class LogView extends RelativeLayout {
|
||||
}
|
||||
mSelectAllTAGCheckBox.setLayoutParams(layoutParams2);
|
||||
//mSelectAllTAGCheckBox.setPadding(0,0,0,0);
|
||||
mSelectAllTAGCheckBox.setTextColor(mContext.getResources().getColor(R.color.white));
|
||||
mSelectAllTAGCheckBox.setOnClickListener(new View.OnClickListener(){
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
@@ -502,7 +500,6 @@ public class LogView extends RelativeLayout {
|
||||
}
|
||||
holder.tvText.setLayoutParams(layoutParams);
|
||||
holder.tvText.setPadding(0,0,0,0);
|
||||
holder.tvText.setTextColor(mContext.getResources().getColor(R.color.white));
|
||||
holder.cbChecked.setChecked(item.isChecked());
|
||||
holder.cbChecked.setLayoutParams(layoutParams);
|
||||
holder.cbChecked.setPadding(0,0,0,0);
|
||||
|
||||
@@ -3,6 +3,7 @@ package cc.winboll.studio.libappbase.views;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.res.TypedArray;
|
||||
import android.net.Uri;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.Gravity;
|
||||
@@ -421,8 +422,11 @@ public class AboutView extends LinearLayout {
|
||||
*/
|
||||
private android.graphics.drawable.Drawable create_item_background() {
|
||||
android.graphics.drawable.GradientDrawable drawable = new android.graphics.drawable.GradientDrawable();
|
||||
TypedArray taBorder = mItemContext.obtainStyledAttributes(new int[]{R.attr.borderCornerRadius});
|
||||
float cornerRadius = taBorder.getDimension(0, 6 * mItemContext.getResources().getDisplayMetrics().density);
|
||||
taBorder.recycle();
|
||||
drawable.setStroke(1, mItemContext.getResources().getColor(R.color.gray_200));
|
||||
drawable.setCornerRadius(4);
|
||||
drawable.setCornerRadius(cornerRadius);
|
||||
drawable.setColor(mItemContext.getResources().getColor(android.R.color.white));
|
||||
return drawable;
|
||||
}
|
||||
@@ -449,7 +453,6 @@ public class AboutView extends LinearLayout {
|
||||
TextView tvTitle = new TextView(mItemContext);
|
||||
tvTitle.setText(mTitle);
|
||||
tvTitle.setTextSize(16);
|
||||
tvTitle.setTextColor(mItemContext.getResources().getColor(R.color.gray_900));
|
||||
llText.addView(tvTitle);
|
||||
// 内容
|
||||
TextView tvContent = new TextView(mItemContext);
|
||||
|
||||
@@ -154,7 +154,6 @@ public class LogTagSpinner extends Spinner {
|
||||
// 4. 文字对齐(垂直居中+靠左,符合常规 UI 设计)
|
||||
//itemTv.setGravity(View.GRAVITY_CENTER_VERTICAL | View.GRAVITY_START);
|
||||
// 5. 文字颜色(统一深色,可改为项目颜色资源)
|
||||
itemTv.setTextColor(this.mContext.getColor(R.color.white));
|
||||
itemTv.setBackgroundColor(this.mContext.getColor(R.color.btn_gray_normal));
|
||||
// 6. 文字溢出处理(最多 2 行,超出省略,避免长标签换行过多)
|
||||
itemTv.setSingleLine(false);
|
||||
|
||||
@@ -5,9 +5,5 @@
|
||||
android:width="1dp"
|
||||
android:color="#000000" /> <!-- 这里可调整边框宽度和颜色 -->
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
|
||||
6
libappbase/src/main/res/drawable/bg_container_border.xml
Normal file
6
libappbase/src/main/res/drawable/bg_container_border.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke android:width="1dp" android:color="#FFB0B0B0" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
@@ -12,11 +12,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="@color/colorPrimary"
|
||||
android:startColor="@color/colorPrimary" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景部分 -->
|
||||
@@ -31,11 +27,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="@color/colorPrimary"
|
||||
android:startColor="@color/colorPrimary" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<android.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -16,5 +16,5 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0"
|
||||
android:id="@+id/aboutviewroot_ll"/>
|
||||
android:id="@+id/aboutviewroot_ll" android:background="@drawable/bg_container_border" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libappbase.GlobalCrashReportView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libappbase.LogView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="正在监听NFC卡片,请贴近设备检测密钥..."
|
||||
android:textSize="17sp"
|
||||
android:textColor="@android:color/black"
|
||||
android:gravity="center"
|
||||
android:padding="12dp"
|
||||
android:layout_marginBottom="30dp"/>
|
||||
@@ -26,7 +25,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="私钥内容:无"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/darker_gray"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:maxLines="5"
|
||||
android:ellipsize="end"/>
|
||||
@@ -38,7 +36,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="公钥内容:无"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@android:color/darker_gray"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:maxLines="5"
|
||||
android:ellipsize="end"/>
|
||||
@@ -50,7 +47,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="功能按钮待激活"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@android:color/white"
|
||||
android:backgroundTint="@android:color/holo_blue_light"
|
||||
android:padding="14dp"
|
||||
android:enabled="false"/>
|
||||
|
||||
@@ -13,13 +13,12 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="应用指纹校验"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/gray_900"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginBottom="12dp"/>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_sign_fingerprint"
|
||||
@@ -45,8 +44,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:textSize="11sp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/gray_900"/>
|
||||
android:gravity="center"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="设置服务器地址"
|
||||
android:textSize="16sp"
|
||||
android:textColor="#212121"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
|
||||
@@ -33,7 +32,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="end">
|
||||
android:gravity="end" android:background="@drawable/bg_container_border">
|
||||
|
||||
<!-- 取消按钮 -->
|
||||
<Button
|
||||
@@ -51,8 +50,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="确认"
|
||||
android:textSize="14sp"
|
||||
android:backgroundTint="#2196F3"
|
||||
android:textColor="#FFFFFF"/>
|
||||
android:backgroundTint="#2196F3"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -12,7 +12,7 @@
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="16dp">
|
||||
android:paddingBottom="16dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libappbase.views.DebugSwitchImageView
|
||||
android:id="@+id/iv_app_icon"
|
||||
@@ -25,8 +25,7 @@
|
||||
android:id="@+id/tv_app_name_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/gray_900"/>
|
||||
android:textSize="18sp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_app_desc"
|
||||
@@ -34,8 +33,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/gray_500"/>
|
||||
android:textSize="14sp"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
@@ -48,7 +46,7 @@
|
||||
android:id="@+id/ll_function_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"/>
|
||||
android:orientation="vertical" android:background="@drawable/bg_container_border" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
@@ -56,7 +54,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="8dp"
|
||||
android:spacing="20dp">
|
||||
android:spacing="20dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<ImageButton
|
||||
android:layout_width="48dp"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/viewglobalcrashreportLinearLayout1">
|
||||
android:id="@+id/viewglobalcrashreportLinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<android.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -15,11 +15,11 @@
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0">
|
||||
android:layout_weight="1.0" android:background="@drawable/bg_container_border">
|
||||
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
android:layout_height="@dimen/log_button_height"
|
||||
android:textSize="@dimen/log_text_size"
|
||||
android:text="Clean"
|
||||
android:textColor="@color/white"
|
||||
android:backgroundTint="@drawable/btn_gray_bg"
|
||||
android:layout_centerVertical="true"
|
||||
android:id="@+id/viewlogButtonClean"
|
||||
@@ -34,8 +33,7 @@
|
||||
android:layout_toRightOf="@+id/viewlogButtonClean"
|
||||
android:layout_centerVertical="true"
|
||||
android:id="@+id/viewlogTextView1"
|
||||
android:background="@color/btn_gray_normal"
|
||||
android:textColor="@color/black"/>
|
||||
android:background="@color/btn_gray_normal"/>
|
||||
|
||||
<cc.winboll.studio.libappbase.widget.LogTagSpinner
|
||||
android:layout_width="wrap_content"
|
||||
@@ -54,14 +52,13 @@
|
||||
android:text="Selectable"
|
||||
android:background="@color/btn_gray_normal"
|
||||
android:id="@+id/viewlogCheckBoxSelectable"
|
||||
android:padding="@dimen/log_text_padding"
|
||||
android:textColor="@color/white"/>
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:padding="@dimen/log_text_padding"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="@dimen/log_button_width"
|
||||
android:layout_height="@dimen/log_button_height"
|
||||
android:textSize="@dimen/log_text_size"
|
||||
android:textColor="@color/white"
|
||||
android:backgroundTint="@drawable/btn_gray_bg"
|
||||
android:text="Copy"
|
||||
android:layout_alignParentRight="true"
|
||||
@@ -89,6 +86,7 @@
|
||||
android:id="@+id/viewlogCheckBox1"
|
||||
android:background="@drawable/bg_border_round"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:layout_marginRight="5dp"/>
|
||||
|
||||
<EditText
|
||||
@@ -123,7 +121,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1.0"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_below="@+id/viewlogLinearLayout1">
|
||||
android:layout_below="@+id/viewlogLinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
@@ -136,7 +134,6 @@
|
||||
android:layout_height="match_parent"
|
||||
android:textSize="@dimen/log_text_size"
|
||||
android:text="Text"
|
||||
android:textColor="#FF00FF00"
|
||||
android:textIsSelectable="true"
|
||||
android:id="@+id/viewlogTextViewLog"/>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<attr name="borderCornerRadius" format="dimension" />
|
||||
<attr name="themeGlobalCrashActivity" format="reference"/>
|
||||
|
||||
<declare-styleable name="GlobalCrashActivity">
|
||||
|
||||
@@ -334,13 +334,6 @@ public class ComposeSMSActivity extends WinBoLLActivity implements IWinBoLLActiv
|
||||
mlvContracts.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||
@Override
|
||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||
// 选中时可添加额外反馈(如改变文本颜色,可选)
|
||||
if (view != null) {
|
||||
TextView tvName = (TextView) view.findViewById(R.id.listviewcontractsTextView1);
|
||||
TextView tvPhone = (TextView) view.findViewById(R.id.listviewcontractsTextView2);
|
||||
if (tvName != null) tvName.setTextColor(getResources().getColor(R.color.white));
|
||||
if (tvPhone != null) tvPhone.setTextColor(getResources().getColor(R.color.white));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2,7 +2,6 @@ package cc.winboll.studio.mymessagemanager.dialogs;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
@@ -68,7 +67,6 @@ public class CharsetRefuseEditDialog extends Dialog {
|
||||
TextView titleTv = new TextView(getContext());
|
||||
titleTv.setText("拒绝显示字符集编辑");
|
||||
titleTv.setTextSize(18);
|
||||
titleTv.setTextColor(Color.BLACK);
|
||||
titleTv.setGravity(Gravity.CENTER);
|
||||
titleTv.setPadding(0, 0, 0, 20); // 标题与编辑框间距
|
||||
rootLayout.addView(titleTv);
|
||||
@@ -100,7 +98,6 @@ public class CharsetRefuseEditDialog extends Dialog {
|
||||
TextView cancelBtn = new TextView(getContext());
|
||||
cancelBtn.setText("取消");
|
||||
cancelBtn.setTextSize(16);
|
||||
cancelBtn.setTextColor(Color.parseColor("#666666"));
|
||||
cancelBtn.setPadding(20, 10, 20, 10);
|
||||
cancelBtn.setOnClickListener(new View.OnClickListener(){
|
||||
|
||||
@@ -115,7 +112,6 @@ public class CharsetRefuseEditDialog extends Dialog {
|
||||
TextView confirmBtn = new TextView(getContext());
|
||||
confirmBtn.setText("确定");
|
||||
confirmBtn.setTextSize(16);
|
||||
confirmBtn.setTextColor(Color.parseColor("#0066CC"));
|
||||
confirmBtn.setPadding(20, 10, 20, 10);
|
||||
confirmBtn.setOnClickListener(new View.OnClickListener(){
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ package cc.winboll.studio.mymessagemanager.views;
|
||||
* @Date 2023/07/25 13:37:55
|
||||
*/
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.Switch;
|
||||
@@ -39,10 +41,10 @@ public class ConfirmSwitchView extends Switch {
|
||||
|
||||
void initView(Context context) {
|
||||
mContext = context;
|
||||
/*TypedArray a = mContext.obtainStyledAttributes(attrs, R.styleable.SMSView, 0, 0);
|
||||
colorInbox = a.getColor(R.styleable.SMSView_attrSMSViewInboxColor, 0);
|
||||
colorSend = a.getColor(R.styleable.SMSView_attrSMSViewSendColor, 0);
|
||||
a.recycle();*/
|
||||
TypedArray a = context.obtainStyledAttributes(new int[]{android.R.attr.textColorPrimary});
|
||||
ColorStateList csl = a.getColorStateList(0);
|
||||
if (csl != null) setTextColor(csl);
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
32
mymessagemanager/src/main/res/drawable-night/bg_frame.xml
Normal file
32
mymessagemanager/src/main/res/drawable-night/bg_frame.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item
|
||||
android:left="2dp"
|
||||
android:top="2dp"
|
||||
android:right="2dp"
|
||||
android:bottom="2dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="#0F000000"
|
||||
android:startColor="#0F000000" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<item
|
||||
android:left="3dp"
|
||||
android:top="3dp"
|
||||
android:right="3dp"
|
||||
android:bottom="5dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="#00000000"
|
||||
android:startColor="#1AFFFFFF" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#FF666666" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke android:width="1dp" android:color="#FFB0B0B0" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
@@ -12,11 +12,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0F000000"
|
||||
android:startColor="#0F000000" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景部分 -->
|
||||
@@ -31,11 +27,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0FFFFFFF"
|
||||
android:startColor="#FFFFFFFF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -12,11 +12,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0F000000"
|
||||
android:startColor="#0F000000" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景部分 -->
|
||||
@@ -31,11 +27,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#AF000000"
|
||||
android:startColor="#AF000000" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -12,11 +12,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0FFFFFFF"
|
||||
android:startColor="#0FFFFFFF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景部分 -->
|
||||
@@ -31,11 +27,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#CFFFFFFF"
|
||||
android:startColor="#CFFFFFFF" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -16,6 +16,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0"
|
||||
android:id="@+id/aboutviewroot_ll"/>
|
||||
android:id="@+id/aboutviewroot_ll" android:background="@drawable/bg_container_border" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.AToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -15,13 +15,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0"
|
||||
android:padding="4dp">
|
||||
android:padding="4dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:spacing="12dp">
|
||||
android:spacing="12dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
@@ -45,7 +45,7 @@
|
||||
android:background="#999999"
|
||||
android:layout_marginBottom="8dp"/>
|
||||
|
||||
<Switch
|
||||
<cc.winboll.studio.mymessagemanager.views.ConfirmSwitchView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:text="回收站短信保护式预览开关:"
|
||||
@@ -65,7 +65,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginLeft="5dp">
|
||||
android:layout_marginLeft="5dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
@@ -96,7 +96,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp">
|
||||
android:layout_marginRight="5dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -153,7 +153,8 @@
|
||||
android:text="简洁模式(SMSRecycleActivity)"
|
||||
android:id="@+id/activityappsettingsRadioButton1"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="14sp"/>
|
||||
android:textSize="14sp"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="match_parent"
|
||||
@@ -161,7 +162,8 @@
|
||||
android:text="自由模式(SMSRecycle2Activity)"
|
||||
android:id="@+id/activityappsettingsRadioButton2"
|
||||
android:gravity="center_vertical"
|
||||
android:textSize="14sp"/>
|
||||
android:textSize="14sp"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
@@ -208,7 +210,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginLeft="5dp">
|
||||
android:layout_marginLeft="5dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -228,7 +230,7 @@
|
||||
android:layout_marginHorizontal="8dp"
|
||||
android:textSize="13sp"/>
|
||||
|
||||
<Switch
|
||||
<cc.winboll.studio.mymessagemanager.views.ConfirmSwitchView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/activityappsettingsSwitch1"/>
|
||||
@@ -265,7 +267,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp">
|
||||
android:layout_marginRight="5dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
@@ -299,7 +301,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right"
|
||||
android:layout_marginTop="10dp">
|
||||
android:layout_marginTop="10dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.AToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -19,7 +19,7 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/activitycomposesmsRelativeLayout1">
|
||||
android:id="@+id/activitycomposesmsRelativeLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
@@ -30,7 +30,7 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_alignParentLeft="true">
|
||||
android:layout_alignParentLeft="true" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -62,7 +62,7 @@
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical">
|
||||
android:gravity="center_vertical" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -87,7 +87,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:padding="10dp"
|
||||
android:layout_weight="1.0">
|
||||
android:layout_weight="1.0" android:background="@drawable/bg_container_border">
|
||||
|
||||
<!-- 关键修改:添加 listSelector 属性,关联选中样式 -->
|
||||
<ListView
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -13,7 +13,7 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.mymessagemanager.views.ConfirmSwitchView
|
||||
android:layout_width="match_parent"
|
||||
@@ -55,7 +55,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0">
|
||||
android:layout_weight="1.0" android:background="@drawable/bg_container_border">
|
||||
|
||||
<com.baoyz.widget.PullRefreshLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -65,7 +65,7 @@
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/activitymainScrollView1">
|
||||
android:id="@+id/activitymainScrollView1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.mymessagemanager.views.PhoneListViewForScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.AToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -14,7 +14,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0">
|
||||
android:layout_weight="1.0" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.AToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -14,13 +14,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0"
|
||||
android:id="@+id/activitysmsScrollView2">
|
||||
android:id="@+id/activitysmsScrollView2" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/activitysmsLinearLayout1">
|
||||
android:id="@+id/activitysmsLinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.mymessagemanager.views.BottomPositionFixedScrollView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -46,27 +46,30 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Accept"
|
||||
android:id="@+id/activitysmsacceptrulesettingRadioButton1"
|
||||
android:onClick="onAcceptRuleType"/>
|
||||
android:onClick="onAcceptRuleType"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Refuse"
|
||||
android:id="@+id/activitysmsacceptrulesettingRadioButton2"
|
||||
android:onClick="onRefuseRuleType"/>
|
||||
android:onClick="onRefuseRuleType"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Enable"
|
||||
android:id="@+id/activitysmsacceptrulesettingCheckBox1"/>
|
||||
android:id="@+id/activitysmsacceptrulesettingCheckBox1"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
@@ -15,7 +15,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.0">
|
||||
android:layout_weight="1.0" android:background="@drawable/bg_container_border">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_above="@+id/activityttsplayruleLinearLayout2"
|
||||
@@ -31,7 +31,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="234dp"
|
||||
android:id="@+id/activityttsplayruleLinearLayout1"/>
|
||||
android:id="@+id/activityttsplayruleLinearLayout1" android:background="@drawable/bg_container_border" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
@@ -45,22 +45,22 @@
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal">
|
||||
android:layout_gravity="center_horizontal" android:background="@drawable/bg_container_border">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -92,7 +92,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal">
|
||||
android:layout_gravity="center_horizontal" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -113,7 +113,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal">
|
||||
android:layout_gravity="center_horizontal" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -134,7 +134,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center">
|
||||
android:gravity="center" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp">
|
||||
android:padding="10dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<!-- 新增:自定义ProtectModeTextView -->
|
||||
<cc.winboll.studio.mymessagemanager.views.ProtectModeTextView
|
||||
@@ -27,7 +27,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="right">
|
||||
android:gravity="right" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
@@ -13,12 +13,12 @@
|
||||
android:padding="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/itemttsplayruleLinearLayout1">
|
||||
android:id="@+id/itemttsplayruleLinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -37,7 +37,7 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
@@ -13,12 +13,12 @@
|
||||
android:padding="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/itemttsplayrulesimpleLinearLayout1">
|
||||
android:id="@+id/itemttsplayrulesimpleLinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -37,7 +37,7 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
android:padding="16dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_content"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<View
|
||||
android:layout_width="32dp"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
@@ -13,7 +13,7 @@
|
||||
android:padding="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="right"
|
||||
android:id="@+id/listviewsmspart1LinearLayout1">
|
||||
android:id="@+id/listviewsmspart1LinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.mymessagemanager.views.DateAgoTextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical">
|
||||
android:gravity="center_vertical" android:background="@drawable/bg_container_border">
|
||||
|
||||
<EditText
|
||||
android:layout_width="0dp"
|
||||
@@ -28,25 +28,28 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Accept"
|
||||
android:id="@+id/listviewsmsacceptruleRadioButton1"/>
|
||||
android:id="@+id/listviewsmsacceptruleRadioButton1"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
<RadioButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Refuse"
|
||||
android:id="@+id/listviewsmsacceptruleRadioButton2"/>
|
||||
android:id="@+id/listviewsmsacceptruleRadioButton2"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/listviewsmsacceptruleCheckBox1"
|
||||
android:text="Enable"/>
|
||||
android:text="Enable"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -56,7 +59,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end">
|
||||
android:gravity="end" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -36,7 +36,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Enable"
|
||||
android:id="@+id/listviewsmsacceptrulesimpleCheckBox1"
|
||||
android:enabled="false"/>
|
||||
android:enabled="false"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true">
|
||||
android:layout_centerVertical="true" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
@@ -24,7 +24,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical">
|
||||
android:gravity="center_vertical" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -44,7 +44,7 @@
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<View
|
||||
android:layout_width="32dp"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="5dp">
|
||||
android:padding="5dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="10dp">
|
||||
android:padding="10dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.mymessagemanager.views.TTSRuleView
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/remoteviewLinearLayout1">
|
||||
android:id="@+id/remoteviewLinearLayout1" android:background="@drawable/bg_container_border">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="60dp"
|
||||
@@ -16,7 +16,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical">
|
||||
android:gravity="center_vertical" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -12,13 +12,12 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/app_name"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#FF000000"/>
|
||||
android:textStyle="bold"/>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
@@ -29,8 +28,7 @@
|
||||
android:id="@android:id/message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:textColor="#FF000000"/>
|
||||
android:layout_margin="10dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp">
|
||||
android:padding="10dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -14,13 +14,12 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="10dp"
|
||||
android:gravity="center_horizontal">
|
||||
android:gravity="center_horizontal" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/app_name"
|
||||
android:textColor="#FF000000"
|
||||
android:textStyle="bold"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
@@ -34,8 +33,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Click To Stop TTS Play"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="#FF000000"/>
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
12
mymessagemanager/src/main/res/values-night/colors.xml
Normal file
12
mymessagemanager/src/main/res/values-night/colors.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="text_color_primary_default">#FF999999</color>
|
||||
<color name="text_color_primary_depth">#FF999999</color>
|
||||
<color name="text_color_primary_sky">#FF999999</color>
|
||||
<color name="text_color_primary_golden">#FF999999</color>
|
||||
<color name="text_color_primary_memor">#FF999999</color>
|
||||
<color name="text_color_primary_tao">#FF999999</color>
|
||||
<color name="window_background">#FF000000</color>
|
||||
|
||||
</resources>
|
||||
58
mymessagemanager/src/main/res/values-night/styles.xml
Normal file
58
mymessagemanager/src/main/res/values-night/styles.xml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="MyAppTheme" parent="AESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_default</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_default</item>
|
||||
<item name="android:textColor">@color/text_color_primary_default</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_default</item>
|
||||
</style>
|
||||
|
||||
<style name="MyDepthAESTheme" parent="DepthAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_depth</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_depth</item>
|
||||
<item name="android:textColor">@color/text_color_primary_depth</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_depth</item>
|
||||
</style>
|
||||
|
||||
<style name="MySkyAESTheme" parent="SkyAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_sky</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_sky</item>
|
||||
<item name="android:textColor">@color/text_color_primary_sky</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_sky</item>
|
||||
</style>
|
||||
|
||||
<style name="MyGoldenAESTheme" parent="GoldenAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_golden</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_golden</item>
|
||||
<item name="android:textColor">@color/text_color_primary_golden</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_golden</item>
|
||||
</style>
|
||||
|
||||
<style name="MyMemorAESTheme" parent="MemorAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_memor</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_memor</item>
|
||||
<item name="android:textColor">@color/text_color_primary_memor</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_memor</item>
|
||||
</style>
|
||||
|
||||
<style name="MyTaoAESTheme" parent="TaoAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_tao</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_tao</item>
|
||||
<item name="android:textColor">@color/text_color_primary_tao</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_tao</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
@@ -1,6 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!--<attr name="appTheme" format="reference"/>-->
|
||||
<attr name="borderCornerRadius" format="dimension" />
|
||||
<attr name="textColorPrimary" format="color" />
|
||||
<declare-styleable name="SMSView">
|
||||
<attr name="attrSMSType" format="string"/>
|
||||
<attr name="attrSMSViewSendColor" format="color" />
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
|
||||
<color name="text_color_primary_default">#FF212121</color>
|
||||
<color name="text_color_primary_depth">#FF1A237E</color>
|
||||
<color name="text_color_primary_sky">#FF01579B</color>
|
||||
<color name="text_color_primary_golden">#FF3E2723</color>
|
||||
<color name="text_color_primary_memor">#FF4A148C</color>
|
||||
<color name="text_color_primary_tao">#FF424242</color>
|
||||
<color name="window_background">#FFFFFFFF</color>
|
||||
|
||||
<color name="colorSMSSendColor">#FFDCDA3D</color>
|
||||
<color name="colorSMSInboxColor">#FF3DDC84</color>
|
||||
<color name="colorTTSRuleViewBackgroundColor">#FFDCDA3D</color>
|
||||
|
||||
@@ -2,7 +2,13 @@
|
||||
<resources>
|
||||
|
||||
<style name="MyAppTheme" parent="AESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_default</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_default</item>
|
||||
<item name="android:textColor">@color/text_color_primary_default</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_default</item>
|
||||
<item name="attrSMSViewSendColor">@color/colorSMSSendColor</item>
|
||||
<item name="attrSMSViewInboxColor">@color/colorSMSInboxColor</item>
|
||||
<item name="attrTTSRuleViewBackgroundColor">@color/colorTTSRuleViewBackgroundColor</item>
|
||||
@@ -10,35 +16,65 @@
|
||||
|
||||
|
||||
<style name="MyDepthAESTheme" parent="DepthAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_depth</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_depth</item>
|
||||
<item name="android:textColor">@color/text_color_primary_depth</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_depth</item>
|
||||
<item name="attrSMSViewSendColor">@color/colorSMSSendColorDepth</item>
|
||||
<item name="attrSMSViewInboxColor">@color/colorSMSInboxColorDepth</item>
|
||||
<item name="attrTTSRuleViewBackgroundColor">@color/colorTTSRuleViewBackgroundColorDepth</item>
|
||||
</style>
|
||||
|
||||
<style name="MySkyAESTheme" parent="SkyAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_sky</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_sky</item>
|
||||
<item name="android:textColor">@color/text_color_primary_sky</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_sky</item>
|
||||
<item name="attrSMSViewSendColor">@color/colorSMSSendColorSky</item>
|
||||
<item name="attrSMSViewInboxColor">@color/colorSMSInboxColorSky</item>
|
||||
<item name="attrTTSRuleViewBackgroundColor">@color/colorTTSRuleViewBackgroundColorSky</item>
|
||||
</style>
|
||||
|
||||
<style name="MyGoldenAESTheme" parent="GoldenAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_golden</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_golden</item>
|
||||
<item name="android:textColor">@color/text_color_primary_golden</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_golden</item>
|
||||
<item name="attrSMSViewSendColor">@color/colorSMSSendColorGolden</item>
|
||||
<item name="attrSMSViewInboxColor">@color/colorSMSInboxColorGolden</item>
|
||||
<item name="attrTTSRuleViewBackgroundColor">@color/colorTTSRuleViewBackgroundColorGolden</item>
|
||||
</style>
|
||||
|
||||
<style name="MyMemorAESTheme" parent="MemorAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_memor</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_memor</item>
|
||||
<item name="android:textColor">@color/text_color_primary_memor</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_memor</item>
|
||||
<item name="attrSMSViewSendColor">@color/colorSMSSendColorMemor</item>
|
||||
<item name="attrSMSViewInboxColor">@color/colorSMSInboxColorMemor</item>
|
||||
<item name="attrTTSRuleViewBackgroundColor">@color/colorTTSRuleViewBackgroundColorMemor</item>
|
||||
</style>
|
||||
|
||||
<style name="MyTaoAESTheme" parent="TaoAESTheme">
|
||||
<item name="borderCornerRadius">6dp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_tao</item>
|
||||
<item name="textColorPrimary">@color/text_color_primary_tao</item>
|
||||
<item name="android:textColor">@color/text_color_primary_tao</item>
|
||||
<item name="colorTextColor">@color/text_color_primary_tao</item>
|
||||
<item name="attrSMSViewSendColor">@color/colorSMSSendColorTao</item>
|
||||
<item name="attrSMSViewInboxColor">@color/colorSMSInboxColorTao</item>
|
||||
<item name="attrTTSRuleViewBackgroundColor">@color/colorTTSRuleViewBackgroundColorTao</item>
|
||||
|
||||
@@ -29,13 +29,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
android:padding="16dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Ollama 模型对话"
|
||||
android:textColor="#FFFFFF"
|
||||
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="系统提示:"
|
||||
android:textColor="#B0B0B0" />
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etSystemPrompt"
|
||||
@@ -57,7 +57,7 @@
|
||||
android:layout_height="100dp"
|
||||
android:background="#2D2D2D"
|
||||
android:hint="请输入系统提示"
|
||||
android:textColor="#FFFFFF"
|
||||
|
||||
android:textColorHint="#666666"
|
||||
android:gravity="top|start"
|
||||
android:inputType="textMultiLine" />
|
||||
@@ -67,7 +67,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="模型名称:"
|
||||
android:textColor="#B0B0B0" />
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etModelName"
|
||||
@@ -76,7 +76,7 @@
|
||||
android:background="#2D2D2D"
|
||||
android:hint="llama3"
|
||||
android:text="llama3"
|
||||
android:textColor="#FFFFFF"
|
||||
|
||||
android:textColorHint="#666666"
|
||||
android:singleLine="true" />
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="系统消息:"
|
||||
android:textColor="#B0B0B0" />
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etUserMessage"
|
||||
@@ -112,7 +112,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal" android:background="@drawable/bg_container_border">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSend"
|
||||
@@ -120,7 +120,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="3"
|
||||
android:text="发送"
|
||||
android:textColor="#FFFFFF" />
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnStop"
|
||||
@@ -129,7 +129,7 @@
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:text="停止"
|
||||
android:textColor="#FF5252" />
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
6
winboll/src/main/res/drawable/bg_container_border.xml
Normal file
6
winboll/src/main/res/drawable/bg_container_border.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<stroke android:width="1dp" android:color="#FFB0B0B0" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
@@ -12,11 +12,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="#0F000000"
|
||||
android:startColor="#0F000000" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 背景部分 -->
|
||||
@@ -31,11 +27,7 @@
|
||||
android:angle="270"
|
||||
android:endColor="@color/colorAccent"
|
||||
android:startColor="@color/colorAccent" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dip"
|
||||
android:bottomRightRadius="6dip"
|
||||
android:topLeftRadius="6dip"
|
||||
android:topRightRadius="6dip" />
|
||||
<corners android:radius="?attr/borderCornerRadius" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent" android:background="@drawable/bg_container_border">
|
||||
|
||||
<cc.winboll.studio.libaes.views.ASupportToolbar
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user