created a debugging screen for viewing the application logs
This commit is contained in:
parent
9f65cb5ce8
commit
8b57289746
19 changed files with 190 additions and 40 deletions
14
res/layout/pref_plain_text.xml
Normal file
14
res/layout/pref_plain_text.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?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:paddingHorizontal="@dimen/pref_padding_horizontal"
|
||||
android:paddingVertical="@dimen/pref_padding_vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView" />
|
||||
</LinearLayout>
|
||||
|
|
@ -21,12 +21,13 @@
|
|||
<string name="pref_category_about">About</string>
|
||||
<string name="pref_category_abc_mode">ABC Mode</string>
|
||||
<string name="pref_category_appearance">Appearance</string>
|
||||
<string name="pref_category_debug_options" translatable="false">Debug Options</string>
|
||||
<string name="pref_category_log_messages" translatable="false">Recent Log Messages</string>
|
||||
<string name="pref_category_predictive_mode">Predictive Mode</string>
|
||||
<string name="pref_category_function_keys">Select Hotkeys</string>
|
||||
<string name="pref_category_keypad">Keypad</string>
|
||||
<string name="pref_category_setup">Initial Setup</string>
|
||||
|
||||
|
||||
<string name="pref_abc_auto_accept">Automatic Letter Select</string>
|
||||
<string name="pref_abc_auto_accept_summary">Automatically type the selected letter after a short delay.</string>
|
||||
<string name="pref_auto_space">Automatic Space</string>
|
||||
|
|
@ -38,6 +39,8 @@
|
|||
<string name="pref_dark_theme_yes">Yes</string>
|
||||
<string name="pref_dark_theme_no">No</string>
|
||||
<string name="pref_dark_theme_auto">Auto</string>
|
||||
<string name="pref_debug_logs" translatable="false">Detailed Debug Logs</string>
|
||||
<string name="pref_system_logs" translatable="false">System Logs</string>
|
||||
<string name="pref_double_zero_char">Character for Double 0-key Press</string>
|
||||
<string name="pref_show_soft_function_keys">Show On-Screen Keys</string>
|
||||
<string name="pref_show_soft_numpad">Show On-Screen Numpad</string>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
app:singleLineTitle="true">
|
||||
|
||||
<Preference
|
||||
app:fragment="io.github.sspanak.tt9.preferences.DebugScreen"
|
||||
app:key="version_info"
|
||||
app:layout="@layout/pref_text"
|
||||
app:title="@string/app_name" />
|
||||
|
|
|
|||
25
res/xml/prefs_screen_debug.xml
Normal file
25
res/xml/prefs_screen_debug.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto" app:orderingFromXml="true">
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
app:key="pref_enable_debug_logs"
|
||||
app:layout="@layout/pref_switch"
|
||||
app:title="@string/pref_debug_logs" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
app:key="pref_enable_system_logs"
|
||||
app:layout="@layout/pref_switch"
|
||||
app:title="@string/pref_system_logs" />
|
||||
|
||||
<PreferenceCategory
|
||||
app:title="@string/pref_category_log_messages"
|
||||
app:layout="@layout/pref_category"
|
||||
app:singleLineTitle="true">
|
||||
<Preference
|
||||
app:key="debug_logs_container"
|
||||
app:summary="--"
|
||||
app:layout="@layout/pref_plain_text">
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Loading…
Add table
Add a link
Reference in a new issue