1. 重命名调试主题属性 - themeGlobalCrashActivity → themeDebug - GlobalCrashActivityTheme → DebugActivityTheme 2. 新增 debugTextColor 属性 - 定义 debugTextColor 属性,用于统一应用调试文字颜色 - 普通模式: 灰色 #808080 - 深色模式: 绿色 #FF00FF00 3. 重构视图控件 - view_globalcrashreport.xml 和 view_log.xml 使用 themeDebug 主题 - 控件颜色统一引用主题属性 - 日志显示文本使用 debugTextColor 属性 4. GlobalCrashReportView Java 代码 - 新增 obtainDebugTextColor() 方法获取主题中的 debugTextColor - 崩溃视图文字颜色通过主题属性获取,与日志视图一致
151 lines
4.8 KiB
XML
151 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:theme="?attr/themeDebug"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorTextBackgound">
|
|
|
|
<RelativeLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="34dp"
|
|
android:layout_alignParentTop="true"
|
|
android:background="?attr/colorTittleBackgound"
|
|
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/colorText"
|
|
android:backgroundTint="?attr/colorTittleBackgound"
|
|
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/colorTittleBackgound"
|
|
android:textColor="?attr/colorText"/>
|
|
|
|
<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/colorTittleBackgound"
|
|
android:id="@+id/viewlogCheckBoxSelectable"
|
|
android:padding="@dimen/log_text_padding"
|
|
android:textColor="?attr/colorText"/>
|
|
|
|
<Button
|
|
android:layout_width="@dimen/log_button_width"
|
|
android:layout_height="@dimen/log_button_height"
|
|
android:textSize="@dimen/log_text_size"
|
|
android:textColor="?attr/colorText"
|
|
android:backgroundTint="?attr/colorTittleBackgound"
|
|
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/colorTittleBackgound">
|
|
|
|
<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/colorTittleBackgound"
|
|
android:textColor="?attr/colorText"
|
|
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/colorText"
|
|
android:background="?attr/colorTittleBackgound"
|
|
android:singleLine="true"
|
|
android:id="@+id/tagsearch_et"/>
|
|
|
|
<HorizontalScrollView
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorTittleBackgound"
|
|
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/colorTextBackgound"
|
|
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="?attr/debugTextColor"
|
|
android:textIsSelectable="true"
|
|
android:id="@+id/viewlogTextViewLog"/>
|
|
|
|
</ScrollView>
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout> |