Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/216.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 更改键盘样式_Java_Android_Keyboard - Fatal编程技术网

Java 更改键盘样式

Java 更改键盘样式,java,android,keyboard,Java,Android,Keyboard,我的版面中有两个EditText,当我将数据插入First EditText并在键盘上按Enter键时,它将进入second EditText 如何禁用此功能?事实上,我不想在键盘上看到回车键 我的布局的屏幕截图: 以下是我的xml代码: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_heig

我的版面中有两个EditText,当我将数据插入First EditText并在键盘上按Enter键时,它将进入second EditText

如何禁用此功能?事实上,我不想在键盘上看到回车键

我的布局的屏幕截图:

以下是我的xml代码:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Fragments.SendMoneyFragment"
android:background="#fff"
android:paddingTop="@dimen/_15sdp"
xmlns:tools="http://schemas.android.com/tools">

<ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <LinearLayout
        android:paddingBottom="@dimen/_20sdp"
        android:paddingEnd="@dimen/_10sdp"
        android:paddingStart="@dimen/_10sdp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_gravity="right"
        android:background="@color/white">

        <com.saminray.kipo.Widgets.Txtview
            android:id="@+id/txtview_sendmoney_lbl1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="مبلغ را وارد کنید:"
            android:textColor="@android:color/background_dark"
            android:textSize="@dimen/_12sdp"
            android:layout_margin="5dp"/>

        <com.saminray.kipo.Widgets.CurrencyEditText
                android:id="@+id/value_charge"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_gravity="center"
                android:background="@drawable/edittext"
                android:maxLength="8"
                android:layout_marginLeft="@dimen/_10sdp"
                android:layout_marginRight="@dimen/_10sdp"
                android:gravity="center"
                android:hint="--------- ریال"
                android:padding="5dp"
                android:textSize="15sp" />

        <com.saminray.kipo.Widgets.Txtview
            android:id="@+id/value_show"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="bottom|right"
            android:textColor="@android:color/darker_gray"
            android:textSize="@dimen/_10sdp"
            android:layout_margin="10dp"/>

        <com.saminray.kipo.Widgets.Txtview
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="bottom|right"
            android:layout_margin="10dp"
            android:text="مقصد را انتخاب کنید:"
            android:textColor="#000000"
            android:textSize="@dimen/_12sdp" />

        <LinearLayout
            android:weightSum="1"
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

        </LinearLayout>

        <com.saminray.kipo.Widgets.MButton
            android:background="@drawable/round_button"
            android:layout_margin="10dp"
            android:drawableStart="@drawable/ic_qr_code"
            android:textSize="@dimen/_12sdp"
            android:drawablePadding="-55dp"
            android:paddingStart="@dimen/_20sdp"
            android:layout_width="match_parent"
            android:gravity="center"
            android:id="@+id/btn_sendmoney_qr"
            android:layout_marginBottom="@dimen/_15sdp"
            android:layout_height="wrap_content"
            android:text="به سادگی QR CODE را اسکن کنید"
            android:textColor="@color/white" />

        <com.saminray.kipo.Widgets.Txtview
            android:gravity="center"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textSize="@dimen/_15sdp"
            android:text="یا"/>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <com.saminray.kipo.Widgets.Edtview
                android:focusableInTouchMode="true"
                android:layout_weight="0.8"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:drawableStart="@drawable/ic_phonebook"
                android:layout_gravity="center"
                android:layout_marginTop="@dimen/_8sdp"
                android:layout_marginLeft="10dp"
                android:id="@+id/edt_phonenumber"
                android:layout_marginRight="10dp"
                android:background="@drawable/edittext"
                android:gravity="center"
                android:paddingTop="5dp"
                android:maxLength="11"
                android:paddingBottom="5dp"
                android:paddingEnd="5dp"
                android:paddingStart="13dp"
                android:hint="شماره کارت / شماره موبایل/ شماره شبا"
                android:textSize="15sp" />
        </LinearLayout>

        <LinearLayout
            android:layout_margin="@dimen/_10sdp"
            android:weightSum="1"
            android:gravity="center"
            android:layout_marginTop="@dimen/_15sdp"
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <ImageView
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_weight="0.2"
                android:visibility="invisible"
                android:id="@+id/close_item"
                android:src="@drawable/ic_close_black_24dp" />
            <com.saminray.kipo.Widgets.Txtview
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:id="@+id/txt_name"
                android:layout_gravity="center"
                android:layout_marginEnd="@dimen/_5sdp"
                android:layout_marginStart="@dimen/_10sdp"
                android:text=""
                android:textSize="@dimen/_10sdp" />
        </LinearLayout>


        <com.saminray.kipo.Widgets.MButton
            android:layout_marginBottom="@dimen/_10sdp"
            android:id="@+id/btn_confirm"
            android:layout_marginTop="20dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/_10sdp"
            android:layout_marginRight="@dimen/_10sdp"
            android:background="@drawable/round_button_gray"
            android:text="تایید"
            android:textColor="@color/white" />
    </LinearLayout>
</ScrollView>

我找到了我的答案:

android:imeOptions="actionDone"

你的代码不起作用,但你的链接帮助了我,谢谢
android:imeOptions="actionDone"