GenWord/app/src/main/res/layout/content_scrolling.xml

81 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".MainActivity"
tools:showIn="@layout/activity_scrolling">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/categories"
android:hint="@string/categories"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:layout_width="match_parent"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/categories_input"
android:text="@string/categories_value"
android:layout_height="wrap_content"
android:layout_width="match_parent"
/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/pattern"
android:hint="@string/pattern"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:layout_width="match_parent"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/pattern_input"
android:text="@string/pattern_value"
android:layout_height="wrap_content"
android:layout_width="match_parent"
/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/n_words"
android:hint="@string/n_words"
android:inputType="number"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:layout_width="match_parent"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/n_words_input"
android:layout_height="wrap_content"
android:layout_width="match_parent"
/>
</com.google.android.material.textfield.TextInputLayout>
<Button
android:id="@+id/generate"
android:text="@string/generate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="generate"
/>
<TextView
android:id="@+id/output"
android:text="@string/large_text"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:layout_width="match_parent"
/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>