Skip to content Skip to sidebar Skip to footer

In Android Custom Keyboard, How To Change Alphabets Keyboard To Symbols Keyboard?

While Navigate User from Alphabets Keyboard to Symbols Keyboard, Layout Alignment gets spoiled. By Default, Layout takes 5dp padding & User can't see the Last Column Keys. Note

Solution 1:

Keyboard Layout draws every key based on the percentage not in dp. So declare your key width as %p not in dp

In Layout file

<Rowandroid:horizontalGap="@fraction/key_horizontal_ten_keys_gap"android:keyWidth="@fraction/ten_keys_key_width"android:rowEdgeFlags="top"></Row>

In Resource file

<fractionname="ten_keys_key_width">8.8%p</fraction>

Post a Comment for "In Android Custom Keyboard, How To Change Alphabets Keyboard To Symbols Keyboard?"