Files
Gallery/contacts/src/main/res/layout/view_debug_tool_buttons.xml
T
MiMo 1d0322252e refactor: 精简调试工具按钮组
移除冗余按钮,仅保留测试崩溃和布局草稿两个功能:
- 移除:清除数据、查看SP、查看日志、重启服务、应用信息
- 测试崩溃改为getString循环触发崩溃
2026-07-19 04:17:39 +08:00

46 lines
1.2 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="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginBottom="8dp"
android:padding="12dp"
android:background="@drawable/recycler_view_border">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="调试工具"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="@color/red_normal"
android:layout_marginBottom="8dp"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right">
<Button
android:id="@+id/btn_debug_crash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="测试崩溃"
android:textSize="12sp"
android:layout_margin="2dp"/>
<Button
android:id="@+id/btn_debug_layout_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="布局草稿"
android:textSize="12sp"
android:layout_margin="2dp"/>
</LinearLayout>
</LinearLayout>