Cherish: FOD icon picker [2/2]
* Adapt for CherishOS support * Add a footer to explain how users can add their own icons
This commit is contained in:
79
res/layout/fod_picker_preference.xml
Normal file
79
res/layout/fod_picker_preference.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2020 The Evolution X Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/fodiconone_button"
|
||||
android:layout_width="@dimen/fod_picker_item_size"
|
||||
android:layout_height="@dimen/fod_picker_item_size"
|
||||
android:src="@drawable/fod_icon_default"
|
||||
android:scaleType="centerInside"
|
||||
android:padding="@dimen/fod_picker_item_padding"
|
||||
android:layout_margin="@dimen/fod_picker_item_margin"
|
||||
android:background="@drawable/fod_picker_item_background"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/fodicontwo_button"
|
||||
android:layout_width="@dimen/fod_picker_item_size"
|
||||
android:layout_height="@dimen/fod_picker_item_size"
|
||||
android:src="@drawable/fod_icon_default_1"
|
||||
android:scaleType="centerInside"
|
||||
android:padding="@dimen/fod_picker_item_padding"
|
||||
android:layout_margin="@dimen/fod_picker_item_margin"
|
||||
android:background="@drawable/fod_picker_item_background"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/fodiconthree_button"
|
||||
android:layout_width="@dimen/fod_picker_item_size"
|
||||
android:layout_height="@dimen/fod_picker_item_size"
|
||||
android:src="@drawable/fod_icon_default_2"
|
||||
android:scaleType="centerInside"
|
||||
android:padding="@dimen/fod_picker_item_padding"
|
||||
android:layout_margin="@dimen/fod_picker_item_margin"
|
||||
android:background="@drawable/fod_picker_item_background"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/fodiconfour_button"
|
||||
android:layout_width="@dimen/fod_picker_item_size"
|
||||
android:layout_height="@dimen/fod_picker_item_size"
|
||||
android:src="@drawable/fod_icon_default_3"
|
||||
android:scaleType="centerInside"
|
||||
android:padding="@dimen/fod_picker_item_padding"
|
||||
android:layout_margin="@dimen/fod_picker_item_margin"
|
||||
android:background="@drawable/fod_picker_item_background"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user