show a popup on clicking a button
This commit is contained in:
parent
e86db53415
commit
5c2011b6f9
Binary file not shown.
Before Width: | Height: | Size: 206 B |
|
@ -1,4 +0,0 @@
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:drawable="@drawable/keyboard_key_feedback_more_background" android:state_long_pressable="true" />
|
|
||||||
<item android:drawable="@drawable/keyboard_key_feedback_background" />
|
|
||||||
</selector>
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.9 KiB |
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:id="@+id/button_background_shape">
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<solid android:color="@color/md_grey_800_dark" />
|
||||||
|
<corners android:radius="4dp" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
Binary file not shown.
Before Width: | Height: | Size: 4.6 KiB |
|
@ -1,8 +1,8 @@
|
||||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="80sp"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/keyboard_key_feedback"
|
android:background="@drawable/keyboard_key_feedback_background"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:minWidth="32dip"
|
android:includeFontPadding="false"
|
||||||
android:textColor="?android:attr/textColorPrimaryInverse"
|
android:textColor="@color/md_grey_white"
|
||||||
android:textSize="40sp" />
|
android:textSize="24sp" />
|
||||||
|
|
|
@ -7,13 +7,12 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Widget.KeyboardView" parent="Widget">
|
<style name="Widget.KeyboardView" parent="Widget">
|
||||||
<item name="background">@drawable/keyboard_background</item>
|
|
||||||
<item name="keyBackground">@drawable/btn_keyboard_key</item>
|
<item name="keyBackground">@drawable/btn_keyboard_key</item>
|
||||||
<item name="keyTextSize">22sp</item>
|
<item name="keyTextSize">22sp</item>
|
||||||
<item name="keyTextColor">#FFFFFFFF</item>
|
<item name="keyTextColor">#FFFFFFFF</item>
|
||||||
<item name="keyPreviewLayout">@layout/keyboard_key_preview</item>
|
<item name="keyPreviewLayout">@layout/keyboard_key_preview</item>
|
||||||
<item name="keyPreviewOffset">-12dp</item>
|
<item name="keyPreviewOffset">-12dp</item>
|
||||||
<item name="keyPreviewHeight">80dp</item>
|
<item name="keyPreviewHeight">60dp</item>
|
||||||
<item name="labelTextSize">14sp</item>
|
<item name="labelTextSize">14sp</item>
|
||||||
<item name="popupLayout">@layout/keyboard_popup_keyboard</item>
|
<item name="popupLayout">@layout/keyboard_popup_keyboard</item>
|
||||||
<item name="verticalCorrection">-10dp</item>
|
<item name="verticalCorrection">-10dp</item>
|
||||||
|
|
Loading…
Reference in New Issue