refactor: update text and enhance link styling in MainActivity

This commit is contained in:
2025-12-28 01:42:25 +08:00
parent bbfceb823a
commit 3f0e9d63ec
4 changed files with 6 additions and 15 deletions

View File

@@ -66,6 +66,7 @@ dependencies {
ksp(libs.yukihookapi.ksp.xposed)
implementation(libs.kavaref.core)
implementation(libs.kavaref.extension)
implementation(libs.betterandroid.ui.extension)
implementation(libs.project.promote)
implementation(libs.libsu)
implementation(libs.drawabletoolbox)

View File

@@ -56,6 +56,7 @@ import com.fankes.miui.notify.utils.tool.GithubReleaseTool
import com.fankes.miui.notify.utils.tool.I18nWarnTool
import com.fankes.miui.notify.utils.tool.SystemUITool
import com.fankes.projectpromote.ProjectPromote
import com.highcapable.betterandroid.ui.extension.view.isUnderline
import com.highcapable.yukihookapi.YukiHookAPI
class MainActivity : BaseActivity<ActivityMainBinding>() {
@@ -396,6 +397,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
/** 项目地址按钮点击事件 */
binding.titleGithubIcon.setOnClickListener { openProjectUrl() }
/** 恰饭! */
binding.linkWithFollowMe.isUnderline = true
binding.linkWithFollowMe.setOnClickListener {
openBrowser(url = "https://www.coolapk.com/u/876977", packageName = "com.coolapk.market")
}

View File

@@ -1428,24 +1428,10 @@
android:layout_marginBottom="10dp"
android:gravity="center"
android:lineSpacingExtra="6dp"
android:text="恰饭时间\n点击前往酷安关注我,获取我的更多应用"
android:text="点击这里前往酷安关注我,获取我的更多应用"
android:textColor="@color/colorTextGray"
android:textSize="16sp" />
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
app:cardCornerRadius="15dp"
app:cardElevation="0dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@mipmap/bg_payment_code" />
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@@ -7,6 +7,7 @@ rovo89-xposed-api = "82"
yukihookapi = "1.3.1"
kavaref-core = "1.0.2"
kavaref-extension = "1.0.2"
betterandroid-ui-extension = "1.0.0"
libsu = "5.2.2"
drawabletoolbox = "1.0.7"
okhttp = "5.3.2"
@@ -30,6 +31,7 @@ yukihookapi = { group = "com.highcapable.yukihookapi", name = "api", version.ref
yukihookapi-ksp-xposed = { group = "com.highcapable.yukihookapi", name = "ksp-xposed", version.ref = "yukihookapi" }
kavaref-core = { group = "com.highcapable.kavaref", name = "kavaref-core", version.ref = "kavaref-core" }
kavaref-extension = { group = "com.highcapable.kavaref", name = "kavaref-extension", version.ref = "kavaref-extension" }
betterandroid-ui-extension = { group = "com.highcapable.betterandroid", name = "ui-extension", version.ref = "betterandroid-ui-extension" }
libsu = { group = "com.github.topjohnwu.libsu", name = "core", version.ref = "libsu" }
drawabletoolbox = { group = "com.github.duanhong169", name = "drawabletoolbox", version.ref = "drawabletoolbox" }
okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp" }