Change custom layout to constraint

This commit is contained in:
jacques 2023-07-14 12:27:45 +02:00
parent 21315727ed
commit bffa1bc091

View file

@ -7,10 +7,12 @@
tools:ignore="MissingDefaultResource"> tools:ignore="MissingDefaultResource">
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_width="340dp" android:id="@+id/cardView"
android:layout_height="230dp" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp" android:layout_marginLeft="12dp"
android:layout_marginRight="12dp" android:layout_marginRight="12dp"
android:layout_marginBottom="120dp"
app:cardCornerRadius="12dp" app:cardCornerRadius="12dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
@ -19,7 +21,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="265dp" android:layout_height="match_parent"
android:background="@drawable/background_dialog" android:background="@drawable/background_dialog"
android:orientation="vertical"> android:orientation="vertical">
@ -39,21 +41,30 @@
android:layout_marginLeft="22dp" android:layout_marginLeft="22dp"
android:layout_marginTop="18dp" android:layout_marginTop="18dp"
android:layout_marginRight="12dp" android:layout_marginRight="12dp"
android:fontFamily="@font/opensans_semibold"
android:text="@string/app_name" android:text="@string/app_name"
android:textSize="14dp" android:textSize="16dp"
tools:ignore="HardcodedText,RtlHardcoded,SpUsage" /> tools:ignore="HardcodedText,RtlHardcoded,SpUsage" />
<Button <Button
android:id="@+id/txtClose" android:id="@+id/txtClose"
android:layout_width="150dp" android:layout_width="wrap_content"
android:layout_height="40dp" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="38dp" android:layout_marginTop="38dp"
android:layout_marginBottom="38dp"
android:autoSizeMaxTextSize="100sp"
android:autoSizeMinTextSize="12sp"
android:autoSizeStepGranularity="2sp"
android:autoSizeTextType="uniform"
android:background="@drawable/rounded_btn" android:background="@drawable/rounded_btn"
android:paddingLeft="25dp"
android:paddingRight="25dp"
android:gravity="center" android:gravity="center"
android:maxLines="1"
android:text="Close" android:text="Close"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="16dp" android:textSize="16sp"
tools:ignore="HardcodedText,RtlHardcoded,SpUsage" /> tools:ignore="HardcodedText,RtlHardcoded,SpUsage" />
</LinearLayout> </LinearLayout>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>