mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-07 03:05:51 +08:00
通知优化图标展示界面顶部增加适配的图标个数展示
This commit is contained in:
@@ -46,6 +46,8 @@ class ConfigureActivity : BaseActivity() {
|
|||||||
setContentView(R.layout.activity_config)
|
setContentView(R.layout.activity_config)
|
||||||
/** 返回按钮点击事件 */
|
/** 返回按钮点击事件 */
|
||||||
findViewById<View>(R.id.title_back_icon).setOnClickListener { onBackPressed() }
|
findViewById<View>(R.id.title_back_icon).setOnClickListener { onBackPressed() }
|
||||||
|
/** 设置标题个数文本 */
|
||||||
|
findViewById<TextView>(R.id.config_title_count_text).text = "已适配 ${IconPackParams.iconDatas.size} 个 APP 的通知图标"
|
||||||
/** 设置列表元素和 Adapter */
|
/** 设置列表元素和 Adapter */
|
||||||
findViewById<ListView>(R.id.config_list_view).apply {
|
findViewById<ListView>(R.id.config_list_view).apply {
|
||||||
adapter = object : BaseAdapter() {
|
adapter = object : BaseAdapter() {
|
||||||
|
@@ -28,15 +28,32 @@
|
|||||||
android:src="@mipmap/back"
|
android:src="@mipmap/back"
|
||||||
android:tint="@color/colorTextGray" />
|
android:tint="@color/colorTextGray" />
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:singleLine="true"
|
android:gravity="center|start"
|
||||||
android:text="通知图标优化名单"
|
android:orientation="vertical">
|
||||||
android:textColor="@color/colorTextGray"
|
|
||||||
android:textSize="25sp"
|
<TextView
|
||||||
android:textStyle="bold" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="通知图标优化名单"
|
||||||
|
android:textColor="@color/colorTextGray"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/config_title_count_text"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="..."
|
||||||
|
android:textColor="@color/colorTextDark"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
Reference in New Issue
Block a user