How can I implement special soft keyboard

后端 未结 1 1937
误落风尘
误落风尘 2020-12-13 10:32

I want to make special soft keyboard to use it in my android app like the following

\"enter

1条回答
  •  眼角桃花
    2020-12-13 11:33

    Create XML like this for keyboard :

    
    
    
    
    

    And style is as below:

     
    

    In which

    @drawable/k1_selector
    

    is used to set background for key.

    #24B2E7 
    

    is used for text color of key.

    @android:color/white 
    

    is used to set background of entire keyboard and

    @layout/k1_preview
    

    is uesd to set preview of key.

    Preview layout xml :

    
    
    

    For spaces between keys use this.

    And for android:background="@drawable/neon_candidate_middle_pressed" it is background image which you want to show in preview of key.

    0 讨论(0)
提交回复
热议问题