I am working on an application in which i need to create rows and keys of custom keyboard pro-grammatically in java code , instead of using XML. Is this possible ? If yes, how we can do that.
Currently ,I am using XML and creating row in this way:-
<Keyboard android:keyWidth="10.0%p"
android:keyHeight="@dimen/key_height" android:horizontalGap="0.0px"android:verticalGap="0.0px"
xmlns:android="http://schemas.android.com/apk/res/android">
<Row android:rowEdgeFlags="top" >
<Key android:codes="-21" android:keyIcon="@drawable/arbiclinenew" />
<Key android:codes="-51" android:keyIcon="@drawable/recentlinenew" />
</Row>
Basically , I need to show "recent"
view in my keyboard which show all recently selected emoji by user same as in whatsapp.
Please help..!!!!