I have created a custom keyboard for my android application. I have also disabled the default android keyboard. I display the keyboard as a fragment in the activity and it shows up well.
I only cannot get activity view to push above when the keyboard shows up. Is there any way that I could do this?
XML FILE
<FrameLayout
android:id="@+id/flKeyboard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
SHOW FRAGMENT
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.add(R.id.flKeyboard, new Keyboard()).commit();
You can try something like this:
<RelativeLayout>
<View
android:id="@+id/myView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<FrameLayout
android:id="@+id/flKeyboard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/myView"
/>
</RelativeLayout>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With