2020-09-24 18:51:20 +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-09-24 18:51:20 +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">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:theme="@style/Widget.AppCompat.SearchView"
|
|
|
|
app:elevation="@dimen/dimen0dp">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/primaryBackgroundColor">
|
|
|
|
|
|
|
|
<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"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/toolbarTitle"
|
|
|
|
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"
|
2020-09-24 18:51:20 +02:00
|
|
|
android:text="@string/pageTitleNewPullRequest"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textSize="@dimen/dimen20sp"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
2022-08-07 21:34:02 +02:00
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
|
|
android:id="@+id/progressBar"
|
2022-08-15 16:26:02 +02:00
|
|
|
style="@style/Widget.Material3.LinearProgressIndicator"
|
2022-08-07 21:34:02 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:indicatorColor="?attr/progressIndicatorColor"/>
|
2022-08-07 21:34:02 +02:00
|
|
|
|
2020-09-24 18:51:20 +02:00
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/primaryBackgroundColor">
|
|
|
|
|
|
|
|
<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">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/prTitleLayout"
|
|
|
|
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/newIssueTitle"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
2020-09-24 18:51:20 +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-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/prTitle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:imeOptions="actionNext"
|
|
|
|
android:inputType="textCapSentences"
|
|
|
|
android:singleLine="true"
|
2020-09-24 18:51:20 +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"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/prBodyLayout"
|
|
|
|
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/newIssueDescriptionTitle"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
2020-09-24 18:51:20 +02:00
|
|
|
app:endIconMode="clear_text"
|
|
|
|
app:endIconTint="?attr/iconsColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/prBody"
|
|
|
|
android:layout_width="match_parent"
|
2023-01-19 12:55:19 +01:00
|
|
|
android:layout_height="@dimen/dimen180dp"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:gravity="top|start"
|
|
|
|
android:inputType="textCapSentences|textMultiLine"
|
|
|
|
android:scrollbars="vertical"
|
2020-09-24 18:51:20 +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"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
2023-01-19 12:55:19 +01:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/markdown_preview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minHeight="@dimen/dimen186dp"
|
|
|
|
android:layout_marginTop="@dimen/dimen8dp"
|
|
|
|
android:layout_marginBottom="@dimen/dimen8dp"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:textSize="@dimen/dimen14sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2020-09-24 18:51:20 +02:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/mergeIntoBranchSpinnerLayout"
|
2022-08-15 16:26:02 +02:00
|
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
2020-09-24 18:51:20 +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"
|
2020-09-24 18:51:20 +02:00
|
|
|
android:hint="@string/mergeIntoBranch"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
2020-09-24 18:51:20 +02:00
|
|
|
app:endIconTint="?attr/iconsColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<AutoCompleteTextView
|
|
|
|
android:id="@+id/mergeIntoBranchSpinner"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="none"
|
|
|
|
android:labelFor="@+id/mergeIntoBranchSpinner"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textSize="@dimen/dimen16sp"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/pullFromBranchSpinnerLayout"
|
2022-08-15 16:26:02 +02:00
|
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
2020-09-24 18:51:20 +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"
|
2020-09-24 18:51:20 +02:00
|
|
|
android:hint="@string/pullFromBranch"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
2020-09-24 18:51:20 +02:00
|
|
|
app:endIconTint="?attr/iconsColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<AutoCompleteTextView
|
|
|
|
android:id="@+id/pullFromBranchSpinner"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="none"
|
|
|
|
android:labelFor="@+id/pullFromBranchSpinner"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textSize="@dimen/dimen16sp"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/milestonesSpinnerLayout"
|
2022-08-15 16:26:02 +02:00
|
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
2020-09-24 18:51:20 +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"
|
2020-09-24 18:51:20 +02:00
|
|
|
android:hint="@string/newIssueMilestoneTitle"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
2020-09-24 18:51:20 +02:00
|
|
|
app:endIconTint="?attr/iconsColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<AutoCompleteTextView
|
|
|
|
android:id="@+id/milestonesSpinner"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="none"
|
|
|
|
android:labelFor="@+id/milestonesSpinner"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textSize="@dimen/dimen16sp"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/prLabelsLayout"
|
|
|
|
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/newIssueLabelsTitle"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/prLabels"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:focusable="false"
|
2020-09-24 18:51:20 +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"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/prDueDateLayout"
|
|
|
|
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/newIssueDueDateTitle"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
2020-09-24 18:51:20 +02:00
|
|
|
app:endIconMode="clear_text"
|
|
|
|
app:endIconTint="?attr/iconsColor"
|
2022-08-15 16:26:02 +02:00
|
|
|
app:hintTextColor="?attr/hintColor">
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/prDueDate"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:focusable="false"
|
|
|
|
android:maxLines="1"
|
2020-09-24 18:51:20 +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"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
2022-08-12 04:01:51 +02:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2020-09-24 18:51:20 +02:00
|
|
|
android:id="@+id/createPr"
|
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"
|
2020-09-24 18:51:20 +02:00
|
|
|
android:text="@string/newCreateButtonCopy"
|
2022-08-15 16:26:02 +02:00
|
|
|
android:textColor="@color/btnTextColor"
|
|
|
|
android:textStyle="bold"/>
|
2020-09-24 18:51:20 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</LinearLayout>
|