mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-01 16:55:18 +08:00
- From module activity enter to AppErrorsRecordActivity - Only show errors dialog when apps in front or main process - More i18n support
513 lines
22 KiB
XML
513 lines
22 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/colorThemeBackground"
|
|
android:orientation="vertical"
|
|
tools:context=".ui.activity.main.MainActivity"
|
|
tools:ignore="UseCompoundDrawables,ContentDescription,SmallSp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:elevation="0dp"
|
|
android:gravity="center|start"
|
|
android:paddingLeft="15dp"
|
|
android:paddingTop="13dp"
|
|
android:paddingRight="15dp"
|
|
android:paddingBottom="5dp">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:singleLine="true"
|
|
android:text="@string/app_name"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="25sp"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:id="@+id/title_restart_icon"
|
|
style="?android:attr/selectableItemBackgroundBorderless"
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:layout_marginEnd="15dp"
|
|
android:alpha="0.85"
|
|
android:src="@mipmap/ic_restart"
|
|
android:tint="@color/colorTextGray"
|
|
android:tooltipText="@string/restart_system" />
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:id="@+id/title_github_icon"
|
|
style="?android:attr/selectableItemBackgroundBorderless"
|
|
android:layout_width="27dp"
|
|
android:layout_height="27dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:alpha="0.85"
|
|
android:src="@mipmap/ic_github"
|
|
android:tint="@color/colorTextGray"
|
|
android:tooltipText="@string/project_address" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_lin_status"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="@drawable/bg_dark_round"
|
|
android:elevation="0dp"
|
|
android:gravity="center">
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:id="@+id/main_img_status"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_marginStart="25dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:src="@mipmap/ic_warn"
|
|
android:tint="@color/white" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="20dp"
|
|
android:paddingTop="10dp"
|
|
android:paddingRight="20dp"
|
|
android:paddingBottom="10dp">
|
|
|
|
<TextView
|
|
android:id="@+id/main_text_status"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="5dp"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:text="@string/module_not_activated"
|
|
android:textColor="@color/white"
|
|
android:textSize="18sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="5dp"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/main_text_version"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.8"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:text="@string/module_version"
|
|
android:textColor="@color/white"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/main_text_release_version"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:background="@drawable/bg_orange_round"
|
|
android:ellipsize="end"
|
|
android:paddingLeft="5dp"
|
|
android:paddingTop="2dp"
|
|
android:paddingRight="5dp"
|
|
android:paddingBottom="2dp"
|
|
android:singleLine="true"
|
|
android:textColor="@color/white"
|
|
android:textSize="11sp"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/main_text_system_version"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.8"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:text="@string/system_version"
|
|
android:textColor="@color/white"
|
|
android:textSize="13sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/main_text_api_way"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:alpha="0.6"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textColor="@color/white"
|
|
android:textSize="11sp"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="10dp"
|
|
android:fadingEdgeLength="10dp"
|
|
android:fillViewport="true"
|
|
android:requiresFadingEdge="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="15dp"
|
|
android:background="@drawable/bg_permotion_round"
|
|
android:elevation="0dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="15dp">
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:alpha="0.85"
|
|
android:src="@mipmap/ic_about"
|
|
android:tint="@color/colorTextDark" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="5dp"
|
|
android:text="@string/after_some_settings_need_restart"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="11sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:animateLayoutChanges="true"
|
|
android:background="@drawable/bg_permotion_round"
|
|
android:elevation="0dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingTop="15dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:gravity="center|start">
|
|
|
|
<ImageView
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:src="@mipmap/ic_basic" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.85"
|
|
android:singleLine="true"
|
|
android:text="@string/preference_settings"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<com.fankes.apperrorstracking.ui.view.MaterialSwitch
|
|
android:id="@+id/only_show_errors_in_front_switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:text="@string/only_show_errors_in_front"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/only_show_errors_in_front_tip"
|
|
android:textColor="@color/colorTextDark"
|
|
android:textSize="12sp" />
|
|
|
|
<com.fankes.apperrorstracking.ui.view.MaterialSwitch
|
|
android:id="@+id/only_show_errors_in_main_process_switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:text="@string/only_show_errors_in_main_process"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/only_show_errors_in_main_process_tip"
|
|
android:textColor="@color/colorTextDark"
|
|
android:textSize="12sp" />
|
|
|
|
<com.fankes.apperrorstracking.ui.view.MaterialSwitch
|
|
android:id="@+id/enable_apps_configs_template_switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:text="@string/enable_apps_config_template"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/mgr_apps_configs_template_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="13dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="13dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="@drawable/bg_button_round"
|
|
android:gravity="center"
|
|
android:padding="10dp"
|
|
android:singleLine="true"
|
|
android:text="@string/mgr_apps_config_template"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/apps_config_template_tip"
|
|
android:textColor="@color/colorTextDark"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:background="@drawable/bg_permotion_round"
|
|
android:elevation="0dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingTop="15dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:gravity="center|start">
|
|
|
|
<ImageView
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:src="@mipmap/ic_control" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.85"
|
|
android:singleLine="true"
|
|
android:text="@string/function_mgr"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/view_errors_record_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="13dp"
|
|
android:layout_marginRight="13dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:background="@drawable/bg_button_round"
|
|
android:gravity="center"
|
|
android:padding="10dp"
|
|
android:singleLine="true"
|
|
android:text="@string/view_errors_record"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/view_errors_record_tip"
|
|
android:textColor="@color/colorTextDark"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/view_ignored_errors_apps_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="13dp"
|
|
android:layout_marginRight="13dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:background="@drawable/bg_button_round"
|
|
android:gravity="center"
|
|
android:padding="10dp"
|
|
android:singleLine="true"
|
|
android:text="@string/view_ignored_errors_apps"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/view_ignored_errors_apps_tip"
|
|
android:textColor="@color/colorTextDark"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:background="@drawable/bg_permotion_round"
|
|
android:elevation="0dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="15dp"
|
|
android:paddingTop="15dp"
|
|
android:paddingRight="15dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center|start">
|
|
|
|
<ImageView
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:src="@mipmap/ic_home" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.85"
|
|
android:singleLine="true"
|
|
android:text="@string/display_settings"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<com.fankes.apperrorstracking.ui.view.MaterialSwitch
|
|
android:id="@+id/hide_icon_in_launcher_switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/hide_app_icon_on_desktop"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10dp"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/hide_app_icon_on_desktop_tip"
|
|
android:textColor="@color/colorTextDark"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10dp"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="6dp"
|
|
android:text="@string/hide_app_icon_on_desktop_notice"
|
|
android:textColor="#FF5722"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:background="@drawable/bg_permotion_round"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="10dp">
|
|
|
|
<ImageView
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:src="@mipmap/ic_yukihookapi" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:autoLink="web"
|
|
android:ellipsize="end"
|
|
android:lineSpacingExtra="6dp"
|
|
android:maxLines="2"
|
|
android:text="@string/about_module"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="11sp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</LinearLayout> |