添加图片默认背景切换功能
- 工具栏添加背景切换按钮,点击弹出对话框 - 支持三种背景模式:灰白相间、全白、全黑 - 背景设置持久化保存,应用重启后保持原设置 - 切换背景时保持当前浏览的图片位置
This commit is contained in:
@@ -52,6 +52,14 @@
|
||||
android:src="@drawable/ic_info"
|
||||
android:contentDescription="Info"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_bg"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:src="@drawable/ic_bg"
|
||||
android:contentDescription="Background"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_delete"
|
||||
android:layout_width="48dp"
|
||||
|
||||
Reference in New Issue
Block a user