【问题标题】:android:imeOptions="actionNext" is not working when android:inputType="textCapWords" [duplicate]当android:inputType =“textCapWords”时,android:imeOptions =“actionNext”不起作用[重复]
【发布时间】:2018-04-05 01:21:11
【问题描述】:

actionNext 不工作时

android:inputType="textCapWords"

但它的工作原理

android:inputType="text"

谁能帮忙解决这个问题

下面你可以看到我的代码

<android.support.design.widget.TextInputLayout
                android:id="@+id/profile_firstNameLay"
                android:layout_width="match_parent"
                android:theme="@style/TextLabel1"
                android:layout_height="wrap_content">

                <com.orbiosolutions.yabeee.CustomClasses.CustomEditText
                    android:id="@+id/profile_firstNameTxt"
                    android:textColor="@color/login_txt_color"
                    android:layout_width="match_parent"
                    android:textSize="@dimen/login_med_txt_size"
                    android:imeOptions="actionNext"
                    android:layout_height="wrap_content"
                    android:inputType="textCapWords"
                    android:maxLines="1"
                    android:hint="@string/first_name" />

            </android.support.design.widget.TextInputLayout>

【问题讨论】:

  • 让你在 xml 中添加 singleline =true

标签: android android-edittext imeoptions


【解决方案1】:

添加 singleLine = true

maxLines = 1

在您的 .xml 文件中

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-04-05
    • 2019-09-21
    • 2012-09-03
    • 2017-07-30
    • 1970-01-01
    • 1970-01-01
    • 2015-02-23
    • 2019-11-28
    相关资源
    最近更新 更多