在运行应用程序时出现键盘布局边缘出现问题?

Neonpokharkar

在此处输入图片说明

这是我使用dp尺寸并使用键盘的相对布局创建的布局,但是当我尝试在手机上使用键盘时,以某种方式裁剪了键盘的右边缘,如下所示,这可能是此问题的原因吗?

在此处输入图片说明

这是我的xml代码

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="250dp"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_alignParentBottom="true"
    android:background="@color/colorPrimaryDark"
    android:id="@+id/Rel">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/texty"/>
    <TextView
        android:layout_width="60dp"
        android:layout_height="30dp"
        android:layout_marginLeft="70dp"
        android:id="@+id/xcor"/>
    <TextView
        android:layout_width="60dp"
        android:layout_height="30dp"
        android:layout_marginLeft="180dp"
        android:id="@+id/ycor"/>

    <Button
        android:layout_width="41dp"
        android:layout_height="@dimen/buttonh"
        android:layout_marginTop="@dimen/buttono1"
        android:background="@drawable/button"
        android:text="अ"
        android:id="@+id/अ"
        android:textSize="@dimen/text"/>
    <Button
        android:layout_width="41dp"
        android:layout_height="@dimen/buttonh"
        android:layout_marginTop="@dimen/buttono1"
        android:layout_marginLeft="41dp"
        android:background="@drawable/button"
        android:text="आ"
        android:id="@+id/आ"
        android:textSize="@dimen/text"/>
    ....

    Lots of Buttons


   .....
    <Button
        android:layout_width="41dp"
        android:layout_height="43dp"
        android:layout_marginLeft="20dp"
        android:layout_marginTop="@dimen/buttono5"
        android:text="1"
        android:id="@+id/number"
        android:textSize="17dp"
        android:textColor="#FF494949"/>
    <Button
        android:layout_width="41dp"
        android:layout_height="43dp"
        android:layout_marginLeft="280dp"
        android:layout_marginTop="@dimen/buttono5"
        android:text="."
        android:id="@+id/dot"
        android:textSize="17dp"
        android:textColor="#FF494949"/>
    <ImageButton
        android:layout_width="60dp"
        android:layout_height="56dp"
        android:layout_marginLeft="330dp"
        android:layout_marginTop="192dp"
        android:src="@drawable/enterbutton"
        android:id="@+id/enter"
        android:textSize="17dp"/>




</RelativeLayout>

如评论中所建议。

我尝试将父母的宽度更改为某个恒定的dp而不是match_parent,但结果是相同的。

编辑我发现此错误仅发生在我的手机上,这是奥利奥手机,小米Redmi注意事项5。

爪哇德班

你可以使用 layout_weight

   <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:orientation="horizontal">

    <Button
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1" />

    <Button
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1" />

    <Button
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1" />

</LinearLayout>

其响应性超过显示

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

运行Grails 4应用程序时出现问题

来自分类Dev

部署流星应用程序时出现问题

来自分类Dev

编译此开源应用程序时出现问题

来自分类Dev

设计应用程序时出现问题

来自分类Dev

安装应用程序时出现问题

来自分类Dev

在模拟器中运行Apple Watch glance应用程序时出现问题

来自分类Dev

使用Spock和Java 8运行Android应用程序时出现问题

来自分类Dev

尝试运行Spring Boot应用程序时出现问题

来自分类Dev

在AWS上通过HTTPS运行Express应用程序时出现问题

来自分类Dev

在Mac上运行某些应用程序时出现问题,没有错误消息

来自分类Dev

在Linux环境中运行Java应用程序时出现问题

来自分类Dev

在 Ubuntu 19 上使用 FFMPEG 运行私有应用程序时出现问题

来自分类Dev

运行 php laravel 应用程序时出现问题 - Google App Engine

来自分类Dev

在运行tns的情况下,在同一Android设备上运行多个NativeScript应用程序时出现问题

来自分类Dev

Rails 2.3应用程序在运行数据库迁移时出现问题

来自分类Dev

运行 HYPODD 程序时出现问题

来自分类Dev

将应用程序注册为相机应用程序时出现问题

来自分类Dev

让mod-wsgi运行使用python3编写的应用程序时出现问题

来自分类Dev

在ubuntu gnome 14.04上安装应用程序时出现问题

来自分类Dev

部署ASP.NET MVC + LocalDB应用程序时出现问题

来自分类Dev

更新64位架构的Phonegap iOS应用程序时出现问题

来自分类Dev

在tomcat上部署基于Restlet的应用程序时出现问题

来自分类Dev

部署Spring Boot + Angular应用程序时出现问题

来自分类Dev

虚拟机在打开应用程序时出现问题

来自分类Dev

在F-Droid中发布我的应用程序时出现问题

来自分类Dev

从容器外部访问dockerized节点应用程序时出现问题

来自分类Dev

将外部js文件导入vue应用程序时出现问题

来自分类Dev

在Tarantool上热重装Lua应用程序时出现问题

来自分类Dev

使用Elastic Beanstalk部署Flask应用程序时出现问题

Related 相关文章

  1. 1

    运行Grails 4应用程序时出现问题

  2. 2

    部署流星应用程序时出现问题

  3. 3

    编译此开源应用程序时出现问题

  4. 4

    设计应用程序时出现问题

  5. 5

    安装应用程序时出现问题

  6. 6

    在模拟器中运行Apple Watch glance应用程序时出现问题

  7. 7

    使用Spock和Java 8运行Android应用程序时出现问题

  8. 8

    尝试运行Spring Boot应用程序时出现问题

  9. 9

    在AWS上通过HTTPS运行Express应用程序时出现问题

  10. 10

    在Mac上运行某些应用程序时出现问题,没有错误消息

  11. 11

    在Linux环境中运行Java应用程序时出现问题

  12. 12

    在 Ubuntu 19 上使用 FFMPEG 运行私有应用程序时出现问题

  13. 13

    运行 php laravel 应用程序时出现问题 - Google App Engine

  14. 14

    在运行tns的情况下,在同一Android设备上运行多个NativeScript应用程序时出现问题

  15. 15

    Rails 2.3应用程序在运行数据库迁移时出现问题

  16. 16

    运行 HYPODD 程序时出现问题

  17. 17

    将应用程序注册为相机应用程序时出现问题

  18. 18

    让mod-wsgi运行使用python3编写的应用程序时出现问题

  19. 19

    在ubuntu gnome 14.04上安装应用程序时出现问题

  20. 20

    部署ASP.NET MVC + LocalDB应用程序时出现问题

  21. 21

    更新64位架构的Phonegap iOS应用程序时出现问题

  22. 22

    在tomcat上部署基于Restlet的应用程序时出现问题

  23. 23

    部署Spring Boot + Angular应用程序时出现问题

  24. 24

    虚拟机在打开应用程序时出现问题

  25. 25

    在F-Droid中发布我的应用程序时出现问题

  26. 26

    从容器外部访问dockerized节点应用程序时出现问题

  27. 27

    将外部js文件导入vue应用程序时出现问题

  28. 28

    在Tarantool上热重装Lua应用程序时出现问题

  29. 29

    使用Elastic Beanstalk部署Flask应用程序时出现问题

热门标签

归档