Skip to content

Commit 8f8617b

Browse files
committed
form template was worked onn
1 parent 73b6c75 commit 8f8617b

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

app/src/main/res/layout/activity_main.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
android:layout_height="wrap_content"
1212
android:layout_marginStart="16dp"
1313
android:layout_marginLeft="16dp"
14-
android:layout_marginTop="8dp"
14+
android:layout_marginTop="0dp"
1515
android:layout_marginEnd="16dp"
16-
android:theme="@style/ThemeOverLayForm"
1716
android:layout_marginRight="16dp"
17+
android:theme="@style/ThemeOverLayForm"
1818
app:cardBackgroundColor="@color/colorSurface"
19-
app:form="@raw/form"
2019
app:cardCornerRadius="7dp"
20+
app:form="@raw/form"
2121
app:layout_constraintEnd_toEndOf="parent"
2222
app:layout_constraintStart_toStartOf="parent"
2323
app:layout_constraintTop_toTopOf="parent"></com.seed.widgets.formview.FormView>

formview/src/main/res/layout/form_template.xml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<androidx.constraintlayout.widget.ConstraintLayout
77
android:layout_width="match_parent"
8-
android:layout_height="wrap_content"
8+
android:layout_height="match_parent"
99
android:orientation="vertical"
1010
android:theme="@style/FormViewTheme">
1111

@@ -15,22 +15,26 @@
1515
style="?titleStyle"
1616
android:layout_width="wrap_content"
1717
android:layout_height="wrap_content"
18-
android:layout_marginTop="16dp"
18+
android:layout_marginStart="8dp"
19+
android:layout_marginLeft="8dp"
20+
android:layout_marginTop="8dp"
1921
android:text="ahmed"
22+
app:layout_constraintBottom_toTopOf="@+id/formContainer"
2023
app:layout_constraintStart_toStartOf="parent"
21-
app:layout_constraintTop_toTopOf="parent" />
24+
app:layout_constraintTop_toTopOf="parent"
25+
app:layout_constraintVertical_bias="0.0"
26+
app:layout_constraintVertical_chainStyle="packed" />
2227

2328
<LinearLayout
2429
android:id="@+id/formContainer"
25-
android:layout_width="0dp"
26-
android:layout_height="match_parent"
30+
android:layout_width="411dp"
31+
android:layout_height="0dp"
32+
android:layout_marginTop="8dp"
2733
android:clipToPadding="false"
2834
android:orientation="vertical"
2935
app:layout_constraintBottom_toBottomOf="parent"
30-
app:layout_constraintEnd_toEndOf="parent"
3136
app:layout_constraintStart_toStartOf="parent"
32-
app:layout_constraintTop_toBottomOf="@+id/formTitle"
33-
app:layout_constraintVertical_bias="0.6"></LinearLayout>
37+
app:layout_constraintTop_toBottomOf="@+id/formTitle"></LinearLayout>
3438

3539
<ProgressBar
3640
android:id="@+id/progressBar"

0 commit comments

Comments
 (0)