我用RelativeLayout做了一个布局。布局包括相当多的其他元素,从几个 TableLayouts 到几个 ImageButtons...RelativeLayout 本身具有以下参数:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bgimage">
现在我注意到有时(主要是在退出屏幕保护模式时,如从黑屏中出来时)整个屏幕会被绘制成好像向下移动了 50 像素,在顶部留下了 50 像素的黑色空间...当我上下移动轨迹球(设备是 ADP2,Google Ion)时,布局也会上下移动,就好像它可以滚动一样...在加载另一个 Activity 并返回到原来的这个之后行为会自我纠正...
有没有人经历过这样的事情?这怎么解决?提前感谢任何帮助/提示/指针!