Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Updater: Adjust the layout of the returned changelog (#2)
Browse files Browse the repository at this point in the history
* 调整更新日志排版

* 加粗一下字体
  • Loading branch information
lingqiqi5211 authored Dec 10, 2023
1 parent e892f5b commit ea8021e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/top/yukonga/update/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class MainActivity : AppCompatActivity() {

val log = StringBuilder()
romInfo.currentRom.changelog!!.forEach {
log.append(it.key).append("\n").append(it.value.txt.joinToString("\n")).append("\n")
log.append(it.key).append("\n- ").append(it.value.txt.joinToString("\n- ")).append("\n\n")
}

changelogInfo.setTextAnimation(
Expand Down
11 changes: 10 additions & 1 deletion app/src/main/res/layout/main_content.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
android:gravity="center_vertical"
android:text="@string/codename"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand All @@ -175,6 +176,7 @@
android:gravity="center_vertical"
android:text="@string/system_version"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand All @@ -201,6 +203,7 @@
android:gravity="center_vertical"
android:text="@string/big_version"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand All @@ -227,6 +230,7 @@
android:gravity="center_vertical"
android:text="@string/android_version"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand All @@ -253,6 +257,7 @@
android:gravity="center_vertical"
android:text="@string/branch"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand Down Expand Up @@ -298,6 +303,7 @@
android:gravity="center_vertical"
android:text="@string/filename"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand All @@ -322,6 +328,7 @@
android:gravity="center_vertical"
android:text="@string/filesize"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand All @@ -346,6 +353,7 @@
android:gravity="center_vertical"
android:text="@string/changelog"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold"
android:visibility="gone" />

<com.google.android.material.textview.MaterialTextView
Expand Down Expand Up @@ -383,7 +391,8 @@
android:layout_marginBottom="6dp"
android:gravity="center_vertical"
android:text="@string/download"
android:textColor="?attr/colorOnSurface" />
android:textColor="?attr/colorOnSurface"
android:textStyle="bold" />

<LinearLayout
android:layout_width="match_parent"
Expand Down

0 comments on commit ea8021e

Please sign in to comment.