🔥 主要更新: - 升级到最新依赖版本 (AGP 8.12.0, Gradle 8.13, Java 17) - 完全重构 Context 管理系统,解决闪退问题 - 采用原项目 FongMi/TV 的稳定策略 - 启用 EventBus 编译时优化,提升性能 - 修复关于页面 GitHub 链接,永远指向最新版本 🐛 修复问题: - 修复 Context 初始化时序问题导致的崩溃 - 修复 ApplicationContext 被垃圾回收的问题 - 修复 Updater 构造函数的过早调用问题 - 解决 Android 15 设备兼容性问题 ⚡ 性能优化: - EventBus 性能提升 (编译时索引生成) - APK 体积优化 (release 版本 36MB vs 49MB debug) - 代码混淆和资源压缩启用 - 内存使用优化 📦 构建改进: - 支持 arm64-v8a 和 armeabi-v7a 双架构 - 完整的 release 和 debug 版本构建 - 新增 chaquo Python 模块支持 - 同步所有依赖到最新稳定版本 🛡️ 稳定性: - 采用经过 6.3k+ 星标验证的原项目策略 - 完善的异常处理机制 - 防护性编程实践 - 支持 Android 5.0+ 到 Android 15
86 lines
3.1 KiB
XML
86 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/black_90"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/code"
|
|
android:layout_width="180dp"
|
|
android:layout_height="180dp"
|
|
android:scaleType="centerCrop" />
|
|
|
|
<TextView
|
|
android:id="@+id/info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_toEndOf="@+id/code"
|
|
android:ellipsize="end"
|
|
android:focusable="true"
|
|
android:lineSpacingExtra="4dp"
|
|
android:maxLines="3"
|
|
android:paddingStart="4dp"
|
|
android:paddingEnd="4dp"
|
|
android:textColor="@color/grey_700"
|
|
android:textSize="18sp"
|
|
tools:text="@string/push_info" />
|
|
|
|
<com.fongmi.android.tv.ui.custom.CustomEditText
|
|
android:id="@+id/text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@+id/bottom"
|
|
android:layout_alignStart="@+id/info"
|
|
android:layout_marginBottom="10dp"
|
|
android:hint="@string/player_ua"
|
|
android:textColorHint="@color/white_50"
|
|
android:imeOptions="actionDone"
|
|
android:importantForAutofill="no"
|
|
android:inputType="text"
|
|
android:nextFocusDown="@id/positive"
|
|
android:singleLine="true"
|
|
android:textColor="@color/white"
|
|
android:textSize="18sp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignStart="@+id/info"
|
|
android:layout_alignBottom="@+id/code"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/positive"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:gravity="center"
|
|
android:singleLine="true"
|
|
android:text="@string/dialog_positive"
|
|
android:textColor="@color/button_text"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/negative"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:gravity="center"
|
|
android:singleLine="true"
|
|
android:text="@string/dialog_negative"
|
|
android:textColor="@color/button_text"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout> |