错误应用程序中键盘上的按钮

时间:2017-10-20 14:37:46

标签: java android

当我使用主题时,活动底部有一个按钮  @android:style/Theme.NoTitleBar.Fullscreen当站在一个字段上看起来不错时,但当我使用主题@style/AppTheme.NoActionBar时,我停在字段上并且按钮留在键盘上,我该如何更正此错误?

样式文件:

 <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

按钮

<Button
        android:id="@+id/btn_registrar"
        android:layout_width="0dp"
        android:layout_height="60dp"
        android:layout_marginEnd="35dp"
        android:layout_marginLeft="35dp"
        android:layout_marginRight="35dp"
        android:layout_marginStart="35dp"
        style="@style/boton_verde_next"
        android:text="REGISTRAR"
        android:textSize="18sp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintHorizontal_bias="0.502"
        app:layout_constraintBottom_toBottomOf="parent"
        android:layout_marginBottom="8dp"
        tools:layout_constraintRight_creator="1"
        tools:layout_constraintLeft_creator="1" />

enter image description here

0 个答案:

没有答案