2019-09-17 08:17:05 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-08-15 16:26:02 +02:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-10-20 20:09:07 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/primaryBackgroundColor"
|
|
|
|
android:orientation="vertical">
|
2019-09-17 08:17:05 +02:00
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2020-03-28 13:44:45 +01:00
|
|
|
android:id="@+id/appbar"
|
2019-09-17 08:17:05 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-03-28 13:44:45 +01:00
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:theme="@style/Widget.AppCompat.SearchView"
|
|
|
|
app:elevation="@dimen/dimen0dp">
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2019-09-17 08:17:05 +02:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:background="?attr/primaryBackgroundColor">
|
2019-09-17 08:17:05 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/close"
|
2022-08-07 21:34:02 +02:00
|
|
|
android:layout_width="@dimen/dimen26dp"
|
|
|
|
android:layout_height="@dimen/dimen26dp"
|
|
|
|
android:layout_marginStart="@dimen/dimen16dp"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:layout_marginEnd="@dimen/dimen16dp"
|
2021-04-13 20:56:50 +02:00
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:clickable="true"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:contentDescription="@string/close"
|
|
|
|
android:focusable="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:src="@drawable/ic_close"/>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
|
|
|
<TextView
|
2020-08-18 16:37:10 +02:00
|
|
|
android:id="@+id/toolbarTitle"
|
2019-09-17 08:17:05 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:maxLines="1"
|
2019-09-17 08:17:05 +02:00
|
|
|
android:text="@string/pageTitleNewFile"
|
2020-03-04 20:37:28 +01:00
|
|
|
android:textColor="?attr/primaryTextColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textSize="@dimen/dimen20sp"/>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-03-05 16:23:15 +01:00
|
|
|
android:background="?attr/primaryBackgroundColor">
|
2019-09-17 08:17:05 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="@dimen/dimen16dp">
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2020-10-20 20:09:07 +02:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/newFileNameLayout"
|
2019-09-17 08:17:05 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-07 21:34:02 +02:00
|
|
|
android:layout_marginTop="@dimen/dimen8dp"
|
|
|
|
android:layout_marginBottom="@dimen/dimen8dp"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:hint="@string/newFileNameTintCopy"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
2020-10-20 20:09:07 +02:00
|
|
|
app:endIconMode="clear_text"
|
|
|
|
app:endIconTint="?attr/iconsColor"
|
|
|
|
app:helperText="@string/newFileNameHintMessage"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:helperTextEnabled="true"
|
2020-10-20 20:09:07 +02:00
|
|
|
app:helperTextTextColor="?attr/inputTextColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-10-20 20:09:07 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/newFileName"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:imeOptions="actionNext"
|
|
|
|
android:singleLine="true"
|
2020-10-20 20:09:07 +02:00
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textColorHighlight="?attr/hintColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textSize="@dimen/dimen16sp"/>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2020-10-20 20:09:07 +02:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2020-10-20 20:09:07 +02:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/newFileContentLayout"
|
2019-09-17 08:17:05 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-07 21:34:02 +02:00
|
|
|
android:layout_marginTop="@dimen/dimen8dp"
|
|
|
|
android:layout_marginBottom="@dimen/dimen8dp"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:hint="@string/newFileContentTintCopy"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
2020-10-20 20:09:07 +02:00
|
|
|
app:endIconMode="clear_text"
|
|
|
|
app:endIconTint="?attr/iconsColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-10-20 20:09:07 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/newFileContent"
|
|
|
|
android:layout_width="match_parent"
|
2022-08-14 08:44:04 +02:00
|
|
|
android:layout_height="@dimen/dimen180dp"
|
2021-02-01 19:13:48 +01:00
|
|
|
android:gravity="top|start"
|
2022-08-14 08:44:04 +02:00
|
|
|
android:inputType="textMultiLine"
|
2021-02-01 19:13:48 +01:00
|
|
|
android:scrollbars="vertical"
|
2020-10-20 20:09:07 +02:00
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textColorHighlight="?attr/hintColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textSize="@dimen/dimen14sp"/>
|
2020-10-20 20:09:07 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
2022-08-14 08:44:04 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/openCodeEditor"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:layout_gravity="end"
|
2022-08-14 08:44:04 +02:00
|
|
|
android:layout_marginTop="@dimen/dimen2dp"
|
|
|
|
android:layout_marginBottom="@dimen/dimen8dp"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:text="@string/openInCodeEditor"
|
2022-08-14 08:44:04 +02:00
|
|
|
android:textColor="?attr/primaryTextColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textSize="@dimen/dimen14sp"/>
|
2022-08-14 08:44:04 +02:00
|
|
|
|
2020-10-20 20:09:07 +02:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
2021-02-01 19:13:48 +01:00
|
|
|
android:id="@+id/newFileBranchesLayout"
|
2022-08-15 16:26:02 +02:00
|
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
2019-09-18 10:25:49 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-07 21:34:02 +02:00
|
|
|
android:layout_marginTop="@dimen/dimen8dp"
|
|
|
|
android:layout_marginBottom="@dimen/dimen8dp"
|
2021-02-01 19:13:48 +01:00
|
|
|
android:hint="@string/newFileBranches"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
2020-10-20 20:09:07 +02:00
|
|
|
app:endIconTint="?attr/iconsColor"
|
2021-02-01 19:13:48 +01:00
|
|
|
app:helperText="@string/newFileEmptyBranchMessage"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:helperTextEnabled="true"
|
2020-10-20 20:09:07 +02:00
|
|
|
app:helperTextTextColor="?attr/inputTextColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-10-20 20:09:07 +02:00
|
|
|
|
|
|
|
<AutoCompleteTextView
|
2021-02-01 19:13:48 +01:00
|
|
|
android:id="@+id/new_file_branches"
|
|
|
|
style="@style/Widget.MaterialComponents.AutoCompleteTextView.FilledBox"
|
2020-10-20 20:09:07 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:imeOptions="actionNext"
|
2021-02-01 19:13:48 +01:00
|
|
|
android:inputType="textCapSentences"
|
|
|
|
android:labelFor="@id/new_file_branches"
|
|
|
|
android:singleLine="true"
|
2020-10-20 20:09:07 +02:00
|
|
|
android:textColor="?attr/inputTextColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textSize="@dimen/dimen16sp"/>
|
2019-09-18 11:49:29 +02:00
|
|
|
|
2020-10-20 20:09:07 +02:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2020-10-20 20:09:07 +02:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/newFileCommitMessageLayout"
|
2019-09-17 08:17:05 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-07 21:34:02 +02:00
|
|
|
android:layout_marginTop="@dimen/dimen8dp"
|
|
|
|
android:layout_marginBottom="@dimen/dimen8dp"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:hint="@string/newFileMessageTintCopy"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
2020-10-20 20:09:07 +02:00
|
|
|
app:counterEnabled="true"
|
|
|
|
app:counterMaxLength="255"
|
|
|
|
app:counterTextColor="?attr/inputTextColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:endIconMode="clear_text"
|
|
|
|
app:endIconTint="?attr/iconsColor"
|
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-10-20 20:09:07 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/newFileCommitMessage"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-02-01 19:13:48 +01:00
|
|
|
android:inputType="textMultiLine|textCapSentences"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:singleLine="true"
|
2020-10-20 20:09:07 +02:00
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textColorHighlight="?attr/hintColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textSize="@dimen/dimen16sp"/>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2020-10-20 20:09:07 +02:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
2022-08-12 04:01:51 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2019-09-17 08:17:05 +02:00
|
|
|
android:id="@+id/newFileCreate"
|
2020-10-20 20:09:07 +02:00
|
|
|
android:layout_width="match_parent"
|
2022-08-12 04:01:51 +02:00
|
|
|
android:layout_height="@dimen/dimen54dp"
|
2022-08-07 21:34:02 +02:00
|
|
|
android:layout_marginTop="@dimen/dimen8dp"
|
2019-09-17 08:17:05 +02:00
|
|
|
android:text="@string/newFileButtonCopy"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColor="@color/btnTextColor"
|
|
|
|
android:textStyle="bold"/>
|
2019-09-17 08:17:05 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</LinearLayout>
|