mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 11:09:49 +08:00
76 lines
3.0 KiB
XML
76 lines
3.0 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v4.widget.DrawerLayout
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_above="@+id/viewpager"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.termux.view.TerminalView
|
|
android:id="@+id/terminal_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:focusableInTouchMode="true"
|
|
android:scrollbarThumbVertical="@drawable/terminal_scroll_shape"
|
|
android:scrollbars="vertical" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/left_drawer"
|
|
android:layout_width="240dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:background="@android:color/white"
|
|
android:choiceMode="singleChoice"
|
|
android:divider="@android:color/transparent"
|
|
android:dividerHeight="0dp"
|
|
android:descendantFocusability="blocksDescendants"
|
|
android:orientation="vertical">
|
|
|
|
<ListView
|
|
android:id="@+id/left_drawer_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_gravity="top"
|
|
android:layout_weight="1"
|
|
android:choiceMode="singleChoice"
|
|
android:longClickable="true" />
|
|
|
|
<LinearLayout
|
|
style="?android:attr/buttonBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/toggle_keyboard_button"
|
|
style="?android:attr/buttonBarButtonStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/toggle_soft_keyboard" />
|
|
|
|
<Button
|
|
android:id="@+id/new_session_button"
|
|
style="?android:attr/buttonBarButtonStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/new_session" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|
|
•
|
|
<android.support.v4.view.ViewPager
|
|
android:id="@+id/viewpager"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:background="@android:drawable/screen_background_dark_transparent"
|
|
android:layout_alignParentBottom="true" />
|
|
</RelativeLayout>
|