安卓布局和向上移动放大器;从状态栏后面的顶部皮20dp区 [英] Android:Layout move upwards & about 20dp area from the top hides behind the status bar

查看:167
本文介绍了安卓布局和向上移动放大器;从状态栏后面的顶部皮20dp区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用这个<一个href=\"http://mobile.tutsplus.com/tutorials/android/capture-and-crop-an-image-with-the-device-camera/\"相对=nofollow>链接!用于裁剪图像和获取裁剪后的图像在某种程度上整个布局后移约20dp向上和隐藏状态栏的后面(这是随机行为,即有时会发生),我试过很多事情要解决这个问题,但不能得到解决,主要是因为我不知道是什么原因造成的问题。搜索结果
这是一个设备特定问题,在GALAXY S和HTC渴望,但常常在三星王牌偶尔出现。我测试应用三星说明和的HTC Desire HD,它工作正常没有这样的问题,在这些设备。
搜索结果
有一件事我要在这里提到的是:当布局状态栏下隐藏了,如果我通过点击文本框弹出布局键盘得到恢复正常即隐藏区域再次变得可见。搜索结果我不能附加图像却发现类似的问题<一href=\"http://stackoverflow.com/questions/13689199/android-status-bar-hides-part-of-view-sometimes\">Android - 状态栏隐藏的视图部分有时正好这是我的布局的行为结果。

I am using this link! for cropping an image and after getting the cropped image somehow whole layout moves about 20dp upwards and hides behind the status bar (this is random behaviour i.e happens sometimes) I tried many things to fix this problem but couldn't get to the solution, mainly because I dont know what is causing the problem.

This is a device specific problem, occurs occasionally in galaxy s and htc desire but frequently on samsung Ace. I tested app on samsung note and htc desire HD it works fine no such problem in these devices.

There is one more thing I should mention here that is: when layout hides under the status bar if I popup the keyboard by clicking on textfield layout gets back to normal i.e hidden area gets visible again.

I cannot attach the image but found similar question Android - Status bar hides part of view sometimes exactly this is the behaviour of my layout.

注意:最近我发现,摄像头的活动是造成布局向上移动。为了验证三星Galaxy王牌此启动相机,只是preSS回来,注意主屏幕图标的布局动作。

推荐答案

我已经通过相机活动检查作物里面这个方法的设置相机尺寸 - 参数VS职位的意向最后的回答帮我解决这个问题。

I have fixed the problem by using crop method inside the camera activity check this Set Camera Size - Parameters vs Intent? last answer of the post helped me to solve the issue.

这篇关于安卓布局和向上移动放大器;从状态栏后面的顶部皮20dp区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆