Push view above when using custom Keyboard

天涯浪子 提交于 2019-12-05 21:03:21

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>

I'm not sure if this is the correct way, but I've used a translate animation, to move the view along the Y-axis. With some tweaking , it actually looks better than the default android push.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!