【问题标题】:Keyboard showing half on samsung devices in android app安卓应用程序中三星设备上的键盘显示一半
【发布时间】:2016-09-07 20:16:19
【问题描述】:

我创建了一个带有一个 textView 的 android 应用程序。我应用了诸如 inputType : number 和 maxLenght : 10 之类的属性。这个应用程序在除三星设备之外的所有设备上都能正常工作。

我还附上了设备截图

我不知道如何解决这个问题。它与特定的应用程序或操作系统有关。

我的代码是

<EditText
            android:layout_width="wrap_content"
            android:layout_height="25dp"
            android:inputType="number"
            android:ems="10"
            android:id="@+id/editText"
            android:layout_alignTop="@+id/textView"
            android:layout_alignParentEnd="true"
            android:layout_toEndOf="@+id/textView"
            android:background="@drawable/text_box_background"
            android:layout_marginLeft="30dp"
            android:layout_marginRight="60dp"
            android:layout_alignStart="@+id/textView98"
            android:maxLength="10"
            android:paddingLeft="10dp" />

先谢谢了!!!!!!

【问题讨论】:

  • 请在此处添加一些代码。

标签: java android keyboard samsung-mobile


【解决方案1】:

解决了这个问题............

我使用了方法 inputType : phone 和 android:digit="012345678" 所以即使在手机垫上我们也只能按下按钮 012345678 其余所有按钮都没有被按下。

我还附上了截图。 谢谢大家

【讨论】:

    猜你喜欢
    • 2014-11-10
    • 2011-12-27
    • 1970-01-01
    • 2017-10-13
    • 2012-03-28
    • 1970-01-01
    • 2015-10-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多