1

Hey friends i am new in android and i am face this problem, i have only one edittext in my xml but when i invoke the keyboard sometimes it show the done button in keyboard and sometime it shows the next button while i have no other edittext in my xml when it shows the done button and i click on that every things works fine and when it shows the next button instead of done and by clicking on that the application is crash because of null pointer exception because it will not get any other edittext in that. here is my xml below

Any help will be appreciated. I have a phone with the android version 4.1.2

`

    <ImageView
        android:id="@+id/iconsearch"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_centerVertical="true"
        android:layout_marginRight="3dp"
        android:layout_toLeftOf="@+id/edtSearchClubs"
        android:background="@drawable/search_icon" />

        <EditText
            android:id="@+id/edtSearchClubs"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:hint="Search clubs"
            android:background="@null"
            android:imeOptions="actionDone"
            android:layout_centerInParent="true"
            android:singleLine="true"
            android:textColor="@color/white"
            android:textSize="18sp" />

</RelativeLayout>`

0 Answers0