In Android Custom Keyboard, how to change Alphabets Keyboard to Symbols Keyboard?

前端 未结 1 1130
無奈伤痛
無奈伤痛 2021-01-16 05:04

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 Ke

相关标签:
1条回答
  • 2021-01-16 05:21

    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

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

    In Resource file

    <fraction name="ten_keys_key_width">8.8%p</fraction>
    
    0 讨论(0)
提交回复
热议问题