Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
termux
GitHub Repository: termux/termux-app
Path: blob/master/app/src/main/res/layout/activity_termux.xml
1637 views
1
<com.termux.app.terminal.TermuxActivityRootView xmlns:android="http://schemas.android.com/apk/res/android"
2
xmlns:app="http://schemas.android.com/apk/res-auto"
3
xmlns:tools="http://schemas.android.com/tools"
4
android:id="@+id/activity_termux_root_view"
5
android:layout_width="match_parent"
6
android:layout_height="match_parent"
7
android:orientation="vertical"
8
android:fitsSystemWindows="true">
9
10
<RelativeLayout
11
android:id="@+id/activity_termux_root_relative_layout"
12
android:layout_width="match_parent"
13
android:layout_height="0dp"
14
android:layout_weight="1"
15
android:layout_marginHorizontal="3dp"
16
android:layout_marginVertical="0dp"
17
android:orientation="vertical">
18
19
<androidx.drawerlayout.widget.DrawerLayout
20
android:id="@+id/drawer_layout"
21
android:layout_width="match_parent"
22
android:layout_alignParentTop="true"
23
android:layout_above="@+id/terminal_toolbar_view_pager"
24
android:layout_height="match_parent">
25
26
<com.termux.view.TerminalView
27
android:id="@+id/terminal_view"
28
android:layout_width="match_parent"
29
android:layout_height="match_parent"
30
android:defaultFocusHighlightEnabled="false"
31
android:focusableInTouchMode="true"
32
android:scrollbarThumbVertical="@drawable/terminal_scroll_shape"
33
android:scrollbars="vertical"
34
tools:ignore="UnusedAttribute" />
35
36
<LinearLayout
37
android:id="@+id/left_drawer"
38
android:layout_width="240dp"
39
android:layout_height="match_parent"
40
android:layout_gravity="start"
41
android:choiceMode="singleChoice"
42
android:divider="@android:color/transparent"
43
android:dividerHeight="0dp"
44
android:descendantFocusability="blocksDescendants"
45
android:orientation="vertical"
46
android:background="?attr/termuxActivityDrawerBackground">
47
48
<LinearLayout
49
android:layout_width="match_parent"
50
android:layout_height="wrap_content"
51
android:orientation="horizontal">
52
<ImageButton
53
android:id="@+id/settings_button"
54
android:layout_width="40dp"
55
android:layout_height="40dp"
56
android:src="@drawable/ic_settings"
57
android:background="@null"
58
android:contentDescription="@string/action_open_settings"
59
app:tint="?attr/termuxActivityDrawerImageTint" />
60
</LinearLayout>
61
62
<ListView
63
android:id="@+id/terminal_sessions_list"
64
android:layout_width="match_parent"
65
android:layout_height="0dp"
66
android:layout_gravity="top"
67
android:layout_weight="1"
68
android:choiceMode="singleChoice"
69
android:longClickable="true" />
70
71
<LinearLayout
72
style="?android:attr/buttonBarStyle"
73
android:layout_width="match_parent"
74
android:layout_height="wrap_content"
75
android:orientation="horizontal">
76
77
<com.google.android.material.button.MaterialButton
78
android:id="@+id/toggle_keyboard_button"
79
style="?android:attr/buttonBarButtonStyle"
80
android:layout_width="match_parent"
81
android:layout_height="wrap_content"
82
android:layout_weight="1"
83
android:text="@string/action_toggle_soft_keyboard" />
84
85
<com.google.android.material.button.MaterialButton
86
android:id="@+id/new_session_button"
87
style="?android:attr/buttonBarButtonStyle"
88
android:layout_width="match_parent"
89
android:layout_height="wrap_content"
90
android:layout_weight="1"
91
android:text="@string/action_new_session" />
92
</LinearLayout>
93
</LinearLayout>
94
95
</androidx.drawerlayout.widget.DrawerLayout>
96
97
<androidx.viewpager.widget.ViewPager
98
android:id="@+id/terminal_toolbar_view_pager"
99
android:visibility="gone"
100
android:layout_width="match_parent"
101
android:layout_height="37.5dp"
102
android:background="@color/black"
103
android:layout_alignParentBottom="true" />
104
105
</RelativeLayout>
106
107
<View
108
android:id="@+id/activity_termux_bottom_space_view"
109
android:layout_width="match_parent"
110
android:layout_height="1dp"
111
android:background="@android:color/transparent" />
112
113
</com.termux.app.terminal.TermuxActivityRootView>
114
115