Changed layouts to include fields definitions for better UX
This commit is contained in:
parent
f6aa9ece5c
commit
0e3001c359
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -13,6 +13,12 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/screen_text"
|
||||
android:textColor="@color/black"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editMainText"
|
||||
android:inputType="text"
|
||||
|
@ -28,14 +34,39 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/font_size"
|
||||
android:textColor="@color/black"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editFontSizeFactor"
|
||||
android:inputType="numberDecimal"
|
||||
android:hint="@string/font_size_factor"
|
||||
android:autofillHints="@string/font_size_factor"
|
||||
android:hint="@string/font_size"
|
||||
android:autofillHints="@string/font_size"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
android:text="@string/anim_velocity"
|
||||
android:textColor="@color/black"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editVelocity"
|
||||
|
@ -44,7 +75,9 @@
|
|||
android:autofillHints="@string/anim_velocity"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="screen_text">Texto de pantalla</string>
|
||||
<string name="font_size">Tamaño de fuente</string>
|
||||
<string name="anim_velocity">Velocidad animación</string>
|
||||
<string name="color_text">Color de texto</string>
|
||||
<string name="color_back">Color de fondo</string>
|
||||
</resources>
|
|
@ -1,8 +1,8 @@
|
|||
<resources>
|
||||
<string name="app_name">TextBanner</string>
|
||||
<string name="screen_text">Screen text</string>
|
||||
<string name="font_size_factor">Font size factor</string>
|
||||
<string name="anim_velocity">Animation velocity</string>
|
||||
<string name="app_name" translatable="false">TextBanner</string>
|
||||
<string name="screen_text">Main screen text</string>
|
||||
<string name="font_size">Font size (em)</string>
|
||||
<string name="anim_velocity">Animation speed</string>
|
||||
<string name="color_text">Text color</string>
|
||||
<string name="color_back">Background color</string>
|
||||
</resources>
|
Loading…
Reference in New Issue