2020-09-13 06:54:05 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2022-03-18 09:56:49 +01:00
|
|
|
android:background="@drawable/shape_round_corners"
|
2020-09-13 06:54:05 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2021-03-09 22:15:42 +01:00
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
2020-09-13 06:54:05 +02:00
|
|
|
android:id="@+id/progressBar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-03-09 22:15:42 +01:00
|
|
|
android:indeterminate="true"
|
|
|
|
style="@style/Widget.MaterialComponents.LinearProgressIndicator"
|
2020-09-13 06:54:05 +02:00
|
|
|
app:indicatorColor="?attr/progressIndicatorColor" />
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:id="@+id/mainView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/repoNameLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:hintTextColor="?attr/hintColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:hint="@string/newRepoTintCopy">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/repoName"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textColorHighlight="?attr/hintColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/repoWebsiteLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:hintTextColor="?attr/hintColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
|
|
|
android:layout_marginBottom="8dp"
|
2020-09-16 20:03:52 +02:00
|
|
|
android:layout_marginTop="8dp"
|
2020-09-13 06:54:05 +02:00
|
|
|
android:hint="@string/websiteText">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/repoWebsite"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textColorHighlight="?attr/hintColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/repoDescriptionLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:boxBackgroundColor="?attr/inputBackgroundColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
app:hintTextColor="?attr/hintColor"
|
|
|
|
app:boxStrokeErrorColor="@color/darkRed"
|
2020-09-16 20:03:52 +02:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
2020-09-13 06:54:05 +02:00
|
|
|
android:hint="@string/newRepoDescTintCopy">
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/repoDescription"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?attr/inputTextColor"
|
|
|
|
android:textColorHighlight="?attr/hintColor"
|
|
|
|
android:textColorHint="?attr/hintColor"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoPrivate"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/newRepoPrivateCopy" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoAsTemplate"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesTemplate" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnableIssues"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnableIssues" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnableWiki"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnableWiki" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnablePr"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnablePr" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnableTimer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnableTimeTracker" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnableMerge"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnableMergeCommits" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnableRebase"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnableRebase" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnableSquash"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnableSquash" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/repoEnableForceMerge"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:checked="true"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:text="@string/repoPropertiesEnableForceMerge" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:id="@+id/divider"
|
|
|
|
android:background="?attr/dividerColor" />
|
|
|
|
|
2021-03-09 22:15:42 +01:00
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
2020-09-13 06:54:05 +02:00
|
|
|
android:id="@+id/processingRequest"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
2021-03-09 22:15:42 +01:00
|
|
|
android:indeterminate="true"
|
|
|
|
style="@style/Widget.MaterialComponents.LinearProgressIndicator"
|
2020-09-13 06:54:05 +02:00
|
|
|
app:indicatorColor="?attr/progressIndicatorColor" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
2020-09-16 20:03:52 +02:00
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingBottom="8dp"
|
2020-09-13 06:54:05 +02:00
|
|
|
android:orientation="horizontal" >
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/cancel"
|
|
|
|
android:layout_width="wrap_content"
|
2020-09-16 20:03:52 +02:00
|
|
|
android:layout_height="60dp"
|
2020-09-13 06:54:05 +02:00
|
|
|
style="?android:attr/button"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:text="@string/cancelButton"
|
|
|
|
android:textColor="@color/colorWhite"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/save"
|
|
|
|
android:layout_width="wrap_content"
|
2020-09-16 20:03:52 +02:00
|
|
|
android:layout_height="60dp"
|
2020-09-13 06:54:05 +02:00
|
|
|
style="?android:attr/button"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:text="@string/saveButton"
|
|
|
|
android:textColor="@color/colorWhite"
|
|
|
|
android:textSize="16sp"
|
|
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
|
|
</LinearLayout>
|