[mobile] improve debug view
- ListView should be significantly faster thanks to the ViewHolder pattern - ability to remove/copy items be long-pressing them
This commit is contained in:
@ -1,51 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<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:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="HardcodedText">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/log_type"
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:src="@drawable/ic_action_about"
|
||||
tools:ignore="ContentDescription"/>
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/log_tag"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/log_type"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@+id/log_type"
|
||||
android:gravity="center_vertical|left"
|
||||
android:text="iitcm"
|
||||
android:textAppearance="?android:attr/textAppearance"
|
||||
android:typeface="monospace"/>
|
||||
<ImageView
|
||||
android:id="@+id/log_type"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_action_about"
|
||||
tools:ignore="ContentDescription"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/log_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/log_type"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@+id/log_tag"
|
||||
android:gravity="center_vertical|right"
|
||||
android:text="13:37:42.000"
|
||||
android:textAppearance="?android:attr/textAppearance"/>
|
||||
<TextView
|
||||
android:id="@+id/log_tag"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical|left"
|
||||
android:text="iitcm"
|
||||
android:textAppearance="?android:attr/textAppearance"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/log_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:gravity="center_vertical|right"
|
||||
android:text="13:37:42.000"
|
||||
android:textAppearance="?android:attr/textAppearance"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/log_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_below="@+id/log_type"
|
||||
android:text="iitcm://script/total-conversion-build.user.js:1337: Some random message"
|
||||
android:typeface="monospace"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
13
mobile/res/menu/debug.xml
Normal file
13
mobile/res/menu/debug.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_copy"
|
||||
android:icon="@drawable/ic_action_copy"
|
||||
android:title="@string/menu_copy"/>
|
||||
<item
|
||||
android:id="@+id/menu_delete"
|
||||
android:icon="@drawable/ic_action_discard"
|
||||
android:title="@string/menu_delete"/>
|
||||
|
||||
</menu>
|
@ -213,6 +213,8 @@
|
||||
<string name="menu_debug">Debug</string>
|
||||
<string name="menu_send_screenshot">Send screenshot</string>
|
||||
<string name="menu_plugins_add">Add external plugins</string>
|
||||
<string name="menu_copy">Copy</string>
|
||||
<string name="menu_delete">Delete</string>
|
||||
<string name="choose_account_to_login">Choose account to login</string>
|
||||
<string name="login_failed">Login failed.</string>
|
||||
<string name="search_hint">Search Locations</string>
|
||||
|
Reference in New Issue
Block a user