improved debugging interface
BIN
mobile/res/drawable-hdpi/ic_action_error_red.png
Normal file
After Width: | Height: | Size: 300 B |
BIN
mobile/res/drawable-hdpi/ic_action_warning_yellow.png
Normal file
After Width: | Height: | Size: 471 B |
BIN
mobile/res/drawable-mdpi/ic_action_error_red.png
Normal file
After Width: | Height: | Size: 259 B |
BIN
mobile/res/drawable-mdpi/ic_action_warning_yellow.png
Normal file
After Width: | Height: | Size: 374 B |
BIN
mobile/res/drawable-xhdpi/ic_action_error_red.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
mobile/res/drawable-xhdpi/ic_action_warning_yellow.png
Normal file
After Width: | Height: | Size: 632 B |
BIN
mobile/res/drawable-xxhdpi/ic_action_error_red.png
Normal file
After Width: | Height: | Size: 432 B |
BIN
mobile/res/drawable-xxhdpi/ic_action_warning_yellow.png
Normal file
After Width: | Height: | Size: 840 B |
@ -4,20 +4,58 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.cradle.iitc_mobile.IITC_WebView
|
||||
android:id="@+id/iitc_webview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageLoading"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/darker_gray"
|
||||
android:paddingBottom="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:src="@drawable/iitc"
|
||||
tools:ignore="ContentDescription"/>
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.cradle.iitc_mobile.IITC_WebView
|
||||
android:id="@+id/iitc_webview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageLoading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/darker_gray"
|
||||
android:paddingBottom="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:src="@drawable/iitc"
|
||||
tools:ignore="ContentDescription"/>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/lvDebug"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/viewDebug"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btnToggleMapVisibility"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@android:color/transparent"
|
||||
android:contentDescription="@string/toggle_map"
|
||||
android:onClick="onToggleMapVisibility"
|
||||
android:src="@drawable/ic_action_map"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editCommand"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:imeOptions="actionGo"
|
||||
android:inputType="textNoSuggestions"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- The navigation drawer -->
|
||||
|
||||
|
51
mobile/res/layout/view_log_msg.xml
Normal file
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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"
|
||||
tools:ignore="HardcodedText">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/log_type"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:src="@drawable/ic_action_about"
|
||||
tools:ignore="ContentDescription"/>
|
||||
|
||||
<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"/>
|
||||
|
||||
<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_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>
|
@ -1,48 +1,52 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:id="@+id/menu_search"
|
||||
android:title="@string/menu_search"
|
||||
android:icon="@drawable/ic_action_search"
|
||||
android:orderInCategory="10"
|
||||
android:showAsAction="ifRoom|collapseActionView"
|
||||
android:actionViewClass="android.widget.SearchView" />
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_search"
|
||||
android:actionViewClass="android.widget.SearchView"
|
||||
android:icon="@drawable/ic_action_search"
|
||||
android:orderInCategory="10"
|
||||
android:showAsAction="ifRoom|collapseActionView"
|
||||
android:title="@string/menu_search"/>
|
||||
<item
|
||||
android:id="@+id/locate"
|
||||
android:icon="@drawable/ic_action_location_found"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/locate">
|
||||
</item>
|
||||
android:title="@string/locate"/>
|
||||
<item
|
||||
android:id="@+id/layer_chooser"
|
||||
android:icon="@drawable/ic_action_add_to_queue"
|
||||
android:orderInCategory="105"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/layer_chooser">
|
||||
</item>
|
||||
android:title="@string/layer_chooser"/>
|
||||
<item
|
||||
android:id="@+id/toggle_fullscreen"
|
||||
android:icon="@drawable/ic_action_full_screen"
|
||||
android:orderInCategory="110"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/toggle_fullscreen">
|
||||
</item>
|
||||
android:title="@string/toggle_fullscreen"/>
|
||||
<item
|
||||
android:id="@+id/reload_button"
|
||||
android:icon="@drawable/ic_action_refresh"
|
||||
android:orderInCategory="120"
|
||||
android:showAsAction="ifRoom"
|
||||
android:title="@string/reload">
|
||||
</item>
|
||||
android:title="@string/reload"/>
|
||||
<item
|
||||
android:id="@+id/menu_clear_cookies"
|
||||
android:orderInCategory="130"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/menu_clear_cookies">
|
||||
</item>
|
||||
android:title="@string/menu_clear_cookies"/>
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="200"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/action_settings">
|
||||
</item>
|
||||
</menu>
|
||||
android:title="@string/action_settings"/>
|
||||
<item
|
||||
android:id="@+id/menu_debug"
|
||||
android:checkable="true"
|
||||
android:icon="@drawable/ic_action_error"
|
||||
android:orderInCategory="190"
|
||||
android:showAsAction="never"
|
||||
android:title="@string/menu_debug"/>
|
||||
|
||||
</menu>
|
@ -2,6 +2,7 @@
|
||||
<resources>
|
||||
|
||||
<string name="app_name">IITC Mobile</string>
|
||||
<string name="toggle_map">Toggle map visibility</string>
|
||||
<string name="activity_settings">IITC Mobile Settings</string>
|
||||
<string name="activity_plugins">IITC Plugins</string>
|
||||
<string name="activity_share">Share using…</string>
|
||||
@ -140,6 +141,7 @@
|
||||
|
||||
<string name="menu_clear_cookies">Clear Cookies</string>
|
||||
<string name="menu_search">Search</string>
|
||||
<string name="menu_debug">Debug</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>
|
||||
|