Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
97 lines (83 sloc) 4.05 KB
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:padding="@dimen/padding_small"
android:orientation="vertical"
android:layout_height="match_parent">
<TextView
android:id="@+id/categoryTitle"
app:layout_constraintTop_toBottomOf="@id/mainInputs"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:gravity="center"
android:text="@string/category"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<RadioGroup
android:id="@+id/radioGroup"
app:layout_constraintTop_toBottomOf="@id/categoryTitle"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content" tools:layout_editor_absoluteX="16dp">
<androidx.appcompat.widget.AppCompatRadioButton
android:checked="true"
android:layout_weight="1"
android:id="@+id/addCategoryRadioButton"
android:text="@string/add_category"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<androidx.appcompat.widget.AppCompatRadioButton
android:layout_weight="1"
android:text="@string/choose_existing_category"
android:id="@+id/chooseExistingCategoryRadioButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RadioGroup>
<FrameLayout
app:layout_constraintTop_toBottomOf="@id/radioGroup"
android:layout_marginTop="4dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/frameLayout" tools:layout_editor_absoluteX="16dp">
<androidx.appcompat.widget.AppCompatEditText
android:layout_marginTop="@dimen/padding_small"
android:maxLength="50"
android:id="@+id/addCategoryEditText"
android:hint="@string/add_category_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<androidx.appcompat.widget.AppCompatSpinner
android:id="@+id/chooseCategorySpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</FrameLayout>
<LinearLayout
android:orientation="vertical"
android:id="@+id/mainInputs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/sourceValueEditText"
android:maxLength="100"
android:hint="@string/source_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<androidx.appcompat.widget.AppCompatEditText
android:maxLength="100"
android:id="@+id/translationValueEditText"
android:hint="@string/translation_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
<androidx.appcompat.widget.AppCompatButton
app:layout_constraintBottom_toBottomOf="parent"
style="@style/Widget.AppCompat.Button"
android:backgroundTint="@color/colorPrimary"
android:text="@string/save"
android:textColor="@android:color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/saveButton"/>
</androidx.constraintlayout.widget.ConstraintLayout>
You can’t perform that action at this time.