Skip to content

Commit 607b288

Browse files
committed
Adjusting the widget style: pinyin on top of characters.
1 parent 433ffbb commit 607b288

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

.idea/vcs.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
minSdk = 26
1616
//noinspection EditedTargetSdkVersion
1717
targetSdk = 34
18-
versionCode = 7
19-
versionName = "1.1"
18+
versionCode = 8
19+
versionName = "1.2"
2020

2121
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2222
}

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,30 +56,31 @@
5656
android:gravity="center">
5757

5858
<TextView
59-
android:id="@+id/flashcard_chinese"
59+
android:id="@+id/flashcard_pinyin"
6060
android:layout_width="match_parent"
6161
android:layout_height="wrap_content"
62-
android:text="@string/widget_default_chinese"
63-
android:textAlignment="center"
62+
android:layout_marginTop="-5dp"
6463
android:layout_marginBottom="-5dp"
6564
android:padding="0dp"
66-
android:textSize="30sp" />
65+
android:text="@string/widget_default_pinyin"
66+
android:textAlignment="center"
67+
android:textSize="18sp" />
6768

6869
<TextView
69-
android:id="@+id/flashcard_pinyin"
70+
android:id="@+id/flashcard_chinese"
7071
android:layout_width="match_parent"
7172
android:layout_height="wrap_content"
72-
android:layout_marginTop="-5dp"
73-
android:padding="0dp"
74-
android:text="@string/widget_default_pinyin"
73+
android:text="@string/widget_default_chinese"
7574
android:textAlignment="center"
76-
android:textSize="20sp" />
75+
android:layout_marginBottom="-5dp"
76+
android:padding="0dp"
77+
android:textSize="30sp" />
7778

7879
<TextView
7980
android:id="@+id/flashcard_definition"
8081
android:layout_width="match_parent"
8182
android:layout_height="wrap_content"
82-
android:layout_marginTop="10dp"
83+
android:layout_marginTop="0dp"
8384
android:text="@string/widget_default_english"
8485
android:textAlignment="center"
8586
android:textSize="15sp" />

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id("com.android.application") version "8.1.2" apply false
3+
id("com.android.application") version "8.0.0" apply false
44
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
55

66
id("com.google.gms.google-services") version "4.3.15" apply false

0 commit comments

Comments
 (0)