Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefan-niedermann <info@niedermann.it>2019-10-16 18:23:29 +0300
committerstefan-niedermann <info@niedermann.it>2019-10-16 18:23:29 +0300
commit16eed9e2cc0a1915195b642a74abca44f6efac79 (patch)
treea70d58bd08fca8b65656618d44c5663f3b1edc01 /app/src/main/res
parent4b73a47515d0ddf1ac925127eedad60c823d7eb6 (diff)
Build logic for binding title to the EditText
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_edit.xml13
-rw-r--r--app/src/main/res/layout/fragment_card_edit_tab_details.xml10
2 files changed, 10 insertions, 13 deletions
diff --git a/app/src/main/res/layout/activity_edit.xml b/app/src/main/res/layout/activity_edit.xml
index f1faf15cd..829ba5c3a 100644
--- a/app/src/main/res/layout/activity_edit.xml
+++ b/app/src/main/res/layout/activity_edit.xml
@@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical">
<com.google.android.material.appbar.AppBarLayout
@@ -17,18 +18,24 @@
app:titleTextColor="@android:color/white">
<com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/titleTextInputLayout"
+ style="@style/AppTheme.EditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:theme="@style/AppTheme.EditText">
+ app:theme="@style/AppTheme.EditText"
+ tools:hint="Edit">
<EditText
+ android:id="@+id/title"
+ style="@style/AppTheme.EditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
- android:hint="@string/simple_add"
android:importantForAutofill="no"
- android:inputType="text" />
+ android:inputType="text"
+ app:theme="@style/AppTheme.EditText"
+ tools:text="Fancy card title"/>
</com.google.android.material.textfield.TextInputLayout>
diff --git a/app/src/main/res/layout/fragment_card_edit_tab_details.xml b/app/src/main/res/layout/fragment_card_edit_tab_details.xml
index bcce57940..f46cc4771 100644
--- a/app/src/main/res/layout/fragment_card_edit_tab_details.xml
+++ b/app/src/main/res/layout/fragment_card_edit_tab_details.xml
@@ -11,16 +11,6 @@
android:orientation="vertical"
android:padding="@dimen/standard_padding">
- <EditText
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/label_title"
- android:importantForAutofill="no"
- android:textSize="20sp"
- android:layout_marginTop="@dimen/standard_margin"
- android:inputType="textPersonName" />
-
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"