mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-06 03:05:17 +08:00
Added App errors statistics function
This commit is contained in:
9
app/src/main/res/drawable/ic_statistics.xml
Normal file
9
app/src/main/res/drawable/ic_statistics.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="150dp"
|
||||
android:height="150dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024">
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M446.2,566.7h369.3c-2.9,103.8 -39.4,190.7 -109.4,260.7s-156.6,106.4 -259.9,109.4c-103.8,-2.9 -190.7,-39.4 -260.7,-109.4s-106.4,-156.9 -109.4,-260.7c2.9,-103.2 39.4,-189.9 109.4,-259.9S342.4,200.4 446.2,197.5v369.2zM829.5,183.5c70,70 106.4,156.9 109.4,260.7L568.7,444.2L568.7,74.1c103.9,2.9 190.8,39.4 260.8,109.4z" />
|
||||
</vector>
|
@@ -40,6 +40,16 @@
|
||||
android:textSize="19sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterView
|
||||
android:id="@+id/app_error_sis_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:src="@drawable/ic_statistics"
|
||||
android:tint="@color/colorTextGray"
|
||||
android:tooltipText="@string/app_errors_statistics"
|
||||
android:visibility="gone" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterView
|
||||
android:id="@+id/clear_all_icon"
|
||||
android:layout_width="26dp"
|
||||
|
169
app/src/main/res/layout/dia_app_errors_statistics.xml
Normal file
169
app/src/main/res/layout/dia_app_errors_statistics.xml
Normal file
@@ -0,0 +1,169 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingTop="15dp"
|
||||
android:paddingRight="15dp"
|
||||
tools:ignore="ContentDescription,SmallSp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8.5dp"
|
||||
android:layout_marginRight="8.5dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:gravity="center|start">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/total_errors"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/total_errors_unit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/total_errors_unit"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8.5dp"
|
||||
android:layout_marginRight="8.5dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:gravity="center|start">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/total_apps"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/total_apps_unit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/total_apps_unit"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8.5dp"
|
||||
android:layout_marginRight="8.5dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:gravity="center|start">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/most_errors_app"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
app:cardBackgroundColor="@color/trans"
|
||||
app:cardCornerRadius="3.5dp"
|
||||
app:cardElevation="0dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/most_errors_app_icon"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/ic_android" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/most_errors_app_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8.5dp"
|
||||
android:layout_marginRight="8.5dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:gravity="center|start">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/most_errors_type"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/most_errors_type_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:background="@drawable/bg_red_round"
|
||||
android:ellipsize="end"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingTop="0.5dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingBottom="0.5dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8.5dp"
|
||||
android:layout_marginRight="8.5dp"
|
||||
android:gravity="center|start">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/total_proportion_of_errors"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/total_ppt_of_errors_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@@ -99,4 +99,13 @@
|
||||
<string name="show_errors_dialog">エラーダイアログを表示</string>
|
||||
<string name="show_errors_toast">エラー Toast を表示</string>
|
||||
<string name="show_nothing">何も表示されません</string>
|
||||
<string name="app_errors_statistics">アプリのエラー統計</string>
|
||||
<string name="total_errors">エラーの総数</string>
|
||||
<string name="total_apps">アプリの総数</string>
|
||||
<string name="most_errors_app">エラーが最も多いアプリ</string>
|
||||
<string name="most_errors_type">エラーが最も多いタイプ</string>
|
||||
<string name="total_proportion_of_errors">エラーの合計割合</string>
|
||||
<string name="total_errors_unit">%1$s 個</string>
|
||||
<string name="total_apps_unit">%1$s 個 (システムアプリを含む)</string>
|
||||
<string name="generating_statistics">統計が生成されています</string>
|
||||
</resources>
|
@@ -99,4 +99,13 @@
|
||||
<string name="show_errors_dialog">显示错误对话框</string>
|
||||
<string name="show_errors_toast">显示错误 Toast 提示</string>
|
||||
<string name="show_nothing">不显示任何提示</string>
|
||||
<string name="app_errors_statistics">应用异常统计</string>
|
||||
<string name="total_errors">异常总数</string>
|
||||
<string name="total_apps">应用总数</string>
|
||||
<string name="most_errors_app">最多异常的应用</string>
|
||||
<string name="most_errors_type">最多异常的类型</string>
|
||||
<string name="total_proportion_of_errors">异常总占比</string>
|
||||
<string name="total_errors_unit">%1$s 条</string>
|
||||
<string name="total_apps_unit">%1$s 个 (含系统应用)</string>
|
||||
<string name="generating_statistics">正在生成统计数据</string>
|
||||
</resources>
|
@@ -99,4 +99,13 @@
|
||||
<string name="show_errors_dialog">顯示錯誤對話框</string>
|
||||
<string name="show_errors_toast">顯示錯誤 Toast 提示</string>
|
||||
<string name="show_nothing">不顯示任何提示</string>
|
||||
<string name="app_errors_statistics">程式異常統計</string>
|
||||
<string name="total_errors">異常總數</string>
|
||||
<string name="total_apps">程式總數</string>
|
||||
<string name="most_errors_app">最多異常的程式</string>
|
||||
<string name="most_errors_type">最多異常的類型</string>
|
||||
<string name="total_proportion_of_errors">異常總佔比</string>
|
||||
<string name="total_errors_unit">%1$s 條</string>
|
||||
<string name="total_apps_unit">%1$s 個 (含系統程式)</string>
|
||||
<string name="generating_statistics">統計數據生成中</string>
|
||||
</resources>
|
@@ -99,4 +99,13 @@
|
||||
<string name="show_errors_dialog">顯示錯誤對話框</string>
|
||||
<string name="show_errors_toast">顯示錯誤 Toast 提示</string>
|
||||
<string name="show_nothing">不顯示任何提示</string>
|
||||
<string name="app_errors_statistics">程式異常統計</string>
|
||||
<string name="total_errors">異常總數</string>
|
||||
<string name="total_apps">程式總數</string>
|
||||
<string name="most_errors_app">最多異常的程式</string>
|
||||
<string name="most_errors_type">最多異常的類型</string>
|
||||
<string name="total_proportion_of_errors">異常總佔比</string>
|
||||
<string name="total_errors_unit">%1$s 條</string>
|
||||
<string name="total_apps_unit">%1$s 個 (含系統程式)</string>
|
||||
<string name="generating_statistics">統計數據生成中</string>
|
||||
</resources>
|
@@ -99,4 +99,13 @@
|
||||
<string name="show_errors_dialog">顯示錯誤對話框</string>
|
||||
<string name="show_errors_toast">顯示錯誤 Toast 提示</string>
|
||||
<string name="show_nothing">不顯示任何提示</string>
|
||||
<string name="app_errors_statistics">程式異常統計</string>
|
||||
<string name="total_errors">異常總數</string>
|
||||
<string name="total_apps">程式總數</string>
|
||||
<string name="most_errors_app">最多異常的程式</string>
|
||||
<string name="most_errors_type">最多異常的類型</string>
|
||||
<string name="total_proportion_of_errors">異常總佔比</string>
|
||||
<string name="total_errors_unit">%1$s 條</string>
|
||||
<string name="total_apps_unit">%1$s 個 (含系統程式)</string>
|
||||
<string name="generating_statistics">統計數據生成中</string>
|
||||
</resources>
|
@@ -99,4 +99,13 @@
|
||||
<string name="show_errors_dialog">Show errors dialog</string>
|
||||
<string name="show_errors_toast">Show errors Toast</string>
|
||||
<string name="show_nothing">Don\'t show anything</string>
|
||||
<string name="app_errors_statistics">App errors statistics</string>
|
||||
<string name="total_errors">Total errors</string>
|
||||
<string name="total_apps">Total apps</string>
|
||||
<string name="most_errors_app">The most errors app</string>
|
||||
<string name="most_errors_type">The most errors type</string>
|
||||
<string name="total_proportion_of_errors">Total proportion of errors</string>
|
||||
<string name="total_errors_unit">%1$s</string>
|
||||
<string name="total_apps_unit">%1$s (including system apps)</string>
|
||||
<string name="generating_statistics">Generating statistics</string>
|
||||
</resources>
|
Reference in New Issue
Block a user