mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Change custom layout to constraint
This commit is contained in:
parent
21315727ed
commit
bffa1bc091
1 changed files with 18 additions and 7 deletions
|
@ -7,10 +7,12 @@
|
|||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="340dp"
|
||||
android:layout_height="230dp"
|
||||
android:id="@+id/cardView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:layout_marginBottom="120dp"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
|
@ -19,7 +21,7 @@
|
|||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="265dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/background_dialog"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
@ -39,21 +41,30 @@
|
|||
android:layout_marginLeft="22dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:fontFamily="@font/opensans_semibold"
|
||||
android:text="@string/app_name"
|
||||
android:textSize="14dp"
|
||||
android:textSize="16dp"
|
||||
tools:ignore="HardcodedText,RtlHardcoded,SpUsage" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/txtClose"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
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:paddingLeft="25dp"
|
||||
android:paddingRight="25dp"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:text="Close"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16dp"
|
||||
android:textSize="16sp"
|
||||
tools:ignore="HardcodedText,RtlHardcoded,SpUsage" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
|
Loading…
Reference in a new issue