mirror of
				https://github.com/SimpleMobileTools/Simple-Keyboard.git
				synced 2025-06-05 21:49:26 +02:00 
			
		
		
		
	show a popup on clicking a button
This commit is contained in:
		
										
											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"
 | 
			
		||||
    android:layout_width="wrap_content"
 | 
			
		||||
    android:layout_height="80sp"
 | 
			
		||||
    android:background="@drawable/keyboard_key_feedback"
 | 
			
		||||
    android:layout_height="wrap_content"
 | 
			
		||||
    android:background="@drawable/keyboard_key_feedback_background"
 | 
			
		||||
    android:gravity="center"
 | 
			
		||||
    android:minWidth="32dip"
 | 
			
		||||
    android:textColor="?android:attr/textColorPrimaryInverse"
 | 
			
		||||
    android:textSize="40sp" />
 | 
			
		||||
    android:includeFontPadding="false"
 | 
			
		||||
    android:textColor="@color/md_grey_white"
 | 
			
		||||
    android:textSize="24sp" />
 | 
			
		||||
 
 | 
			
		||||
@@ -7,13 +7,12 @@
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <style name="Widget.KeyboardView" parent="Widget">
 | 
			
		||||
        <item name="background">@drawable/keyboard_background</item>
 | 
			
		||||
        <item name="keyBackground">@drawable/btn_keyboard_key</item>
 | 
			
		||||
        <item name="keyTextSize">22sp</item>
 | 
			
		||||
        <item name="keyTextColor">#FFFFFFFF</item>
 | 
			
		||||
        <item name="keyPreviewLayout">@layout/keyboard_key_preview</item>
 | 
			
		||||
        <item name="keyPreviewOffset">-12dp</item>
 | 
			
		||||
        <item name="keyPreviewHeight">80dp</item>
 | 
			
		||||
        <item name="keyPreviewHeight">60dp</item>
 | 
			
		||||
        <item name="labelTextSize">14sp</item>
 | 
			
		||||
        <item name="popupLayout">@layout/keyboard_popup_keyboard</item>
 | 
			
		||||
        <item name="verticalCorrection">-10dp</item>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user