- 优化 CrashHandler 崩溃处理逻辑,统一通知发送逻辑 - 新增 GlobalAppCrashSafetyWire 独立崩溃安全防护类 - 增强 LogUtils 日志工具,补齐异常日志重载方法 - 重构 GlobalCrashActivity 页面,提升稳定性与可读性 - 修复 activity_globalcrash.xml 布局多余符号 - 新增 CrashTestActivity 崩溃测试页面 - 更新 buildCount 编译计数
61 lines
1.7 KiB
XML
61 lines
1.7 KiB
XML
<?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">
|
|
|
|
<cc.winboll.studio.appbase.UndefinedCustomView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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="onBack"
|
|
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="onTestCrash"
|
|
android:layout_margin="10dp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|