mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 10:45:20 +08:00
117 lines
4.5 KiB
XML
117 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/colorThemeBackground"
|
|
android:orientation="vertical"
|
|
tools:context=".ui.MainActivity"
|
|
tools:ignore="HardcodedText,UseCompoundDrawables,ContentDescription">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:elevation="0dp"
|
|
android:gravity="center|start"
|
|
android:paddingLeft="15dp"
|
|
android:paddingTop="13dp"
|
|
android:paddingRight="15dp"
|
|
android:paddingBottom="5dp">
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:id="@+id/title_back_icon"
|
|
style="?android:attr/selectableItemBackgroundBorderless"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginEnd="25dp"
|
|
android:src="@mipmap/back"
|
|
android:tint="@color/colorTextGray" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center|start"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
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
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="15dp"
|
|
android:background="@drawable/permotion_round"
|
|
android:elevation="0dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="15dp">
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:alpha="0.85"
|
|
android:src="@mipmap/about"
|
|
android:tint="@color/colorTextDark" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.6"
|
|
android:lineSpacingExtra="5dp"
|
|
android:text="启用替换后 APP 的彩色通知图标将被替换为预设的小图标。\n启用全部替换将忽略 APP 非彩色图标,强制将全部通知图标替换为列表中预设的小图标。"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="11sp"
|
|
tools:ignore="SmallSp" />
|
|
</LinearLayout>
|
|
|
|
<ListView
|
|
android:id="@+id/config_list_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:divider="@color/trans"
|
|
android:dividerHeight="15dp"
|
|
android:fadingEdgeLength="10dp"
|
|
android:listSelector="@null"
|
|
android:padding="15dp"
|
|
android:requiresFadingEdge="vertical"
|
|
android:scrollbars="none" />
|
|
|
|
<TextView
|
|
android:id="@+id/config_cbr_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:background="@drawable/button_round"
|
|
android:gravity="center"
|
|
android:padding="10dp"
|
|
android:singleLine="true"
|
|
android:text="贡献通知图标优化名单"
|
|
android:textColor="@color/colorTextGray"
|
|
android:textSize="15sp" />
|
|
</LinearLayout> |