i testing app on genymotion. want keyboard show when edit text touched please me this. this screen shot of app
here xml
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="#5a5ab5" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingbottom="@dimen/activity_vertical_margin" tools:context=".mainactivity" android:clickable="false"> <com.github.florent37.materialtextfield.materialtextfield android:layout_width="300dp" android:layout_height="wrap_content" android:layout_below="@+id/view" app:mtf_image="@drawable/phon" android:id="@+id/view3"> <edittext android:layout_width="wrap_content" android:layout_height="40dp" android:id="@+id/phoneno" android:paddingleft="5dp" android:textsize="18sp" android:inputtype="phone" android:background="@drawable/phone" android:hint="phone number" android:layout_centervertical="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" />
as described on code used material library in code. please read library documentation. show keyboard code described in description.
app:mtf_openkeyboardonfocus="true"
add in material views, material library description here.
Comments
Post a Comment