Skip to content

Commit

Permalink
LS Clock 28: Fix InflateException
Browse files Browse the repository at this point in the history
Signed-off-by: DrDisagree <[email protected]>
  • Loading branch information
Mahmud0808 committed Dec 1, 2024
1 parent 8d6558b commit 770a0a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/lockscreen_clock_28_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@android:color/system_accent1_200" />
<corners android:radius="18dp" />
<stroke
android:width="4dp"
android:color="@android:color/system_accent1_900" />
</shape>
10 changes: 3 additions & 7 deletions app/src/main/res/layout/preview_lockscreen_clock_28.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?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="wrap_content"
Expand All @@ -15,14 +14,11 @@
android:orientation="vertical"
tools:ignore="UselessParent">

<com.google.android.material.card.MaterialCardView
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|center"
app:cardBackgroundColor="@android:color/system_accent1_200"
app:cardCornerRadius="18dp"
app:strokeColor="@android:color/system_accent1_900"
app:strokeWidth="4dp">
android:background="@drawable/lockscreen_clock_28_bg">

<TextClock
android:layout_width="wrap_content"
Expand All @@ -41,7 +37,7 @@
android:textSize="28sp"
android:textStyle="bold" />

</com.google.android.material.card.MaterialCardView>
</LinearLayout>

<LinearLayout
android:layout_width="wrap_content"
Expand Down

0 comments on commit 770a0a1

Please sign in to comment.