Commit 6494e450 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Tablet view for device editing improvements - vertica

parent b09c948c
......@@ -15,7 +15,9 @@
android:layout_height="match_parent"
>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:app="http://schemas.android.com/apk/res-auto"
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="20dp"
......@@ -36,12 +38,26 @@
android:text='@{model.device != null ? model.device.name : model.getText("new_device")}'
/>
<TextView
android:id="@+id/your_device"
android:layout_marginTop="40dp"
android:layout_width="600dp"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/title"
app:layout_constraintBottom_toTopOf="@id/name"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
style='@{"section_title"}'
app:layout_constraintVertical_chainStyle="spread"
text='@{"your_device"}'
/>
<org.linhome.ui.widgets.LTextInput
android:id="@+id/name"
android:layout_width="600dp"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
app:layout_constraintTop_toBottomOf="@id/title"
android:layout_marginTop="20dp"
app:layout_constraintTop_toBottomOf="@id/your_device"
app:layout_constraintBottom_toTopOf="@id/address"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
......@@ -158,7 +174,7 @@
android:id="@+id/delete"
android:clickable="true"
android:focusable="true"
android:layout_width="600dp"
android:layout_width="320dp"
android:layout_height="40dp"
android:layout_marginTop="37dp"
android:layout_marginBottom="23dp"
......@@ -171,7 +187,7 @@
android:visibility='@{model.device != null ? View.VISIBLE : View.GONE}'
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
</ScrollView>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment