Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
termux
GitHub Repository: termux/termux-app
Path: blob/master/termux-shared/src/main/res/layout/activity_text_io.xml
1781 views
1
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
xmlns:tools="http://schemas.android.com/tools"
3
android:layout_width="match_parent"
4
android:layout_height="match_parent"
5
android:orientation="vertical">
6
7
<include
8
layout="@layout/partial_primary_toolbar"
9
android:id="@+id/partial_primary_toolbar"/>
10
11
<TextView
12
android:id="@+id/text_io_label"
13
android:layout_width="match_parent"
14
android:layout_height="wrap_content"
15
android:padding="@dimen/content_padding"
16
android:gravity="start|center_vertical"
17
android:textSize="14sp"
18
android:textStyle="bold"
19
android:textColor="@android:color/black"
20
android:visibility="invisible" />
21
22
<View
23
android:id="@+id/text_io_label_separator"
24
android:layout_width="match_parent"
25
android:layout_height="1dp"
26
android:layout_marginHorizontal="@dimen/content_padding"
27
android:background="@android:color/darker_gray"
28
android:visibility="invisible" />
29
30
31
32
<androidx.constraintlayout.widget.ConstraintLayout
33
xmlns:app="http://schemas.android.com/apk/res-auto"
34
android:layout_width="match_parent"
35
android:layout_height="match_parent">
36
37
<!-- id must be assigned to scroll views to restore scroll position automatically on activity resume -->
38
<androidx.core.widget.NestedScrollView
39
android:id="@+id/text_io_nested_scroll_view"
40
android:layout_width="0dp"
41
android:layout_height="0dp"
42
android:padding="@dimen/content_padding_half"
43
android:fillViewport="true"
44
app:layout_constraintBottom_toTopOf="@+id/text_io_text_character_usage"
45
app:layout_constraintEnd_toEndOf="parent"
46
app:layout_constraintStart_toStartOf="parent"
47
app:layout_constraintTop_toTopOf="parent">
48
49
<LinearLayout
50
android:layout_width="match_parent"
51
android:layout_height="match_parent"
52
android:orientation="vertical">
53
54
<HorizontalScrollView
55
android:id="@+id/text_io_horizontal_scroll_view"
56
android:layout_width="match_parent"
57
android:layout_height="match_parent"
58
android:fillViewport="true">
59
60
<LinearLayout
61
android:id="@+id/text_io_text_linear_layout"
62
android:layout_width="wrap_content"
63
android:layout_height="match_parent"
64
android:orientation="vertical">
65
66
<EditText
67
android:id="@+id/text_io_text"
68
android:layout_width="match_parent"
69
android:layout_height="match_parent"
70
android:gravity="start|top"
71
android:inputType="textMultiLine"
72
android:importantForAutofill="no"
73
tools:ignore="LabelFor" />
74
</LinearLayout>
75
76
</HorizontalScrollView>
77
</LinearLayout>
78
</androidx.core.widget.NestedScrollView>
79
80
<TextView
81
android:id="@+id/text_io_text_character_usage"
82
android:layout_width="match_parent"
83
android:layout_height="wrap_content"
84
android:paddingEnd="@dimen/content_padding_half"
85
app:layout_constraintBottom_toBottomOf="parent"
86
android:gravity="end|center_vertical"
87
android:textSize="12sp"
88
android:textColor="@android:color/black"
89
android:visibility="invisible" />
90
91
</androidx.constraintlayout.widget.ConstraintLayout>
92
93
</LinearLayout>
94
95