如何在Android键盘上获得左右箭头键?

时间:2017-09-27 11:16:41

标签: java android xml

我试图在Android键盘上获得左右箭头键。以下是IOS键盘的示例。它应该是什么样子。

enter image description here

这是我到目前为止的样子。我只想念这些箭头。

enter image description here

以下是编辑文本的XML代码示例。

<RelativeLayout
    android:id="@+id/relative_layout_username"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/text_view_login_title"
    android:layout_marginBottom="@dimen/activity_login_username_relative_layout_bottom_margin">


    <android.support.design.widget.TextInputLayout
        android:id="@+id/text_input_layout_username"
        style="@style/MyEditTextTheme"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/image_view_username">

        <EditText
            android:id="@+id/edit_text_username"
            style="@style/MyEditTextTheme"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/login_username_title"
            android:imeOptions="actionNext"
            android:inputType="textPersonName"
            android:textSize="@dimen/activity_login_username_edit_text_size"
            android:imeActionLabel="@string/ime_action_label_title"/>
    </android.support.design.widget.TextInputLayout>

    <ImageView
        android:id="@+id/image_view_username"
        android:layout_width="@dimen/activity_login_icon_image_view_size"
        android:layout_height="@dimen/activity_login_icon_image_view_size"
        android:layout_centerVertical="true"
        android:padding="@dimen/activity_login_icon_image_view_padding"
        android:src="@drawable/ic_username_light_blue"/>

</RelativeLayout>

0 个答案:

没有答案
相关问题