Compare commits

..

11 Commits

Author SHA1 Message Date
4e4673a93b feat: 容器统一加灰色边框,borderCornerRadius 属性统一管理圆角
创建通用灰色边框 drawable(5 模块各一份):
  - bg_container_border.xml:透明填充 + 1dp #B0B0B0 描边
  - 自动应用到 80 个无背景容器的布局文件

深色模式 bg_frame 加边框:
  - drawable-night/bg_frame.xml(mymessagemanager + aes):
    背景 shape 添加 1dp #666666 描边,保留渐变蒙版

统一圆角为 6dp(borderCornerRadius 属性化):
  - 5 模块 attrs.xml 声明 borderCornerRadius(dimension)
  - 12 个主题(6 普通 + 6 深色)设置 borderCornerRadius=6dp
  - 12 个 drawable 文件约 40 处 corners 改用 ?attr/borderCornerRadius
    (bg_frame / bg_frame_black/white / bg_shadow / bg_border_round
     bg_toolbar_log / acard_frame_main / atoolbar_frame / ohpcts_frame
     bg_container_border 等)
  - 3 个 Java 自定义控件(AToolbar / ASupportToolbar / AboutView)
    从硬编码 px 改为读取 ?attr/borderCornerRadius

受益布局模块:libaes / libappbase / appbase / mymessagemanager / aes / winboll
2026-05-09 10:59:55 +08:00
b385aa7030 feat: 各主题独立文本颜色,深色模式 bg_frame 去白底加渐变蒙版
主题文本颜色独立化(mymessagemanager):
  - values/colors.xml:text_color_primary 拆分为 6 个主题独立色
    default=#FF212121(暗灰)、depth=#FF1A237E(深靛蓝)
    sky=#FF01579B(深蓝)、golden=#FF3E2723(深棕)
    memor=#FF4A148C(深紫)、tao=#FF424242(深灰)
  - values/styles.xml:6 个主题分别引用各自的 text_color_primary_*

深色模式文本统一中灰色:
  - values-night/colors.xml:6 个主题统一使用 #FF999999
    与各主题 SMS 气泡色(黄/绿/蓝/紫/金/灰)明显区分
  - values-night/styles.xml:6 个主题引用各自的 text_color_primary_* 资源

深色模式 bg_frame 背景去白改蒙版:
  - drawable-night/bg_frame.xml(mymessagemanager + aes):
    第二层渐变从 #FFFFFFFF→#0FFFFFFF 改为 #1AFFFFFF→#00000000
    去除白底,保留 10% 白渐变过渡蒙版提供边框定义感
2026-05-09 10:29:56 +08:00
55c7f7d327 feat: 统一应用文本颜色由主题控制,支持深色/普通模式自适应
主题改造(mymessagemanager):
  - values/styles.xml + values-night/styles.xml:6种风格x2模式共12个主题
    统一设置 android:textColorPrimary / textColorPrimary / android:textColor / colorTextColor
    指向 @color/text_color_primary
  - values/colors.xml:text_color_primary=#FF000000(普通模式黑色)
  - values-night/colors.xml:text_color_primary=#FF00FF00(深色模式绿色)
  - attrs.xml:声明 textColorPrimary 属性解决 AAPT2 编译错误

清除硬编码文本颜色(跨模块):
  - 移除 13 个布局文件中的 android:textColor 属性(libappbase/libaes/winboll/appbase)
  - 移除 3 个 Java 文件中的 setTextColor(Color.BLACK/white/gray) 调用
  - 移除 ComposeSMSActivity / CharsetRefuseEditDialog 中的自定义文本颜色
  - 移除 toast_custom_view.xml / view_tts_back.xml 中的 android:textColor

CompoundButton 文本颜色适配:
  - ConfirmSwitchView:initView 中读取主题 textColorPrimary 的 ColorStateList 并显式设置
  - activity_appsettings.xml:平台 Switch 替换为 ConfirmSwitchView
  - fragment_main.xml:Switch 添加 textColor=?android:attr/textColorPrimary
  - 10个 RadioButton + 4个 CheckBox 添加 textColor=?android:attr/textColorPrimary
2026-05-09 10:02:44 +08:00
99de6c05ba <mymessagemanager>APK 15.12.8 release Publish. 2026-05-08 20:59:57 +08:00
4c856367f5 Merge branch 'winboll' into mymessagemanager 2026-05-08 20:50:27 +08:00
63580b111c feat: 新增SMSRecycle2Activity自由模式回收站与刻度全局同步
- 新增SMSRecycle2Activity窗口,每项使用ProtectModeTextView显示短信内容
- 顶部添加示例ProtectModeTextView,刻度值通过SP全局同步到列表所有项
- AppSettingsActivity新增回收站模式RadioGroup:简洁模式/自由模式
- MainActivity回收站菜单根据配置路由到对应Activity
- AppConfigBean新增recycleBinClass字段持久化模式选择
- ProtectModeTextView新增OnScaleChangedListener与setContentTextWithScale
2026-05-08 20:46:27 +08:00
3b60a3b713 feat: 新增ProtectModeTextView自定义控件
1. 继承LinearLayout,内置TextView与0~12刻度SeekBar
2. 刻度0保持原始文本不打乱,1~12为每组相邻字符个数
3. 按刻度固定长度从头至尾字符分组,分组列表随机打乱后拼接输出
4. 支持含空格/标点完整字符解析,对外提供setContentText设置文本接口
2026-05-08 19:35:39 +08:00
3231cd557a Merge branch 'winboll' into mymessagemanager 2026-04-09 13:16:14 +08:00
65f0515139 <mymessagemanager>APK 15.12.7 release Publish. 2026-02-11 05:29:20 +08:00
5316ac1815 设置窗口UI优化。添加TTS悬浮窗口位置调整功能。 2026-02-11 05:22:36 +08:00
6c2581276e 复制 https://gitea.winboll.cc/Studio/WinBoLL_Bck20260112_122031_590.git mymessagemanager 分支最新源码。 2026-02-11 03:13:39 +08:00
285 changed files with 14585 additions and 1847 deletions

View 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>

View File

@@ -12,11 +12,7 @@
android:angle="270" android:angle="270"
android:endColor="#0F000000" android:endColor="#0F000000"
android:startColor="#0F000000" /> android:startColor="#0F000000" />
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
<!-- 背景部分 --> <!-- 背景部分 -->
@@ -31,11 +27,7 @@
android:angle="270" android:angle="270"
android:endColor="#0FFFFFFF" android:endColor="#0FFFFFFF"
android:startColor="#FFFFFFFF" /> android:startColor="#FFFFFFFF" />
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" 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 <cc.winboll.studio.libaes.views.ASupportToolbar
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" 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 <cc.winboll.studio.libaes.views.ADsControlView
android:id="@+id/ads_control_view" android:id="@+id/ads_control_view"

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -24,13 +24,13 @@ android {
defaultConfig { defaultConfig {
applicationId "cc.winboll.studio.appbase" applicationId "cc.winboll.studio.appbase"
minSdkVersion 26 minSdkVersion 21
targetSdkVersion 30 targetSdkVersion 30
versionCode 1 versionCode 1
// versionName 更新后需要手动设置 // versionName 更新后需要手动设置
// .winboll/winbollBuildProps.properties 文件的 stageCount=0 // .winboll/winbollBuildProps.properties 文件的 stageCount=0
// Gradle编译环境下合起来的 versionName 就是 "${versionName}.0" // Gradle编译环境下合起来的 versionName 就是 "${versionName}.0"
versionName "15.20" versionName "15.15"
if(true) { if(true) {
versionName = genVersionName("${versionName}") versionName = genVersionName("${versionName}")
} }

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Sun May 10 17:28:24 GMT 2026 #Tue Apr 28 17:08:30 HKT 2026
stageCount=1 stageCount=22
libraryProject=libappbase libraryProject=libappbase
baseVersion=15.20 baseVersion=15.15
publishVersion=15.20.0 publishVersion=15.15.21
buildCount=4 buildCount=0
baseBetaVersion=15.20.1 baseBetaVersion=15.15.22

View File

@@ -9,9 +9,7 @@
android:label="@string/app_name" android:label="@string/app_name"
android:theme="@style/MyAPPBaseTheme" android:theme="@style/MyAPPBaseTheme"
android:resizeableActivity="true" android:resizeableActivity="true"
android:process=":App" android:process=":App">
android:sharedUserId="@string/shared_user_id"
android:sharedUserLabel="@string/shared_user_label">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
@@ -21,16 +19,28 @@
android:launchMode="singleTop" android:launchMode="singleTop"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"> android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation">
</activity>
<activity
android:name=".MainActivityAlias"
android:label="@string/app_name"
android:exported="true"
android:resizeableActivity="true"
android:launchMode="singleTop"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN"/> <action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.DEFAULT"/>
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name=".Main2Activity" android:name=".Main2Activity"
android:label="@string/app_name" android:label="@string/app_name"

View File

@@ -162,7 +162,25 @@ public class MainActivity extends Activity {
startActivity(aboutIntent); startActivity(aboutIntent);
} }
public void onSplitScreenMode(View view) {
LogUtils.d(TAG, "onSplitScreenMode() 分屏测试按钮已点击");
ToastUtils.show("分屏测试:已启动新窗口");
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
android.graphics.Rect bounds = new android.graphics.Rect();
getWindow().getDecorView().getDisplay().getRectSize(bounds);
int height = bounds.height();
int width = bounds.width();
bounds.set(0, 0, width, height / 2);
LogUtils.d(TAG, "onSplitScreenMode() 分屏窗口范围: " + bounds);
android.content.Intent intent = new android.content.Intent(this, MainActivityAlias.class);
intent.setFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);
LogUtils.d(TAG, "onSplitScreenMode() 准备启动MainActivityAlias");
android.app.ActivityOptions options = android.app.ActivityOptions.makeBasic();
options.setLaunchBounds(bounds);
startActivity(intent, options.toBundle());
LogUtils.d(TAG, "onSplitScreenMode() MainActivityAlias已启动");
}
}
public void onMultiInstance(View view) { public void onMultiInstance(View view) {
LogUtils.d(TAG, "onMultiInstance() 多开窗口按钮已点击"); LogUtils.d(TAG, "onMultiInstance() 多开窗口按钮已点击");

View File

@@ -0,0 +1,17 @@
package cc.winboll.studio.appbase;
import android.os.Bundle;
import android.view.View;
import android.widget.Toolbar;
import cc.winboll.studio.appbase.R;
public class MainActivityAlias extends MainActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
setActionBar(toolbar);
}
}

View 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>

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor">
<android.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/toolbar"/>
<cc.winboll.studio.libappbase.views.AboutView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0"
android:id="@+id/aboutview"/>
</LinearLayout>

View File

@@ -1,106 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="0dp"
android:background="?attr/activityBackgroundColor">
<android.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/toolbar"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_vertical"
android:spacing="12dp">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="关于应用"
android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp"
android:onClick="onAboutActivity"
android:layout_margin="10dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="应用崩溃测试"
android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp"
android:onClick="onCrashTest"
android:layout_margin="10dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="应用日志测试"
android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp"
android:onClick="onLogTest"
android:layout_margin="10dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="应用日志测试(新窗口)"
android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp"
android:onClick="onLogTestNewTask"
android:layout_margin="10dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="应用吐司测试"
android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp"
android:onClick="onToastUtilsTest"
android:layout_margin="10dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="多开窗口"
android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp"
android:onClick="onMultiInstance"
android:layout_margin="10dp"/>
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@@ -4,13 +4,11 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" android:background="@drawable/bg_container_border">
android:background="?attr/activityBackgroundColor">
<android.widget.Toolbar <android.widget.Toolbar
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/toolbar"/> android:id="@+id/toolbar"/>
<cc.winboll.studio.libappbase.views.AboutView <cc.winboll.studio.libappbase.views.AboutView

View File

@@ -4,34 +4,32 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="0dp" android:padding="16dp" android:background="@drawable/bg_container_border">
android:background="?attr/activityBackgroundColor">
<android.widget.Toolbar <android.widget.Toolbar
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/toolbar"/> android:id="@+id/toolbar"/>
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1.0"> android:layout_weight="1.0" android:background="@drawable/bg_container_border">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:gravity="center_vertical" android:gravity="center_vertical"
android:spacing="12dp"> android:spacing="12dp" android:background="@drawable/bg_container_border">
<Button <Button
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="关于应用" android:text="关于应用"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor" android:background="#81C7F5"
android:paddingVertical="12dp" android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:onClick="onAboutActivity" android:onClick="onAboutActivity"
@@ -42,8 +40,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="应用崩溃测试" android:text="应用崩溃测试"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor" android:background="#81C7F5"
android:paddingVertical="12dp" android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:onClick="onCrashTest" android:onClick="onCrashTest"
@@ -54,8 +52,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="应用日志测试" android:text="应用日志测试"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor" android:background="#81C7F5"
android:paddingVertical="12dp" android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:onClick="onLogTest" android:onClick="onLogTest"
@@ -66,8 +64,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="应用日志测试(新窗口)" android:text="应用日志测试(新窗口)"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor" android:background="#81C7F5"
android:paddingVertical="12dp" android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:onClick="onLogTestNewTask" android:onClick="onLogTestNewTask"
@@ -78,22 +76,32 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="应用吐司测试" android:text="应用吐司测试"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor" android:background="#81C7F5"
android:paddingVertical="12dp" android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:onClick="onToastUtilsTest" android:onClick="onToastUtilsTest"
android:layout_margin="10dp"/> android:layout_margin="10dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="分屏测试"
android:textSize="16sp"
android:background="#81C7F5"
android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp"
android:onClick="onSplitScreenMode"
android:layout_margin="10dp"/>
<Button <Button
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="多开窗口" android:text="多开窗口"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor" android:background="#81C7F5"
android:paddingVertical="12dp" android:paddingVertical="12dp"
android:layout_marginHorizontal="24dp" android:layout_marginHorizontal="24dp"
android:onClick="onMultiInstance" android:onClick="onMultiInstance"

View File

@@ -5,13 +5,13 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
android:background="?attr/activityBackgroundColor"> android:background="@android:color/white">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Main2Activity" android:text="Main2Activity"
android:textSize="24sp" android:textSize="24sp"
android:textColor="?attr/activityTextColor"/> />
</LinearLayout> </LinearLayout>

View File

@@ -4,6 +4,6 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
</LinearLayout> </LinearLayout>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#FF1B8B29</color>
<color name="colorPrimaryDark">#FF0A5520</color>
<color name="colorAccent">#FF6EE87C</color>
<color name="colorText">#FFB8FF7D</color>
</resources>

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyAPPBaseTheme" parent="APPBaseTheme">
<item name="themeGlobalCrashActivity">@style/MyGlobalCrashActivityTheme</item>
</style>
<style name="MyGlobalCrashActivityTheme" parent="GlobalCrashActivityTheme">
<item name="colorTittle">#FFFFFFFF</item>
<item name="colorTittleBackgound">#FF00A4B3</item>
<item name="colorText">#FFFFFFFF</item>
<item name="colorTextBackgound">#FFFFFFFF</item>
</style>
</resources>

View File

@@ -0,0 +1,16 @@
<?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" />
<attr name="app_apkname" format="string" />
<attr name="app_gitname" format="string" />
<attr name="app_gitowner" format="string" />
<attr name="app_gitappbranch" format="string" />
<attr name="app_gitappsubprojectfolder" format="string" />
<attr name="appdescription" format="string" />
<attr name="appicon" format="reference" />
<attr name="is_adddebugtools" format="boolean" />
</declare-styleable>
</resources>

View File

@@ -93,11 +93,12 @@ allprojects {
} }
subprojects { subprojects {
// 1. 对纯 Java 模块的 JavaCompile 任务配置(强制Java 7 // 1. 对纯 Java 模块的 JavaCompile 任务配置(升级为 Java 11
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters" options.compilerArgs << "-parameters"
sourceCompatibility = JavaVersion.VERSION_1_7 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_11
// 可选:确保编码一致
options.encoding = "UTF-8" options.encoding = "UTF-8"
} }
} }

View File

@@ -49,6 +49,10 @@ public class ASupportToolbar extends Toolbar {
// 工具栏描边 // 工具栏描边
int nStroke = 5; 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}; int colors0[] = { mEndColor , mCenterColor, mStartColor};
GradientDrawable gradientDrawable0; GradientDrawable gradientDrawable0;
@@ -57,7 +61,7 @@ public class ASupportToolbar extends Toolbar {
gradientDrawable0.setShape(GradientDrawable.RECTANGLE); gradientDrawable0.setShape(GradientDrawable.RECTANGLE);
gradientDrawable0.setColors(colors0); //添加颜色组 gradientDrawable0.setColors(colors0); //添加颜色组
gradientDrawable0.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变 gradientDrawable0.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
gradientDrawable0.setCornerRadius(20); gradientDrawable0.setCornerRadius(cornerRadius);
int colors1[] = { mCenterColor , mCenterColor, mCenterColor }; int colors1[] = { mCenterColor , mCenterColor, mCenterColor };
GradientDrawable gradientDrawable1; GradientDrawable gradientDrawable1;
@@ -66,7 +70,7 @@ public class ASupportToolbar extends Toolbar {
gradientDrawable1.setShape(GradientDrawable.RECTANGLE); gradientDrawable1.setShape(GradientDrawable.RECTANGLE);
gradientDrawable1.setColors(colors1); //添加颜色组 gradientDrawable1.setColors(colors1); //添加颜色组
gradientDrawable1.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变 gradientDrawable1.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
gradientDrawable1.setCornerRadius(20); gradientDrawable1.setCornerRadius(cornerRadius);
int colors2[] = { mEndColor, mCenterColor, mStartColor }; int colors2[] = { mEndColor, mCenterColor, mStartColor };
GradientDrawable gradientDrawable2; GradientDrawable gradientDrawable2;
@@ -75,7 +79,7 @@ public class ASupportToolbar extends Toolbar {
gradientDrawable2.setShape(GradientDrawable.RECTANGLE); gradientDrawable2.setShape(GradientDrawable.RECTANGLE);
gradientDrawable2.setColors(colors2); //添加颜色组 gradientDrawable2.setColors(colors2); //添加颜色组
gradientDrawable2.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变 gradientDrawable2.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
gradientDrawable2.setCornerRadius(20); gradientDrawable2.setCornerRadius(cornerRadius);
ld = new LayerDrawable(array); //参数为上面的Drawable数组 ld = new LayerDrawable(array); //参数为上面的Drawable数组
ld.setLayerInset(2, nStroke * 2, nStroke * 2, getWidth() + nStroke * 2, getHeight() + nStroke * 2); ld.setLayerInset(2, nStroke * 2, nStroke * 2, getWidth() + nStroke * 2, getHeight() + nStroke * 2);

View File

@@ -51,6 +51,10 @@ public class AToolbar extends Toolbar {
// 工具栏描边 // 工具栏描边
int nStroke = 5; 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}; int colors0[] = { mEndColor , mCenterColor, mStartColor};
GradientDrawable gradientDrawable0; GradientDrawable gradientDrawable0;
@@ -59,7 +63,7 @@ public class AToolbar extends Toolbar {
gradientDrawable0.setShape(GradientDrawable.RECTANGLE); gradientDrawable0.setShape(GradientDrawable.RECTANGLE);
gradientDrawable0.setColors(colors0); //添加颜色组 gradientDrawable0.setColors(colors0); //添加颜色组
gradientDrawable0.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变 gradientDrawable0.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
gradientDrawable0.setCornerRadius(20); gradientDrawable0.setCornerRadius(cornerRadius);
int colors1[] = { mCenterColor , mCenterColor, mCenterColor }; int colors1[] = { mCenterColor , mCenterColor, mCenterColor };
GradientDrawable gradientDrawable1; GradientDrawable gradientDrawable1;
@@ -68,7 +72,7 @@ public class AToolbar extends Toolbar {
gradientDrawable1.setShape(GradientDrawable.RECTANGLE); gradientDrawable1.setShape(GradientDrawable.RECTANGLE);
gradientDrawable1.setColors(colors1); //添加颜色组 gradientDrawable1.setColors(colors1); //添加颜色组
gradientDrawable1.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变 gradientDrawable1.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
gradientDrawable1.setCornerRadius(20); gradientDrawable1.setCornerRadius(cornerRadius);
int colors2[] = { mEndColor, mCenterColor, mStartColor }; int colors2[] = { mEndColor, mCenterColor, mStartColor };
GradientDrawable gradientDrawable2; GradientDrawable gradientDrawable2;
@@ -77,7 +81,7 @@ public class AToolbar extends Toolbar {
gradientDrawable2.setShape(GradientDrawable.RECTANGLE); gradientDrawable2.setShape(GradientDrawable.RECTANGLE);
gradientDrawable2.setColors(colors2); //添加颜色组 gradientDrawable2.setColors(colors2); //添加颜色组
gradientDrawable2.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变 gradientDrawable2.setGradientType(GradientDrawable.LINEAR_GRADIENT);//设置线性渐变
gradientDrawable2.setCornerRadius(20); gradientDrawable2.setCornerRadius(cornerRadius);
ld = new LayerDrawable(array); //参数为上面的Drawable数组 ld = new LayerDrawable(array); //参数为上面的Drawable数组

View File

@@ -13,11 +13,7 @@
android:startColor="@color/colorACardShadow" android:startColor="@color/colorACardShadow"
android:centerColor="@color/colorACardShadow" android:centerColor="@color/colorACardShadow"
android:endColor="@color/colorACardShadow"/> android:endColor="@color/colorACardShadow"/>
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
<!-- 边框部分 --> <!-- 边框部分 -->
@@ -32,11 +28,7 @@
android:startColor="@color/colorACardFrame" android:startColor="@color/colorACardFrame"
android:centerColor="@color/colorACardFrame" android:centerColor="@color/colorACardFrame"
android:endColor="@color/colorACardFrame"/> android:endColor="@color/colorACardFrame"/>
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
<!-- 背景主体部分 --> <!-- 背景主体部分 -->
@@ -52,11 +44,7 @@
android:startColor="@color/colorACardBackgroung" android:startColor="@color/colorACardBackgroung"
android:centerColor="@color/colorACardBackgroung" android:centerColor="@color/colorACardBackgroung"
android:endColor="@color/colorACardBackgroung"/> android:endColor="@color/colorACardBackgroung"/>
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -13,11 +13,7 @@
android:startColor="?attr/attrAToolbarEndColor" android:startColor="?attr/attrAToolbarEndColor"
android:centerColor="?attr/attrAToolbarCenterColor" android:centerColor="?attr/attrAToolbarCenterColor"
android:endColor="?attr/attrAToolbarStartColor"/> android:endColor="?attr/attrAToolbarStartColor"/>
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
<!-- 边框部分 --> <!-- 边框部分 -->
@@ -32,11 +28,7 @@
android:startColor="?attr/attrAToolbarCenterColor" android:startColor="?attr/attrAToolbarCenterColor"
android:centerColor="?attr/attrAToolbarCenterColor" android:centerColor="?attr/attrAToolbarCenterColor"
android:endColor="?attr/attrAToolbarCenterColor"/> android:endColor="?attr/attrAToolbarCenterColor"/>
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
<!-- 背景主体部分 --> <!-- 背景主体部分 -->
@@ -52,11 +44,7 @@
android:startColor="?attr/attrAToolbarStartColor" android:startColor="?attr/attrAToolbarStartColor"
android:centerColor="?attr/attrAToolbarCenterColor" android:centerColor="?attr/attrAToolbarCenterColor"
android:endColor="?attr/attrAToolbarEndColor"/> android:endColor="?attr/attrAToolbarEndColor"/>
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View 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>

View File

@@ -12,11 +12,7 @@
android:angle="270" android:angle="270"
android:endColor="#0F000000" android:endColor="#0F000000"
android:startColor="#0F000000" /> android:startColor="#0F000000" />
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
<!-- 背景部分 --> <!-- 背景部分 -->
@@ -31,11 +27,7 @@
android:angle="270" android:angle="270"
android:endColor="@color/colorAccent" android:endColor="@color/colorAccent"
android:startColor="@color/colorAccent" /> android:startColor="@color/colorAccent" />
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -9,7 +9,7 @@
android:startColor="@color/colorOHPCTSBackground" android:startColor="@color/colorOHPCTSBackground"
android:centerColor="@color/colorOHPCTSBackground" android:centerColor="@color/colorOHPCTSBackground"
android:endColor="@color/colorOHPCTSBackground"/> android:endColor="@color/colorOHPCTSBackground"/>
<corners android:radius="6dip"/> <corners android:radius="?attr/borderCornerRadius"/>
</shape> </shape>
</item> </item>
<!-- 第二进度条 --> <!-- 第二进度条 -->
@@ -22,7 +22,7 @@
android:startColor="@color/colorOHPCTSSecondaryProgress" android:startColor="@color/colorOHPCTSSecondaryProgress"
android:centerColor="@color/colorOHPCTSSecondaryProgress" android:centerColor="@color/colorOHPCTSSecondaryProgress"
android:endColor="@color/colorOHPCTSSecondaryProgress"/> android:endColor="@color/colorOHPCTSSecondaryProgress"/>
<corners android:radius="6dip"/> <corners android:radius="?attr/borderCornerRadius"/>
</shape> </shape>
</clip> </clip>
</item> </item>
@@ -36,7 +36,7 @@
android:startColor="@color/colorOHPCTSProgress" android:startColor="@color/colorOHPCTSProgress"
android:centerColor="@color/colorOHPCTSProgress" android:centerColor="@color/colorOHPCTSProgress"
android:endColor="@color/colorOHPCTSProgress"/> android:endColor="@color/colorOHPCTSProgress"/>
<corners android:radius="6dip"/> <corners android:radius="?attr/borderCornerRadius"/>
</shape> </shape>
</clip> </clip>
</item> </item>

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" 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 <cc.winboll.studio.libaes.views.ASupportToolbar
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -16,6 +16,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1.0" android:layout_weight="1.0"
android:id="@+id/aboutviewroot_ll"/> android:id="@+id/aboutviewroot_ll" android:background="@drawable/bg_container_border" />
</LinearLayout> </LinearLayout>

View File

@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" 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 <cc.winboll.studio.libaes.views.ASupportToolbar
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -19,13 +19,13 @@
<LinearLayout <LinearLayout
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1.0" android:layout_weight="1.0"
android:id="@+id/activitydrawerLinearLayout1"/> android:id="@+id/activitydrawerLinearLayout1" android:background="@drawable/bg_container_border" />
</LinearLayout> </LinearLayout>
<com.baoyz.widget.PullRefreshLayout <com.baoyz.widget.PullRefreshLayout

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" 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 <cc.winboll.studio.libaes.views.ASupportToolbar
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -15,7 +15,7 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1.0"> android:layout_weight="1.0" android:background="@drawable/bg_container_border">
<androidx.drawerlayout.widget.DrawerLayout <androidx.drawerlayout.widget.DrawerLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -26,7 +26,7 @@
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="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 <com.baoyz.widget.PullRefreshLayout
android:orientation="vertical" android:orientation="vertical"

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -4,12 +4,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:id="@+id/activitytestaboutfragmentFrameLayout1"/> android:id="@+id/activitytestaboutfragmentFrameLayout1" android:background="@drawable/bg_container_border" />
</LinearLayout> </LinearLayout>

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" 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 <cc.winboll.studio.libaes.views.ASupportToolbar
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -4,7 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" 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 <cc.winboll.studio.libaes.views.AToolbar
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -13,7 +13,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="用户须知" android:text="用户须知"
android:textSize="18sp" android:textSize="18sp"
android:textColor="@android:color/black"
android:textStyle="bold" android:textStyle="bold"
android:layout_marginBottom="16dp" /> android:layout_marginBottom="16dp" />
@@ -22,14 +21,13 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginBottom="20dp"> android:layout_marginBottom="20dp" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="小米广告SDK隐私政策: " android:text="小米广告SDK隐私政策: "
android:textSize="14sp" android:textSize="14sp" />
android:textColor="@android:color/darker_gray" />
<!-- 可点击链接用TextView承载通过代码设置蓝色+下划线) --> <!-- 可点击链接用TextView承载通过代码设置蓝色+下划线) -->
<TextView <TextView
@@ -44,8 +42,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text=",点击链接查看完整政策" android:text=",点击链接查看完整政策"
android:textSize="14sp" android:textSize="14sp" />
android:textColor="@android:color/darker_gray" />
</LinearLayout> </LinearLayout>
<!-- 按钮容器(水平排列) --> <!-- 按钮容器(水平排列) -->
@@ -53,7 +50,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:gravity="end"> android:gravity="end" android:background="@drawable/bg_container_border">
<Button <Button
android:id="@+id/btn_disagree" android:id="@+id/btn_disagree"

View File

@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -22,7 +22,7 @@
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="end"> android:gravity="end" android:background="@drawable/bg_container_border">
<Button <Button
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -5,7 +5,7 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_vertical"> android:gravity="center_vertical" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -23,7 +23,7 @@
android:layout_height="60dp" android:layout_height="60dp"
android:orientation="horizontal" android:orientation="horizontal"
android:gravity="center" android:gravity="center"
android:id="@+id/fragmentviewpageLinearLayout1"> android:id="@+id/fragmentviewpageLinearLayout1" android:background="@drawable/bg_container_border">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -5,7 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal" android:background="@drawable/bg_container_border">
<ImageView <ImageView
android:layout_centerVertical="true" android:layout_centerVertical="true"

View File

@@ -4,12 +4,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/ads_container" android:id="@+id/ads_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
<LinearLayout <LinearLayout
android:id="@+id/ads_container" android:id="@+id/ads_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"/> android:orientation="vertical" android:background="@drawable/bg_container_border" />
</LinearLayout> </LinearLayout>

View File

@@ -4,14 +4,13 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:padding="16dp"> android:padding="16dp" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="应用支持模式设置:" android:text="应用支持模式设置:"
android:textSize="16sp" android:textSize="16sp"
android:textColor="@android:color/black"
android:layout_marginBottom="12dp"/> android:layout_marginBottom="12dp"/>
<RadioGroup <RadioGroup
@@ -26,7 +25,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="无扰单机模式" android:text="无扰单机模式"
android:textSize="14sp" android:textSize="14sp"
android:textColor="@android:color/darker_gray"
android:layout_marginBottom="8dp"/> android:layout_marginBottom="8dp"/>
<RadioButton <RadioButton
@@ -35,7 +33,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="米盟广告模式" android:text="米盟广告模式"
android:textSize="14sp" android:textSize="14sp"
android:textColor="@android:color/darker_gray"
android:layout_marginBottom="8dp"/> android:layout_marginBottom="8dp"/>
<RadioButton <RadioButton
@@ -43,8 +40,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="云宝物语模式" android:text="云宝物语模式"
android:textSize="14sp" android:textSize="14sp"/>
android:textColor="@android:color/darker_gray"/>
</RadioGroup> </RadioGroup>
@@ -54,7 +50,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone" android:visibility="gone"
android:layout_marginTop="0dp"> <!-- 移除顶部多余间距 --> android:layout_marginTop="0dp"> <!-- 移除顶部多余间距 -- android:background="@drawable/bg_container_border">
<ImageView <ImageView
android:id="@+id/iv_winboll_store" android:id="@+id/iv_winboll_store"

View File

@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -4,7 +4,7 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center"> android:gravity="center" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -15,7 +15,7 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"> android:gravity="center" android:background="@drawable/bg_container_border">
<cc.winboll.studio.libaes.views.AOHPCTCSeekBar <cc.winboll.studio.libaes.views.AOHPCTCSeekBar
android:layout_width="300dp" android:layout_width="300dp"

View File

@@ -3,7 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<attr name="borderCornerRadius" format="dimension" />
<attr name="colorTextColor" format="color" /> <attr name="colorTextColor" format="color" />
<attr name="colorPrimary" format="color" /> <attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" /> <attr name="colorPrimaryDark" format="color" />

View File

@@ -9,7 +9,7 @@ android {
buildToolsVersion "30.0.3" buildToolsVersion "30.0.3"
defaultConfig { defaultConfig {
minSdkVersion 26 minSdkVersion 21
targetSdkVersion 30 targetSdkVersion 30
} }
buildTypes { buildTypes {
@@ -18,10 +18,6 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} }
} }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
} }
dependencies { dependencies {

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Sun May 10 17:28:24 GMT 2026 #Tue Apr 28 17:08:04 HKT 2026
stageCount=1 stageCount=22
libraryProject=libappbase libraryProject=libappbase
baseVersion=15.20 baseVersion=15.15
publishVersion=15.20.0 publishVersion=15.15.21
buildCount=4 buildCount=0
baseBetaVersion=15.20.1 baseBetaVersion=15.15.22

View File

@@ -440,9 +440,6 @@ public final class CrashHandler {
// 设置系统默认主题(避免自定义主题冲突) // 设置系统默认主题(避免自定义主题冲突)
setTheme(android.R.style.Theme_DeviceDefault_Light_DarkActionBar); setTheme(android.R.style.Theme_DeviceDefault_Light_DarkActionBar);
// 判断是否为深色模式
boolean isNightMode = (getResources().getConfiguration().uiMode & android.content.res.Configuration.UI_MODE_NIGHT_MASK) == android.content.res.Configuration.UI_MODE_NIGHT_YES;
// 动态创建布局(避免 XML 布局加载异常) // 动态创建布局(避免 XML 布局加载异常)
setContentView: { setContentView: {
// 垂直滚动视图(处理日志过长) // 垂直滚动视图(处理日志过长)
@@ -451,7 +448,7 @@ public final class CrashHandler {
// 水平滚动视图(处理日志行过长) // 水平滚动视图(处理日志行过长)
HorizontalScrollView hw = new HorizontalScrollView(this); HorizontalScrollView hw = new HorizontalScrollView(this);
hw.setBackgroundColor(isNightMode ? 0xFF0D1B2A : 0xFFF5F5F5); // 深色模式灰色背景 hw.setBackgroundColor(Color.GRAY); // 背景色设为灰色
// 日志显示文本框 // 日志显示文本框
TextView message = new TextView(this); TextView message = new TextView(this);
@@ -459,7 +456,6 @@ public final class CrashHandler {
int padding = dp2px(16); // 内边距 16dp适配不同屏幕 int padding = dp2px(16); // 内边距 16dp适配不同屏幕
message.setPadding(padding, padding, padding, padding); message.setPadding(padding, padding, padding, padding);
message.setText(mLog); // 设置崩溃日志 message.setText(mLog); // 设置崩溃日志
message.setTextColor(isNightMode ? 0xFFE0E0E0 : 0xFF000000); // 深色模式灰色文字,普通模式黑色文字
message.setTextIsSelectable(true); // 支持文本选择(便于手动复制) message.setTextIsSelectable(true); // 支持文本选择(便于手动复制)
} }

View File

@@ -9,7 +9,6 @@ import android.content.pm.PackageManager;
import android.os.Bundle; import android.os.Bundle;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View;
import android.widget.Toast; import android.widget.Toast;
import cc.winboll.studio.libappbase.R; import cc.winboll.studio.libappbase.R;

View File

@@ -175,10 +175,9 @@ public class GlobalCrashReportView extends LinearLayout {
* 初始化默认配置(无自定义属性时使用) * 初始化默认配置(无自定义属性时使用)
*/ */
private void initDefaultConfig() { private void initDefaultConfig() {
// 设置默认配色(普通模式黑色文字) // 设置默认配色
mTitleColor = Color.BLACK; mTitleColor = Color.WHITE;
mTitleBackgroundColor = Color.BLACK; mTitleBackgroundColor = Color.BLACK;
mTextColor = Color.BLACK;
mTextBackgroundColor = Color.WHITE; mTextBackgroundColor = Color.WHITE;
// 加载布局 // 加载布局
inflateView(); inflateView();
@@ -202,7 +201,7 @@ public class GlobalCrashReportView extends LinearLayout {
// 读取自定义属性值(无设置时使用默认值) // 读取自定义属性值(无设置时使用默认值)
mTitleColor = typedArray.getColor( mTitleColor = typedArray.getColor(
R.styleable.GlobalCrashActivity_colorTittle, R.styleable.GlobalCrashActivity_colorTittle,
Color.BLACK Color.WHITE
); );
mTitleBackgroundColor = typedArray.getColor( mTitleBackgroundColor = typedArray.getColor(
R.styleable.GlobalCrashActivity_colorTittleBackgound, // 注原拼写错误Backgound→Background保持与 attrs.xml 一致 R.styleable.GlobalCrashActivity_colorTittleBackgound, // 注原拼写错误Backgound→Background保持与 attrs.xml 一致
@@ -210,7 +209,7 @@ public class GlobalCrashReportView extends LinearLayout {
); );
mTextColor = typedArray.getColor( mTextColor = typedArray.getColor(
R.styleable.GlobalCrashActivity_colorText, R.styleable.GlobalCrashActivity_colorText,
Color.BLACK 0
); );
mTextBackgroundColor = typedArray.getColor( mTextBackgroundColor = typedArray.getColor(
R.styleable.GlobalCrashActivity_colorTextBackgound, // 注:原拼写错误,保持与 attrs.xml 一致 R.styleable.GlobalCrashActivity_colorTextBackgound, // 注:原拼写错误,保持与 attrs.xml 一致
@@ -241,15 +240,21 @@ public class GlobalCrashReportView extends LinearLayout {
* 初始化控件样式(设置配色和基础属性) * 初始化控件样式(设置配色和基础属性)
*/ */
private void initWidgetStyle() { private void initWidgetStyle() {
// 设置主布局背景颜色
setBackgroundColor(mTextBackgroundColor);
// 配置工具栏样式 // 配置工具栏样式
if (mToolbar != null) { if (mToolbar != null) {
mToolbar.setBackgroundColor(mTitleBackgroundColor);
mToolbar.setTitleTextColor(mTitleColor); mToolbar.setTitleTextColor(mTitleColor);
mToolbar.setSubtitleTextColor(mTitleColor); mToolbar.setSubtitleTextColor(mTitleColor);
} }
// 配置日志文本控件样式 // 配置日志文本控件样式
if (mTvReport != null) { if (mTvReport != null) {
mTvReport.setTextColor(mTextColor); if (mTextColor != 0) mTvReport.setTextColor(mTextColor);
mTvReport.setBackgroundColor(mTextBackgroundColor);
// 可选:设置日志文本换行方式(默认已换行,此处增强可读性)
mTvReport.setSingleLine(false); mTvReport.setSingleLine(false);
mTvReport.setHorizontallyScrolling(false); mTvReport.setHorizontallyScrolling(false);
} }

View File

@@ -116,7 +116,6 @@ public class LogView extends RelativeLayout {
// 获取Log Level spinner实例 // 获取Log Level spinner实例
mLogLevelSpinner = findViewById(cc.winboll.studio.libappbase.R.id.viewlogSpinner1); mLogLevelSpinner = findViewById(cc.winboll.studio.libappbase.R.id.viewlogSpinner1);
metTagSearch.setTextColor(mContext.getResources().getColor(R.color.white));
metTagSearch.addTextChangedListener(new TextWatcher() { metTagSearch.addTextChangedListener(new TextWatcher() {
@Override @Override
@@ -248,7 +247,6 @@ public class LogView extends RelativeLayout {
} }
mSelectAllTAGCheckBox.setLayoutParams(layoutParams2); mSelectAllTAGCheckBox.setLayoutParams(layoutParams2);
//mSelectAllTAGCheckBox.setPadding(0,0,0,0); //mSelectAllTAGCheckBox.setPadding(0,0,0,0);
mSelectAllTAGCheckBox.setTextColor(mContext.getResources().getColor(R.color.white));
mSelectAllTAGCheckBox.setOnClickListener(new View.OnClickListener(){ mSelectAllTAGCheckBox.setOnClickListener(new View.OnClickListener(){
@Override @Override
public void onClick(View v) { public void onClick(View v) {
@@ -502,7 +500,6 @@ public class LogView extends RelativeLayout {
} }
holder.tvText.setLayoutParams(layoutParams); holder.tvText.setLayoutParams(layoutParams);
holder.tvText.setPadding(0,0,0,0); holder.tvText.setPadding(0,0,0,0);
holder.tvText.setTextColor(mContext.getResources().getColor(R.color.white));
holder.cbChecked.setChecked(item.isChecked()); holder.cbChecked.setChecked(item.isChecked());
holder.cbChecked.setLayoutParams(layoutParams); holder.cbChecked.setLayoutParams(layoutParams);
holder.cbChecked.setPadding(0,0,0,0); holder.cbChecked.setPadding(0,0,0,0);

View File

@@ -62,11 +62,11 @@ public class BackupUtils {
// 核心修改入参Map非空且非空集合时使用入参初始化否则内部new HashMap() // 核心修改入参Map非空且非空集合时使用入参初始化否则内部new HashMap()
this.mDataDirFileMap = (dataDirFileMap != null && !dataDirFileMap.isEmpty()) this.mDataDirFileMap = (dataDirFileMap != null && !dataDirFileMap.isEmpty())
? new HashMap<String, String>(dataDirFileMap) ? new HashMap<>(dataDirFileMap) // 新建Map避免外部篡改内部数据
: new HashMap<String, String>(); : new HashMap<>();
this.mSdcardFileMap = (sdcardFileMap != null && !sdcardFileMap.isEmpty()) this.mSdcardFileMap = (sdcardFileMap != null && !sdcardFileMap.isEmpty())
? new HashMap<String, String>(sdcardFileMap) ? new HashMap<>(sdcardFileMap) // 深拷贝,隔离外部引用
: new HashMap<String, String>(); : new HashMap<>();
LogUtils.d(TAG, "BackupUtils初始化完成 → SFTP服务器" + ftpAuthModel.getFtpServer() + ":" + ftpAuthModel.getFtpPort() + " | 上传目录:" + mFtpTargetDir); LogUtils.d(TAG, "BackupUtils初始化完成 → SFTP服务器" + ftpAuthModel.getFtpServer() + ":" + ftpAuthModel.getFtpPort() + " | 上传目录:" + mFtpTargetDir);
LogUtils.d(TAG, "SDCard Map基础根目录" + (mAppExternalFilesDir == null ? "获取失败" : mAppExternalFilesDir.getAbsolutePath())); LogUtils.d(TAG, "SDCard Map基础根目录" + (mAppExternalFilesDir == null ? "获取失败" : mAppExternalFilesDir.getAbsolutePath()));

View File

@@ -3,6 +3,7 @@ package cc.winboll.studio.libappbase.views;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.content.res.TypedArray;
import android.net.Uri; import android.net.Uri;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.Gravity; import android.view.Gravity;
@@ -421,10 +422,12 @@ public class AboutView extends LinearLayout {
*/ */
private android.graphics.drawable.Drawable create_item_background() { private android.graphics.drawable.Drawable create_item_background() {
android.graphics.drawable.GradientDrawable drawable = new android.graphics.drawable.GradientDrawable(); android.graphics.drawable.GradientDrawable drawable = new android.graphics.drawable.GradientDrawable();
drawable.setStroke(1, mItemContext.getResources().getColor(R.color.gray_300)); TypedArray taBorder = mItemContext.obtainStyledAttributes(new int[]{R.attr.borderCornerRadius});
drawable.setCornerRadius(4); float cornerRadius = taBorder.getDimension(0, 6 * mItemContext.getResources().getDisplayMetrics().density);
boolean isNightMode = (mItemContext.getResources().getConfiguration().uiMode & android.content.res.Configuration.UI_MODE_NIGHT_MASK) == android.content.res.Configuration.UI_MODE_NIGHT_YES; taBorder.recycle();
drawable.setColor(isNightMode ? mItemContext.getResources().getColor(R.color.gray_800) : mItemContext.getResources().getColor(android.R.color.white)); drawable.setStroke(1, mItemContext.getResources().getColor(R.color.gray_200));
drawable.setCornerRadius(cornerRadius);
drawable.setColor(mItemContext.getResources().getColor(android.R.color.white));
return drawable; return drawable;
} }
@@ -450,8 +453,6 @@ public class AboutView extends LinearLayout {
TextView tvTitle = new TextView(mItemContext); TextView tvTitle = new TextView(mItemContext);
tvTitle.setText(mTitle); tvTitle.setText(mTitle);
tvTitle.setTextSize(16); tvTitle.setTextSize(16);
boolean isNightMode = (mItemContext.getResources().getConfiguration().uiMode & android.content.res.Configuration.UI_MODE_NIGHT_MASK) == android.content.res.Configuration.UI_MODE_NIGHT_YES;
tvTitle.setTextColor(isNightMode ? mItemContext.getResources().getColor(R.color.gray_500) : mItemContext.getResources().getColor(R.color.gray_900));
llText.addView(tvTitle); llText.addView(tvTitle);
// 内容 // 内容
TextView tvContent = new TextView(mItemContext); TextView tvContent = new TextView(mItemContext);

View File

@@ -154,7 +154,6 @@ public class LogTagSpinner extends Spinner {
// 4. 文字对齐(垂直居中+靠左,符合常规 UI 设计) // 4. 文字对齐(垂直居中+靠左,符合常规 UI 设计)
//itemTv.setGravity(View.GRAVITY_CENTER_VERTICAL | View.GRAVITY_START); //itemTv.setGravity(View.GRAVITY_CENTER_VERTICAL | View.GRAVITY_START);
// 5. 文字颜色(统一深色,可改为项目颜色资源) // 5. 文字颜色(统一深色,可改为项目颜色资源)
itemTv.setTextColor(this.mContext.getColor(R.color.white));
itemTv.setBackgroundColor(this.mContext.getColor(R.color.btn_gray_normal)); itemTv.setBackgroundColor(this.mContext.getColor(R.color.btn_gray_normal));
// 6. 文字溢出处理(最多 2 行,超出省略,避免长标签换行过多) // 6. 文字溢出处理(最多 2 行,超出省略,避免长标签换行过多)
itemTv.setSingleLine(false); itemTv.setSingleLine(false);

View File

@@ -5,9 +5,5 @@
android:width="1dp" android:width="1dp"
android:color="#000000" /> <!-- 这里可调整边框宽度和颜色 --> android:color="#000000" /> <!-- 这里可调整边框宽度和颜色 -->
<solid android:color="@android:color/transparent" /> <solid android:color="@android:color/transparent" />
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>

View 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>

View File

@@ -12,11 +12,7 @@
android:angle="270" android:angle="270"
android:endColor="@color/colorPrimary" android:endColor="@color/colorPrimary"
android:startColor="@color/colorPrimary" /> android:startColor="@color/colorPrimary" />
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
<!-- 背景部分 --> <!-- 背景部分 -->
@@ -31,11 +27,7 @@
android:angle="270" android:angle="270"
android:endColor="@color/colorPrimary" android:endColor="@color/colorPrimary"
android:startColor="@color/colorPrimary" /> android:startColor="@color/colorPrimary" />
<corners <corners android:radius="?attr/borderCornerRadius" />
android:bottomLeftRadius="6dip"
android:bottomRightRadius="6dip"
android:topLeftRadius="6dip"
android:topRightRadius="6dip" />
</shape> </shape>
</item> </item>
</layer-list> </layer-list>

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor">
<android.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/toolbar"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0"
android:id="@+id/aboutviewroot_ll"/>
</LinearLayout>

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor">>
<cc.winboll.studio.libappbase.GlobalCrashReportView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/activityglobalcrashGlobalCrashReportView1"/>
</LinearLayout>

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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:background="?attr/activityBackgroundColor">
<cc.winboll.studio.libappbase.LogView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/logview"/>
</LinearLayout>

View File

@@ -1,58 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="24dp"
android:gravity="center_horizontal"
android:background="?attr/activityBackgroundColor">
<!-- NFC状态提示文本 -->
<TextView
android:id="@+id/tv_nfc_state"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="正在监听NFC卡片请贴近设备检测密钥..."
android:textSize="17sp"
android:textColor="?attr/activityTextColor"
android:gravity="center"
android:padding="12dp"
android:layout_marginBottom="30dp"/>
<!-- 私钥显示区域 -->
<TextView
android:id="@+id/tv_private_key"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="私钥内容:无"
android:textSize="14sp"
android:textColor="?attr/activityTextColor"
android:layout_marginBottom="12dp"
android:maxLines="5"
android:ellipsize="end"/>
<!-- 公钥显示区域 -->
<TextView
android:id="@+id/tv_public_key"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="公钥内容:无"
android:textSize="14sp"
android:textColor="?attr/activityTextColor"
android:layout_marginBottom="40dp"
android:maxLines="5"
android:ellipsize="end"/>
<!-- 核心功能按钮(复用:保存本地/初始化密钥) -->
<Button
android:id="@+id/btn_create_write_key"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="功能按钮待激活"
android:textSize="16sp"
android:textColor="?attr/buttonTextColor"
android:backgroundTint="?attr/buttonBackgroundColor"
android:padding="14dp"
android:enabled="false"/>
</LinearLayout>

View File

@@ -1,52 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:gravity="center"
android:background="?attr/dialogBackgroundColor">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="应用指纹校验"
android:textSize="16sp"
android:textColor="?attr/dialogTextColor"
android:textStyle="bold"
android:layout_marginBottom="12dp"/>
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<EditText
android:id="@+id/et_sign_fingerprint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/edit_text"
android:textSize="12sp"
android:gravity="top"
android:hint="签名获取中..."
android:singleLine="false"
android:scrollHorizontally="false"
android:scrollbars="vertical"
android:overScrollMode="always"
android:typeface="monospace"
android:paddingLeft="10dp"
android:paddingRight="10dp"/>
</ScrollView>
<TextView
android:id="@+id/tv_auth_result"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:textSize="11sp"
android:gravity="center"
android:textColor="?attr/dialogTextColor"/>/>
</LinearLayout>

View File

@@ -1,62 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:background="?attr/dialogBackgroundColor">
<!-- 标题 -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="设置服务器地址"
android:textSize="16sp"
android:textColor="?attr/dialogTextColor"
android:textStyle="bold"
android:layout_marginBottom="16dp"/>
<!-- 地址输入框 -->
<EditText
android:id="@+id/et_host_input"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:hint="请输入服务器地址如http://localhost:8080"
android:textSize="14sp"
android:textColor="?attr/dialogTextColor"
android:inputType="textUri"
android:padding="8dp"
android:background="@android:drawable/edit_text"
android:layout_marginBottom="16dp"/>
<!-- 按钮容器 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="end">
<!-- 取消按钮 -->
<Button
android:id="@+id/btn_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="取消"
android:textSize="14sp"
android:textColor="?attr/dialogTextColor"
android:layout_marginRight="8dp"/>
<!-- 确认按钮 -->
<Button
android:id="@+id/btn_confirm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="确认"
android:textSize="14sp"
android:backgroundTint="?attr/buttonBackgroundColor"
android:textColor="?attr/buttonTextColor"/>
</LinearLayout>
</LinearLayout>

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/bg_border_round">
<TextView
android:layout_width="wrap_content"
android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size"
android:layout_marginLeft="5dp"
android:id="@+id/viewlogtagTextView1"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size"
android:id="@+id/viewlogtagCheckBox1"/>
</LinearLayout>

View File

@@ -1,93 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/aboutViewBackgroundColor">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal"
android:paddingLeft="16dp"
android:paddingTop="16dp"
android:paddingRight="16dp"
android:paddingBottom="16dp">
<cc.winboll.studio.libappbase.views.DebugSwitchImageView
android:id="@+id/iv_app_icon"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginBottom="8dp"
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/tv_app_name_version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="?attr/aboutViewTitleColor"/>
<TextView
android:id="@+id/tv_app_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="8dp"
android:textSize="14sp"
android:textColor="?attr/aboutViewTextColor"/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginTop="4dp"
android:layout_marginBottom="8dp"
android:background="?attr/aboutViewDividerColor"/>
<LinearLayout
android:id="@+id/ll_function_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="8dp"
android:spacing="20dp">
<ImageButton
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/ic_debug_step_over"
android:id="@+id/ib_debug_step_over"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
android:background="@null"/>
<ImageButton
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/ic_winboll"
android:id="@+id/ib_winbollhostdialog"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
android:background="@null"/>
<ImageButton
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/ic_key"
android:id="@+id/ib_signgetdialog"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
android:background="@null"/>
</LinearLayout>
</LinearLayout>
</ScrollView>

View File

@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor"
android:id="@+id/viewglobalcrashreportLinearLayout1">
<android.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/viewglobalcrashreportToolbar1"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0"
android:fillViewport="true">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
android:textColor="?attr/activityTextColor"
android:id="@+id/viewglobalcrashreportTextView1"/>
</HorizontalScrollView>
</ScrollView>
</LinearLayout>

View File

@@ -1,150 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor">
<RelativeLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="34dp"
android:layout_alignParentTop="true"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/viewlogRelativeLayoutToolbar">
<Button
android:layout_width="@dimen/log_button_width"
android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size"
android:text="Clean"
android:textColor="?attr/buttonTextColor"
android:backgroundTint="?attr/buttonBackgroundColor"
android:layout_centerVertical="true"
android:id="@+id/viewlogButtonClean"
android:layout_marginLeft="5dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="20dp"
android:textSize="@dimen/log_text_size"
android:padding="@dimen/log_text_padding"
android:text="LV:"
android:layout_toRightOf="@+id/viewlogButtonClean"
android:layout_centerVertical="true"
android:id="@+id/viewlogTextView1"
android:background="?attr/buttonBackgroundColor"
android:textColor="?attr/buttonTextColor"/>
<cc.winboll.studio.libappbase.widget.LogTagSpinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/viewlogTextView1"
android:layout_centerVertical="true"
android:id="@+id/viewlogSpinner1"
android:padding="@dimen/log_spinner_text_padding"/>
<CheckBox
android:layout_width="@dimen/log_checkbox_width"
android:layout_height="@dimen/log_checkbox_height"
android:textSize="@dimen/log_text_size"
android:layout_toLeftOf="@+id/viewlogButtonCopy"
android:layout_centerVertical="true"
android:text="Selectable"
android:background="?attr/buttonBackgroundColor"
android:id="@+id/viewlogCheckBoxSelectable"
android:padding="@dimen/log_text_padding"
android:textColor="?attr/buttonTextColor"/>
<Button
android:layout_width="@dimen/log_button_width"
android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size"
android:textColor="?attr/buttonTextColor"
android:backgroundTint="?attr/buttonBackgroundColor"
android:text="Copy"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:id="@+id/viewlogButtonCopy"
android:layout_marginRight="5dp"/>
</RelativeLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="@dimen/log_button_height"
android:layout_below="@+id/viewlogRelativeLayoutToolbar"
android:id="@+id/viewlogLinearLayout1"
android:gravity="center_vertical"
android:background="?attr/toolbarBackgroundColor">
<CheckBox
android:layout_width="wrap_content"
android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size"
android:text="ALL"
android:padding="2dp"
android:id="@+id/viewlogCheckBox1"
android:background="?attr/buttonBackgroundColor"
android:textColor="?attr/buttonTextColor"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"/>
<EditText
android:layout_width="50dp"
android:ems="10"
android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:singleLine="true"
android:id="@+id/tagsearch_et"/>
<HorizontalScrollView
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="?attr/buttonBackgroundColor"
android:scrollbars="none"
android:padding="2dp"
android:layout_weight="1.0"
android:id="@+id/viewlogHorizontalScrollView1">
<cc.winboll.studio.libappbase.views.HorizontalListView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/tags_listview"/>
</HorizontalScrollView>
</LinearLayout>
<RelativeLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_alignParentBottom="true"
android:layout_below="@+id/viewlogLinearLayout1">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor"
android:id="@+id/viewlogScrollViewLog">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="@dimen/log_text_size"
android:text="Text"
android:textColor="#FF00FF00"
android:textIsSelectable="true"
android:id="@+id/viewlogTextViewLog"/>
</ScrollView>
</RelativeLayout>
</RelativeLayout>

View File

@@ -4,13 +4,11 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" android:background="@drawable/bg_container_border">
android:background="?attr/activityBackgroundColor">
<android.widget.Toolbar <android.widget.Toolbar
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/toolbar"/> android:id="@+id/toolbar"/>
<LinearLayout <LinearLayout
@@ -18,5 +16,5 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1.0" android:layout_weight="1.0"
android:id="@+id/aboutviewroot_ll"/> android:id="@+id/aboutviewroot_ll" android:background="@drawable/bg_container_border" />
</LinearLayout> </LinearLayout>

View File

@@ -4,8 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" android:background="@drawable/bg_container_border">
android:background="?attr/activityBackgroundColor">>
<cc.winboll.studio.libappbase.GlobalCrashReportView <cc.winboll.studio.libappbase.GlobalCrashReportView
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -3,8 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" android:background="@drawable/bg_container_border">
android:background="?attr/activityBackgroundColor">
<cc.winboll.studio.libappbase.LogView <cc.winboll.studio.libappbase.LogView
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -5,7 +5,7 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="24dp" android:padding="24dp"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:background="?attr/activityBackgroundColor"> android:background="@android:color/white">
<!-- NFC状态提示文本 --> <!-- NFC状态提示文本 -->
<TextView <TextView
@@ -14,7 +14,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="正在监听NFC卡片请贴近设备检测密钥..." android:text="正在监听NFC卡片请贴近设备检测密钥..."
android:textSize="17sp" android:textSize="17sp"
android:textColor="?attr/activityTextColor"
android:gravity="center" android:gravity="center"
android:padding="12dp" android:padding="12dp"
android:layout_marginBottom="30dp"/> android:layout_marginBottom="30dp"/>
@@ -26,7 +25,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="私钥内容:无" android:text="私钥内容:无"
android:textSize="14sp" android:textSize="14sp"
android:textColor="?attr/activityTextColor"
android:layout_marginBottom="12dp" android:layout_marginBottom="12dp"
android:maxLines="5" android:maxLines="5"
android:ellipsize="end"/> android:ellipsize="end"/>
@@ -38,7 +36,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="公钥内容:无" android:text="公钥内容:无"
android:textSize="14sp" android:textSize="14sp"
android:textColor="?attr/activityTextColor"
android:layout_marginBottom="40dp" android:layout_marginBottom="40dp"
android:maxLines="5" android:maxLines="5"
android:ellipsize="end"/> android:ellipsize="end"/>
@@ -50,9 +47,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="功能按钮待激活" android:text="功能按钮待激活"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/buttonTextColor" android:backgroundTint="@android:color/holo_blue_light"
android:backgroundTint="?attr/buttonBackgroundColor"
android:padding="14dp" android:padding="14dp"
android:enabled="false"/> android:enabled="false"/>
</LinearLayout> </LinearLayout>

View File

@@ -6,20 +6,19 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="16dp" android:padding="16dp"
android:gravity="center" android:gravity="center"
android:background="?attr/dialogBackgroundColor"> android:background="#FFDCDCDC">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="应用指纹校验" android:text="应用指纹校验"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/dialogTextColor"
android:textStyle="bold" android:textStyle="bold"
android:layout_marginBottom="12dp"/> android:layout_marginBottom="12dp"/>
<ScrollView <ScrollView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"> android:layout_height="wrap_content" android:background="@drawable/bg_container_border">
<EditText <EditText
android:id="@+id/et_sign_fingerprint" android:id="@+id/et_sign_fingerprint"
@@ -45,8 +44,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:textSize="11sp" android:textSize="11sp"
android:gravity="center" android:gravity="center"/>
android:textColor="?attr/dialogTextColor"/>/>
</LinearLayout> </LinearLayout>

View File

@@ -4,7 +4,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:padding="16dp" android:padding="16dp"
android:background="?attr/dialogBackgroundColor"> android:background="#FFFFFF">
<!-- 标题 --> <!-- 标题 -->
<TextView <TextView
@@ -12,7 +12,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="设置服务器地址" android:text="设置服务器地址"
android:textSize="16sp" android:textSize="16sp"
android:textColor="?attr/dialogTextColor"
android:textStyle="bold" android:textStyle="bold"
android:layout_marginBottom="16dp"/> android:layout_marginBottom="16dp"/>
@@ -23,7 +22,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="请输入服务器地址如http://localhost:8080" android:hint="请输入服务器地址如http://localhost:8080"
android:textSize="14sp" android:textSize="14sp"
android:textColor="?attr/dialogTextColor"
android:inputType="textUri" android:inputType="textUri"
android:padding="8dp" android:padding="8dp"
android:background="@android:drawable/edit_text" android:background="@android:drawable/edit_text"
@@ -34,7 +32,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:gravity="end"> android:gravity="end" android:background="@drawable/bg_container_border">
<!-- 取消按钮 --> <!-- 取消按钮 -->
<Button <Button
@@ -43,7 +41,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="取消" android:text="取消"
android:textSize="14sp" android:textSize="14sp"
android:textColor="?attr/dialogTextColor"
android:layout_marginRight="8dp"/> android:layout_marginRight="8dp"/>
<!-- 确认按钮 --> <!-- 确认按钮 -->
@@ -53,8 +50,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="确认" android:text="确认"
android:textSize="14sp" android:textSize="14sp"
android:backgroundTint="?attr/buttonBackgroundColor" android:backgroundTint="#2196F3"/>
android:textColor="?attr/buttonTextColor"/>
</LinearLayout> </LinearLayout>

View File

@@ -2,8 +2,7 @@
<ScrollView <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" android:background="@drawable/bg_container_border">
android:background="?attr/aboutViewBackgroundColor">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@@ -13,7 +12,7 @@
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingTop="16dp" android:paddingTop="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
android:paddingBottom="16dp"> android:paddingBottom="16dp" android:background="@drawable/bg_container_border">
<cc.winboll.studio.libappbase.views.DebugSwitchImageView <cc.winboll.studio.libappbase.views.DebugSwitchImageView
android:id="@+id/iv_app_icon" android:id="@+id/iv_app_icon"
@@ -26,8 +25,7 @@
android:id="@+id/tv_app_name_version" android:id="@+id/tv_app_name_version"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="18sp" android:textSize="18sp"/>
android:textColor="?attr/aboutViewTitleColor"/>
<TextView <TextView
android:id="@+id/tv_app_desc" android:id="@+id/tv_app_desc"
@@ -35,21 +33,20 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:textSize="14sp" android:textSize="14sp"/>
android:textColor="?attr/aboutViewTextColor"/>
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1px" android:layout_height="1px"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:background="?attr/aboutViewDividerColor"/> android:background="@color/gray_200"/>
<LinearLayout <LinearLayout
android:id="@+id/ll_function_container" android:id="@+id/ll_function_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical"/> android:orientation="vertical" android:background="@drawable/bg_container_border" />
<LinearLayout <LinearLayout
android:orientation="horizontal" android:orientation="horizontal"
@@ -57,7 +54,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:spacing="20dp"> android:spacing="20dp" android:background="@drawable/bg_container_border">
<ImageButton <ImageButton
android:layout_width="48dp" android:layout_width="48dp"

View File

@@ -5,30 +5,26 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor" android:id="@+id/viewglobalcrashreportLinearLayout1" android:background="@drawable/bg_container_border">
android:id="@+id/viewglobalcrashreportLinearLayout1">
<android.widget.Toolbar <android.widget.Toolbar
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/viewglobalcrashreportToolbar1"/> android:id="@+id/viewglobalcrashreportToolbar1"/>
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1.0" android:layout_weight="1.0" android:background="@drawable/bg_container_border">
android:fillViewport="true">
<HorizontalScrollView <HorizontalScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="match_parent" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="16dp" android:background="#FFFFFFFF"
android:textColor="?attr/activityTextColor"
android:id="@+id/viewglobalcrashreportTextView1"/> android:id="@+id/viewglobalcrashreportTextView1"/>
</HorizontalScrollView> </HorizontalScrollView>

View File

@@ -4,14 +4,14 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor"> android:background="#FF000000">
<RelativeLayout <RelativeLayout
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="34dp" android:layout_height="34dp"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:background="?attr/toolbarBackgroundColor" android:background="@drawable/bg_toolbar_log"
android:id="@+id/viewlogRelativeLayoutToolbar"> android:id="@+id/viewlogRelativeLayoutToolbar">
<Button <Button
@@ -19,8 +19,7 @@
android:layout_height="@dimen/log_button_height" android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size" android:textSize="@dimen/log_text_size"
android:text="Clean" android:text="Clean"
android:textColor="?attr/buttonTextColor" android:backgroundTint="@drawable/btn_gray_bg"
android:backgroundTint="?attr/buttonBackgroundColor"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:id="@+id/viewlogButtonClean" android:id="@+id/viewlogButtonClean"
android:layout_marginLeft="5dp"/> android:layout_marginLeft="5dp"/>
@@ -34,8 +33,7 @@
android:layout_toRightOf="@+id/viewlogButtonClean" android:layout_toRightOf="@+id/viewlogButtonClean"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:id="@+id/viewlogTextView1" android:id="@+id/viewlogTextView1"
android:background="?attr/buttonBackgroundColor" android:background="@color/btn_gray_normal"/>
android:textColor="?attr/buttonTextColor"/>
<cc.winboll.studio.libappbase.widget.LogTagSpinner <cc.winboll.studio.libappbase.widget.LogTagSpinner
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -52,17 +50,16 @@
android:layout_toLeftOf="@+id/viewlogButtonCopy" android:layout_toLeftOf="@+id/viewlogButtonCopy"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:text="Selectable" android:text="Selectable"
android:background="?attr/buttonBackgroundColor" android:background="@color/btn_gray_normal"
android:id="@+id/viewlogCheckBoxSelectable" android:id="@+id/viewlogCheckBoxSelectable"
android:padding="@dimen/log_text_padding" android:textColor="?android:attr/textColorPrimary"
android:textColor="?attr/buttonTextColor"/> android:padding="@dimen/log_text_padding"/>
<Button <Button
android:layout_width="@dimen/log_button_width" android:layout_width="@dimen/log_button_width"
android:layout_height="@dimen/log_button_height" android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size" android:textSize="@dimen/log_text_size"
android:textColor="?attr/buttonTextColor" android:backgroundTint="@drawable/btn_gray_bg"
android:backgroundTint="?attr/buttonBackgroundColor"
android:text="Copy" android:text="Copy"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
@@ -78,7 +75,7 @@
android:layout_below="@+id/viewlogRelativeLayoutToolbar" android:layout_below="@+id/viewlogRelativeLayoutToolbar"
android:id="@+id/viewlogLinearLayout1" android:id="@+id/viewlogLinearLayout1"
android:gravity="center_vertical" android:gravity="center_vertical"
android:background="?attr/toolbarBackgroundColor"> android:background="@drawable/bg_toolbar_log">
<CheckBox <CheckBox
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -87,9 +84,9 @@
android:text="ALL" android:text="ALL"
android:padding="2dp" android:padding="2dp"
android:id="@+id/viewlogCheckBox1" android:id="@+id/viewlogCheckBox1"
android:background="?attr/buttonBackgroundColor" android:background="@drawable/bg_border_round"
android:textColor="?attr/buttonTextColor"
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
android:textColor="?android:attr/textColorPrimary"
android:layout_marginRight="5dp"/> android:layout_marginRight="5dp"/>
<EditText <EditText
@@ -97,15 +94,13 @@
android:ems="10" android:ems="10"
android:layout_height="@dimen/log_button_height" android:layout_height="@dimen/log_button_height"
android:textSize="@dimen/log_text_size" android:textSize="@dimen/log_text_size"
android:textColor="?attr/activityTextColor"
android:background="?attr/buttonBackgroundColor"
android:singleLine="true" android:singleLine="true"
android:id="@+id/tagsearch_et"/> android:id="@+id/tagsearch_et"/>
<HorizontalScrollView <HorizontalScrollView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/buttonBackgroundColor" android:background="@drawable/bg_border"
android:scrollbars="none" android:scrollbars="none"
android:padding="2dp" android:padding="2dp"
android:layout_weight="1.0" android:layout_weight="1.0"
@@ -126,12 +121,12 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1.0" android:layout_weight="1.0"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_below="@+id/viewlogLinearLayout1"> android:layout_below="@+id/viewlogLinearLayout1" android:background="@drawable/bg_container_border">
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor" android:background="#FF000000"
android:id="@+id/viewlogScrollViewLog"> android:id="@+id/viewlogScrollViewLog">
<TextView <TextView
@@ -139,7 +134,6 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:textSize="@dimen/log_text_size" android:textSize="@dimen/log_text_size"
android:text="Text" android:text="Text"
android:textColor="#FF00FF00"
android:textIsSelectable="true" android:textIsSelectable="true"
android:id="@+id/viewlogTextViewLog"/> android:id="@+id/viewlogTextViewLog"/>
@@ -148,3 +142,4 @@
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View File

@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 全局主题属性 -->
<attr name="themeGlobalCrashActivity" format="reference"/>
<!-- GlobalCrashActivity 样式属性 -->
<declare-styleable name="GlobalCrashActivity">
<attr name="colorTittle" format="color" />
<attr name="colorTittleBackgound" format="color" />
<attr name="colorText" format="color" />
<attr name="colorTextBackgound" format="color" />
</declare-styleable>
<!-- AboutView 样式属性 -->
<declare-styleable name="AboutViewStyle">
<attr name="aboutViewBackgroundColor" format="color" />
<attr name="aboutViewTextColor" format="color" />
<attr name="aboutViewTitleColor" format="color" />
<attr name="aboutViewDividerColor" format="color" />
</declare-styleable>
<!-- ButtonStyle 样式属性 -->
<declare-styleable name="ButtonStyle">
<attr name="buttonBackgroundColor" format="color" />
<attr name="buttonTextColor" format="color" />
</declare-styleable>
<!-- DialogStyle 样式属性 -->
<declare-styleable name="DialogStyle">
<attr name="dialogBackgroundColor" format="color" />
<attr name="dialogTextColor" format="color" />
</declare-styleable>
<!-- 窗体/控件通用背景色属性 -->
<attr name="toolbarBackgroundColor" format="color"/>
<attr name="textViewBackgroundColor" format="color"/>
<attr name="editTextBackgroundColor" format="color"/>
<attr name="scrollViewBackgroundColor" format="color"/>
<!-- 窗体/控件通用文字色属性 -->
<attr name="toolbarTextColor" format="color"/>
<attr name="textViewTextColor" format="color"/>
<attr name="editTextTextColor" format="color"/>
<!-- ActivityStyle 样式属性 -->
<attr name="activityBackgroundColor" format="color"/>
<attr name="activityTextColor" format="color"/>
</resources>

View File

@@ -1,63 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#FF1E3A5F</color>
<color name="colorPrimaryDark">#FF15253D</color>
<color name="colorAccent">#FF4DA6FF</color>
<color name="colorText">#FFE0E0E0</color>
<color name="colorTextBackgound">#FF0D1B2A</color>
<!-- ============== 基础黑白(必含,适配文字/背景) ============== -->
<color name="white">#FFFFFF</color>
<color name="black">#000000</color>
<!-- ============== 基础色系(按钮/强调色常用) ============== -->
<color name="blue_light">#4A90E2</color>
<color name="blue_normal">#2196F3</color>
<color name="blue_dark">#1976D2</color>
<color name="green_light">#66BB6A</color>
<color name="green_normal">#4CAF50</color>
<color name="green_dark">#388E3C</color>
<color name="red_light">#EF5350</color>
<color name="red_normal">#F44336</color>
<color name="red_dark">#D32F2F</color>
<color name="yellow_light">#FFF59D</color>
<color name="yellow_normal">#FFC107</color>
<color name="yellow_dark">#FFA000</color>
<color name="orange_normal">#FF9800</color>
<color name="purple_normal">#9C27B0</color>
<!-- ============== 透明色(遮罩/背景叠加) ============== -->
<color name="transparent">#00000000</color>
<color name="black_transparent_50">#80000000</color>
<!-- ============== 不透明灰色(常用深浅梯度) ============== -->
<color name="gray_100">#1A1A1A</color>
<color name="gray_200">#262626</color>
<color name="gray_300">#333333</color>
<color name="gray_400">#4D4D4D</color>
<color name="gray_500">#666666</color>
<color name="gray_600">#808080</color>
<color name="gray_700">#999999</color>
<color name="gray_800">#B3B3B3</color>
<color name="gray_900">#CCCCCC</color>
<!-- ============== 半透明灰色 ============== -->
<color name="gray_transparent_30">#4D333333</color>
<color name="gray_transparent_50">#80333333</color>
<color name="gray_transparent_70">#B3333333</color>
<color name="gray_light">#333333</color>
<color name="gray_mid">#666666</color>
<color name="gray_dark">#999999</color>
<color name="gray_black">#CCCCCC</color>
<!-- ============== 遮罩/蒙层 ============== -->
<color name="mask_gray">#804D4D4D</color>
<color name="bg_overlay_gray">#4D1A1A1A</color>
<!-- ============== 按钮灰色 ============== -->
<color name="btn_gray_normal">#666666</color>
<color name="btn_gray_pressed">#4D4D4D</color>
<color name="btn_gray_disabled">#333333</color>
</resources>

View File

@@ -1,41 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- APPBaseTheme 深色模式主题 -->
<style name="APPBaseTheme" parent="@android:style/Theme.DeviceDefault.NoActionBar">
<item name="themeGlobalCrashActivity">@style/GlobalCrashActivityTheme</item>
<item name="aboutViewBackgroundColor">#FF0D1B2A</item>
<item name="aboutViewTextColor">#FFE0E0E0</item>
<item name="aboutViewTitleColor">#FFE0E0E0</item>
<item name="aboutViewDividerColor">#FF333333</item>
<item name="buttonBackgroundColor">#FF1E3A5F</item>
<item name="buttonTextColor">#FFE0E0E0</item>
<item name="dialogBackgroundColor">#FF0D1B2A</item>
<item name="dialogTextColor">#FFE0E0E0</item>
<item name="toolbarBackgroundColor">#FF1E3A5F</item>
<item name="toolbarTextColor">#FFE0E0E0</item>
<item name="textViewBackgroundColor">#FF0D1B2A</item>
<item name="textViewTextColor">#FFE0E0E0</item>
<item name="editTextBackgroundColor">#FF1E3A5F</item>
<item name="editTextTextColor">#FFE0E0E0</item>
<item name="scrollViewBackgroundColor">#FF0D1B2A</item>
<item name="activityBackgroundColor">#FF0D1B2A</item>
<item name="activityTextColor">#FFE0E0E0</item>
</style>
<!-- GlobalCrashActivityTheme 深色模式样式 -->
<style name="GlobalCrashActivityTheme" parent="@android:style/Theme.DeviceDefault.NoActionBar">
<item name="android:statusBarColor">#FF0D1B2A</item>
<item name="colorTittle">#FFE0E0E0</item>
<item name="colorTittleBackgound">#FF1E3A5F</item>
<item name="colorText">#FFE0E0E0</item>
<item name="colorTextBackgound">#FF0D1B2A</item>
</style>
<!-- DialogStyle 对话框样式 -->
<style name="DialogStyle" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>

View File

@@ -1,56 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!-- 全局主题属性 --> <attr name="borderCornerRadius" format="dimension" />
<attr name="themeGlobalCrashActivity" format="reference"/> <attr name="themeGlobalCrashActivity" format="reference"/>
<!-- AboutView 样式属性 --> <declare-styleable name="GlobalCrashActivity">
<declare-styleable name="AboutView"> <attr name="colorTittle" format="color" />
<attr name="app_name" format="string" /> <attr name="colorTittleBackgound" format="color" />
<attr name="app_apkfoldername" format="string" /> <attr name="colorText" format="color" />
<attr name="app_apkname" format="string" /> <attr name="colorTextBackgound" format="color" />
<attr name="app_gitname" format="string" />
<attr name="app_gitowner" format="string" />
<attr name="app_gitappbranch" format="string" />
<attr name="app_gitappsubprojectfolder" format="string" />
<attr name="appdescription" format="string" />
<attr name="appicon" format="reference" />
<attr name="is_adddebugtools" format="boolean" />
</declare-styleable> </declare-styleable>
<!-- AboutViewStyle 样式属性 -->
<declare-styleable name="AboutViewStyle">
<attr name="aboutViewBackgroundColor" format="color" />
<attr name="aboutViewTextColor" format="color" />
<attr name="aboutViewTitleColor" format="color" />
<attr name="aboutViewDividerColor" format="color" />
</declare-styleable>
<!-- ButtonStyle 样式属性 -->
<declare-styleable name="ButtonStyle">
<attr name="buttonBackgroundColor" format="color" />
<attr name="buttonTextColor" format="color" />
</declare-styleable>
<!-- DialogStyle 样式属性 -->
<declare-styleable name="DialogStyle">
<attr name="dialogBackgroundColor" format="color" />
<attr name="dialogTextColor" format="color" />
</declare-styleable>
<!-- 窗体/控件通用背景色属性 -->
<attr name="toolbarBackgroundColor" format="color"/>
<attr name="textViewBackgroundColor" format="color"/>
<attr name="editTextBackgroundColor" format="color"/>
<attr name="scrollViewBackgroundColor" format="color"/>
<!-- 窗体/控件通用文字色属性 -->
<attr name="toolbarTextColor" format="color"/>
<attr name="textViewTextColor" format="color"/>
<attr name="editTextTextColor" format="color"/>
<!-- ActivityStyle 样式属性 -->
<attr name="activityBackgroundColor" format="color"/>
<attr name="activityTextColor" format="color"/>
</resources> </resources>

View File

@@ -1,63 +1,74 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorPrimary">#FF00B322</color> <color name="colorPrimary">#FF00B322</color>
<color name="colorPrimaryDark">#FF008F1A</color> <color name="colorPrimaryDark">#FF005C12</color>
<color name="colorAccent">#FF8DFFA2</color> <color name="colorAccent">#FF8DFFA2</color>
<color name="colorText">#FF000000</color> <color name="colorText">#FFFFFB8D</color>
<color name="colorTextBackgound">#FFF5F5F5</color> <color name="colorTextBackgound">#FF000000</color>
<!-- ============== 基础黑白(必含,适配文字/背景) ============== --> <!-- ============== 基础黑白(必含,适配文字/背景) ============== -->
<color name="white">#FFFFFF</color> <color name="white">#FFFFFF</color> <!-- 纯白色(文字/背景) -->
<color name="black">#000000</color> <color name="black">#000000</color> <!-- 近黑色(重要文字) -->
<!-- ============== 基础色系(按钮/强调色常用) ============== --> <!-- ============== 基础色系(按钮/强调色常用) ============== -->
<color name="blue_light">#4A90E2</color> <!-- 蓝色系(常用:确认/链接/主题色) -->
<color name="blue_normal">#2196F3</color> <color name="blue_light">#4A90E2</color> <!-- 浅蓝(次要按钮) -->
<color name="blue_dark">#1976D2</color> <color name="blue_normal">#2196F3</color> <!-- 标准蓝(主题/确认按钮) -->
<color name="green_light">#66BB6A</color> <color name="blue_dark">#1976D2</color> <!-- 深蓝(按压态/重要强调) -->
<color name="green_normal">#4CAF50</color> <!-- 绿色系(常用:成功/完成/安全提示) -->
<color name="green_dark">#388E3C</color> <color name="green_light">#66BB6A</color> <!-- 浅绿(次要成功态) -->
<color name="red_light">#EF5350</color> <color name="green_normal">#4CAF50</color> <!-- 标准绿(成功按钮/提示) -->
<color name="red_normal">#F44336</color> <color name="green_dark">#388E3C</color> <!-- 深绿(按压态/重要成功) -->
<color name="red_dark">#D32F2F</color> <!-- 红色系(常用:错误/警告/删除按钮) -->
<color name="yellow_light">#FFF59D</color> <color name="red_light">#EF5350</color> <!-- 浅红(次要错误提示) -->
<color name="yellow_normal">#FFC107</color> <color name="red_normal">#F44336</color> <!-- 标准红(删除/错误按钮) -->
<color name="yellow_dark">#FFA000</color> <color name="red_dark">#D32F2F</color> <!-- 深红(按压态/重要错误) -->
<color name="orange_normal">#FF9800</color> <!-- 黄色系(常用:警告/提醒/高亮) -->
<color name="purple_normal">#9C27B0</color> <color name="yellow_light">#FFF59D</color> <!-- 浅黄(次要提醒) -->
<color name="yellow_normal">#FFC107</color> <!-- 标准黄(警告提示/高亮) -->
<color name="yellow_dark">#FFA000</color> <!-- 深黄(重要警告) -->
<!-- 橙色系(常用:提醒/进度/活力色) -->
<color name="orange_normal">#FF9800</color> <!-- 标准橙(提醒按钮/进度) -->
<!-- 紫色系(常用:特殊强调/个性按钮) -->
<color name="purple_normal">#9C27B0</color> <!-- 标准紫(特殊功能按钮) -->
<!-- ============== 透明色(遮罩/背景叠加) ============== --> <!-- ============== 透明色(遮罩/背景叠加) ============== -->
<color name="transparent">#00000000</color> <color name="transparent">#00000000</color> <!-- 全透明 -->
<color name="black_transparent_50">#80000000</color> <color name="black_transparent_50">#80000000</color> <!-- 50%透明黑(遮罩) -->
<!-- ============== 不透明灰色(常用深浅梯度) ============== -->
<color name="gray_100">#F5F5F5</color>
<color name="gray_200">#EEEEEE</color>
<color name="gray_300">#E0E0E0</color>
<color name="gray_400">#BDBDBD</color>
<color name="gray_500">#9E9E9E</color>
<color name="gray_600">#757575</color>
<color name="gray_700">#616161</color>
<color name="gray_800">#424242</color>
<color name="gray_900">#212121</color>
<!-- ============== 半透明灰色 ============== -->
<color name="gray_transparent_30">#4D9E9E9E</color>
<color name="gray_transparent_50">#809E9E9E</color>
<color name="gray_transparent_70">#B39E9E9E</color>
<color name="gray_light">#EEE</color> <!-- 1. 不透明灰色(常用深浅梯度,直接用) -->
<color name="gray_mid">#999</color> <color name="gray_100">#F5F5F5</color> <!-- 极浅灰(接近白色,背景用) -->
<color name="gray_dark">#666</color> <color name="gray_200">#EEEEEE</color> <!-- 浅灰(卡片/分割线背景) -->
<color name="gray_black">#333</color> <color name="gray_300">#E0E0E0</color> <!-- 中浅灰(边框/次要背景) -->
<color name="gray_400">#BDBDBD</color> <!-- 中灰(次要文字/图标) -->
<color name="gray_500">#9E9E9E</color> <!-- 标准中灰(常用辅助文字) -->
<color name="gray_600">#757575</color> <!-- 中深灰(常规辅助文字) -->
<color name="gray_700">#616161</color> <!-- 深灰(重要辅助文字) -->
<color name="gray_800">#424242</color> <!-- 极深灰(接近黑色,标题副文本) -->
<color name="gray_900">#212121</color> <!-- 近黑色(特殊场景用) -->
<!-- ============== 遮罩/蒙层 ============== --> <!-- 2. 半透明灰色(带透明度,遮罩/蒙层用) -->
<color name="gray_transparent_30">#4D9E9E9E</color> <!-- 30%透明中灰A=4D -->
<color name="gray_transparent_50">#809E9E9E</color> <!-- 50%透明中灰A=80 -->
<color name="gray_transparent_70">#B39E9E9E</color> <!-- 70%透明中灰A=B3 -->
<color name="gray_light">#EEE</color> <!-- 等价 #EEEEEE浅灰 -->
<color name="gray_mid">#999</color> <!-- 等价 #999999中灰 -->
<color name="gray_dark">#666</color> <!-- 等价 #666666深灰 -->
<color name="gray_black">#333</color> <!-- 等价 #333333极深灰 -->
<!-- 50% 透明中灰(弹窗遮罩常用) -->
<color name="mask_gray">#809E9E9E</color> <color name="mask_gray">#809E9E9E</color>
<!-- 30% 透明深灰(背景叠加) -->
<color name="bg_overlay_gray">#4D424242</color> <color name="bg_overlay_gray">#4D424242</color>
<!-- ============== 按钮灰色 ============== --> <!-- 1. 常规灰色(按钮默认态,常用中灰) -->
<color name="btn_gray_normal">#9E9E9E</color> <color name="btn_gray_normal">#9E9E9E</color>
<!-- 2. 按压深色(按钮点击态,加深一级,提升交互感) -->
<color name="btn_gray_pressed">#757575</color> <color name="btn_gray_pressed">#757575</color>
<!-- 3. 禁用灰色(按钮不可点击态,浅灰) -->
<color name="btn_gray_disabled">#E0E0E0</color> <color name="btn_gray_disabled">#E0E0E0</color>
</resources> </resources>

View File

@@ -3,6 +3,4 @@
<string name="lib_name">libappbase</string> <string name="lib_name">libappbase</string>
<string name="hello_world">Hello, world!</string> <string name="hello_world">Hello, world!</string>
<string name="shared_user_id">cc.winboll.studio</string>
<string name="shared_user_label">studio@winboll.cc</string>
</resources> </resources>

View File

@@ -1,38 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!-- APPBaseTheme 普通模式主题 -->
<style name="APPBaseTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar"> <style name="APPBaseTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
<item name="themeGlobalCrashActivity">@style/GlobalCrashActivityTheme</item> <item name="themeGlobalCrashActivity">@style/GlobalCrashActivityTheme</item>
<item name="aboutViewBackgroundColor">#FFF5F5F5</item>
<item name="aboutViewTextColor">#FF000000</item>
<item name="aboutViewTitleColor">#FF000000</item>
<item name="aboutViewDividerColor">#FFE0E0E0</item>
<item name="buttonBackgroundColor">#FF00B322</item>
<item name="buttonTextColor">#FF000000</item>
<item name="dialogBackgroundColor">#FFF5F5F5</item>
<item name="dialogTextColor">#FF000000</item>
<item name="toolbarBackgroundColor">#FF00B322</item>
<item name="toolbarTextColor">#FF000000</item>
<item name="textViewBackgroundColor">#FFF5F5F5</item>
<item name="textViewTextColor">#FF000000</item>
<item name="editTextBackgroundColor">#FFFFFFFF</item>
<item name="editTextTextColor">#FF000000</item>
<item name="scrollViewBackgroundColor">#FFF5F5F5</item>
<item name="activityBackgroundColor">#FFF5F5F5</item>
<item name="activityTextColor">#FF000000</item>
</style> </style>
<!-- GlobalCrashActivityTheme 普通模式样式 --> <style name="GlobalCrashActivityTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
<style name="GlobalCrashActivityTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar"> <item name="colorTittle">#FFFFF600</item>
<item name="android:statusBarColor">#FF00B322</item>
<item name="colorTittle">#FF000000</item>
<item name="colorTittleBackgound">#FF00B322</item> <item name="colorTittleBackgound">#FF00B322</item>
<item name="colorText">#FF000000</item> <item name="colorText">#FF00B322</item>
<item name="colorTextBackgound">#FFF5F5F5</item> <item name="colorTextBackgound">#FF000000</item>
</style> </style>
<!-- DialogStyle 对话框样式 -->
<style name="DialogStyle" parent="@android:style/Theme.Dialog"> <style name="DialogStyle" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowNoTitle">true</item> <item name="android:windowNoTitle">true</item>

View File

@@ -1,38 +0,0 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply from: '../.winboll/winboll_lib_build.gradle'
apply from: '../.winboll/winboll_lint_build.gradle'
android {
// 适配MIUI12
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 26
targetSdkVersion 30
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
// 网络连接类库
api 'com.squareup.okhttp3:okhttp:4.4.1'
// Gson
api 'com.google.code.gson:gson:2.8.9'
// Html 解析
api 'org.jsoup:jsoup:1.13.1'
// 添加JSch依赖SFTP核心com.jcraft:jsch:0.1.54
api 'com.jcraft:jsch:0.1.54'
// WinBoLL库 nexus.winboll.cc 地址
api 'cc.winboll.studio:libaes:15.15.2'
api 'cc.winboll.studio:libappbase:15.15.11'
api fileTree(dir: 'libs', include: ['*.jar'])
}

View File

@@ -1,8 +0,0 @@
#Created by .winboll/winboll_app_build.gradle
#Sat May 09 19:01:46 GMT 2026
stageCount=27
libraryProject=libwinboll
baseVersion=15.11
publishVersion=15.11.26
buildCount=29
baseBetaVersion=15.11.27

View File

@@ -1,17 +0,0 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:/tools/adt-bundle-windows-x86_64-20131030/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cc.winboll.studio.libwinboll" >
<application>
<activity
android:name=".WinBoLLLibraryActivity">
</activity>
</application>
</manifest>

View File

@@ -1,17 +0,0 @@
package cc.winboll.studio.libwinboll;
import android.app.Activity;
import android.os.Bundle;
import cc.winboll.studio.libappbase.ToastUtils;
public class WinBoLLLibraryActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_winbolllibrary);
ToastUtils.show("WinBoLLLibraryActivity onCreate");
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -1,11 +0,0 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="cc.winboll.studio.libwinboll.WinBoLLLibraryActivity"/>
</LinearLayout>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.Material.Light">
</style>
</resources>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="lib_name">libwinboll</string>
<string name="hello_world">Hello world!</string>
</resources>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
</style>
</resources>

Some files were not shown because too many files have changed in this diff Show More