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:
Diffstat (limited to 'app/src/main/res/layout/activity_edit.xml')
-rw-r--r--app/src/main/res/layout/activity_edit.xml82
1 files changed, 46 insertions, 36 deletions
diff --git a/app/src/main/res/layout/activity_edit.xml b/app/src/main/res/layout/activity_edit.xml
index 087f77915..ba09053d5 100644
--- a/app/src/main/res/layout/activity_edit.xml
+++ b/app/src/main/res/layout/activity_edit.xml
@@ -1,40 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout 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"
- android:orientation="vertical">
-
- <EditText
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/label_title"
- android:importantForAutofill="no"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:inputType="textPersonName" />
-
- <TextView
- android:id="@+id/timestamps"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:layout_marginLeft="19dp"
- android:layout_marginRight="19dp"
- tools:text="Modified: 12 days ago Created: 12 days ago"/>
-
- <com.google.android.material.tabs.TabLayout
- android:id="@+id/tab_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:tabGravity="center"
- app:tabMode="fixed" />
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
- <androidx.viewpager.widget.ViewPager
- android:id="@+id/pager"
+ <data>
+ <variable
+ name="editmodel"
+ type="it.niedermann.nextcloud.deck.model.viewmodel.FullCardViewModel" />
+ </data>
+
+ <LinearLayout xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
- android:layout_height="fill_parent"/>
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+
+ <EditText
+ android:id="@+id/title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="16dp"
+ android:layout_marginRight="16dp"
+ android:text="@{editmodel.fullCard.card.title}"
+ android:hint="@string/label_title"
+ android:importantForAutofill="no"
+ android:inputType="textPersonName" />
+
+ <TextView
+ android:id="@+id/timestamps"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="19dp"
+ android:layout_marginRight="19dp"
+ android:layout_marginBottom="16dp"
+ tools:text="Modified: 12 days ago Created: 12 days ago" />
+
+ <com.google.android.material.tabs.TabLayout
+ android:id="@+id/tab_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:tabGravity="center"
+ app:tabMode="fixed" />
+
+ <androidx.viewpager.widget.ViewPager
+ android:id="@+id/pager"
+ android:layout_width="match_parent"
+ android:layout_height="fill_parent" />
-</LinearLayout> \ No newline at end of file
+ </LinearLayout>
+</layout> \ No newline at end of file