mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2026-02-04 12:17:22 +08:00
refactor: update text and enhance link styling in MainActivity
This commit is contained in:
@@ -8,6 +8,7 @@ rovo89-xposed-api = "82"
|
|||||||
yukihookapi = "1.3.1"
|
yukihookapi = "1.3.1"
|
||||||
kavaref-core = "1.0.2"
|
kavaref-core = "1.0.2"
|
||||||
kavaref-extension = "1.0.2"
|
kavaref-extension = "1.0.2"
|
||||||
|
betterandroid-ui-extension = "1.0.0"
|
||||||
microsoft-appcenter = "5.0.6"
|
microsoft-appcenter = "5.0.6"
|
||||||
libsu = "5.2.2"
|
libsu = "5.2.2"
|
||||||
drawabletoolbox = "1.0.7"
|
drawabletoolbox = "1.0.7"
|
||||||
@@ -34,6 +35,7 @@ yukihookapi = { group = "com.highcapable.yukihookapi", name = "api", version.ref
|
|||||||
yukihookapi-ksp-xposed = { group = "com.highcapable.yukihookapi", name = "ksp-xposed", version.ref = "yukihookapi" }
|
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-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" }
|
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" }
|
||||||
microsoft-appcenter-analytics = { group = "com.microsoft.appcenter", name = "appcenter-analytics", version.ref = "microsoft-appcenter" }
|
microsoft-appcenter-analytics = { group = "com.microsoft.appcenter", name = "appcenter-analytics", version.ref = "microsoft-appcenter" }
|
||||||
microsoft-appcenter-crashes = { group = "com.microsoft.appcenter", name = "appcenter-crashes", version.ref = "microsoft-appcenter" }
|
microsoft-appcenter-crashes = { group = "com.microsoft.appcenter", name = "appcenter-crashes", version.ref = "microsoft-appcenter" }
|
||||||
libsu = { group = "com.github.topjohnwu.libsu", name = "core", version.ref = "libsu" }
|
libsu = { group = "com.github.topjohnwu.libsu", name = "core", version.ref = "libsu" }
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ dependencies {
|
|||||||
ksp(libs.yukihookapi.ksp.xposed)
|
ksp(libs.yukihookapi.ksp.xposed)
|
||||||
implementation(libs.kavaref.core)
|
implementation(libs.kavaref.core)
|
||||||
implementation(libs.kavaref.extension)
|
implementation(libs.kavaref.extension)
|
||||||
|
implementation(libs.betterandroid.ui.extension)
|
||||||
implementation(libs.project.promote)
|
implementation(libs.project.promote)
|
||||||
implementation(libs.microsoft.appcenter.analytics)
|
implementation(libs.microsoft.appcenter.analytics)
|
||||||
implementation(libs.microsoft.appcenter.crashes)
|
implementation(libs.microsoft.appcenter.crashes)
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ import com.fankes.apperrorstracking.utils.tool.AppAnalyticsTool.bindAppAnalytics
|
|||||||
import com.fankes.apperrorstracking.utils.tool.FrameworkTool
|
import com.fankes.apperrorstracking.utils.tool.FrameworkTool
|
||||||
import com.fankes.apperrorstracking.utils.tool.GithubReleaseTool
|
import com.fankes.apperrorstracking.utils.tool.GithubReleaseTool
|
||||||
import com.fankes.projectpromote.ProjectPromote
|
import com.fankes.projectpromote.ProjectPromote
|
||||||
|
import com.highcapable.betterandroid.ui.extension.view.isUnderline
|
||||||
import com.highcapable.yukihookapi.YukiHookAPI
|
import com.highcapable.yukihookapi.YukiHookAPI
|
||||||
|
|
||||||
class MainActivity : BaseActivity<ActivityMainBinding>() {
|
class MainActivity : BaseActivity<ActivityMainBinding>() {
|
||||||
@@ -130,6 +131,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
|||||||
binding.titleGithubIcon.setOnClickListener { openBrowser(url = "https://github.com/KitsunePie/AppErrorsTracking") }
|
binding.titleGithubIcon.setOnClickListener { openBrowser(url = "https://github.com/KitsunePie/AppErrorsTracking") }
|
||||||
/** 恰饭! */
|
/** 恰饭! */
|
||||||
binding.paymentFollowingZhCnItem.isVisible = isSystemLanguageSimplifiedChinese
|
binding.paymentFollowingZhCnItem.isVisible = isSystemLanguageSimplifiedChinese
|
||||||
|
binding.linkWithFollowMe.isUnderline = true
|
||||||
binding.linkWithFollowMe.setOnClickListener {
|
binding.linkWithFollowMe.setOnClickListener {
|
||||||
openBrowser(url = "https://www.coolapk.com/u/876977", packageName = "com.coolapk.market")
|
openBrowser(url = "https://www.coolapk.com/u/876977", packageName = "com.coolapk.market")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -718,24 +718,10 @@
|
|||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:lineSpacingExtra="6dp"
|
android:lineSpacingExtra="6dp"
|
||||||
android:text="恰饭时间\n点击前往酷安关注我,获取我的更多应用"
|
android:text="点击这里前往酷安关注我,获取我的更多应用"
|
||||||
android:textColor="@color/colorTextGray"
|
android:textColor="@color/colorTextGray"
|
||||||
android:textSize="16sp" />
|
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
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|||||||
Reference in New Issue
Block a user