Cherish: ColorPicker: make it more user friendly
* Show RGB value instead of ARGB because most average users dont even know about alpha in hex color values * Make edit text limited to 7 characters and one line * Remove enter image button Signed-off-by: 00day0 <therandomuser11@gmail.com> Signed-off-by: NurKeinNeid <mralexman3000@gmail.com>
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
<!-- Copyright (C) 2014-2016 The Dirty Unicorns 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.
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="32.000000dp"
|
||||
android:height="32.000000dp"
|
||||
android:viewportWidth="96.000000"
|
||||
android:viewportHeight="96.000000"
|
||||
android:tint="?android:attr/colorAccent">
|
||||
|
||||
<group
|
||||
android:translateY="96.000000"
|
||||
android:scaleX="0.100000"
|
||||
android:scaleY="-0.100000">
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:strokeWidth="1"
|
||||
android:pathData="M567 562 l-187 -187 -98 98 -98 97 -42 -43 -42 -43 139 -138 138 -138 232 227 c127
|
||||
125 231 230 230 234 0 3 -20 23 -43 43 l-42 37 -187 -187z" />
|
||||
</group>
|
||||
</vector>
|
||||
@@ -57,16 +57,11 @@
|
||||
android:id="@+id/hex"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text"
|
||||
android:maxLines="1"
|
||||
android:maxLength="7"
|
||||
android:hint="@string/hex_hint" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/enter"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@android:color/transparent"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/ic_action_set" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -43,17 +43,11 @@
|
||||
android:id="@+id/hex"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="text"
|
||||
android:maxLines="1"
|
||||
android:maxLength="7"
|
||||
android:hint="@string/hex_hint" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/enter"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:background="@android:color/transparent"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/ic_action_set" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<net.margaritov.preference.colorpicker.ColorPickerView
|
||||
|
||||
Reference in New Issue
Block a user