106 lines
4.0 KiB
XML
106 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<com.cradle.iitc_mobile.IITC_WebView
|
|
android:id="@+id/iitc_webview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="fill_parent"
|
|
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="@dimen/button_size"
|
|
android:layout_height="@dimen/button_size"
|
|
android:layout_gravity="bottom"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/toggle_map"
|
|
android:onClick="onToggleMapVisibility"
|
|
android:src="@drawable/ic_action_map"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnClearLog"
|
|
android:layout_width="@dimen/button_size"
|
|
android:layout_height="@dimen/button_size"
|
|
android:layout_gravity="bottom"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/clear_log"
|
|
android:onClick="onClearLog"
|
|
android:src="@drawable/ic_action_discard"/>
|
|
|
|
<EditText
|
|
android:id="@+id/editCommand"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:imeActionLabel="@string/debug_run"
|
|
android:imeOptions="actionGo"
|
|
android:inputType="textMultiLine|textNoSuggestions"
|
|
android:maxLines="4"/>
|
|
|
|
<ImageButton
|
|
android:layout_width="@dimen/button_size"
|
|
android:layout_height="@dimen/button_size"
|
|
android:layout_gravity="bottom"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/debug_run"
|
|
android:onClick="onBtnRunCodeClick"
|
|
android:src="@android:drawable/ic_menu_send"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!-- The navigation drawer -->
|
|
|
|
<ListView
|
|
android:id="@+id/left_drawer"
|
|
android:layout_width="180dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:background="@color/drawer_background"
|
|
android:choiceMode="singleChoice"
|
|
android:divider="@android:color/transparent"
|
|
android:dividerHeight="0dp"/>
|
|
|
|
<!-- The right drawer -->
|
|
|
|
<ListView
|
|
android:id="@+id/right_drawer"
|
|
android:layout_width="260dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:background="@color/drawer_background"
|
|
android:divider="@android:color/transparent"
|
|
android:dividerHeight="0dp"/>
|
|
|
|
</android.support.v4.widget.DrawerLayout> |