Android 当将view设置为GONE时,它会滑到Sony Xperia上的SurfaceView下
我在上面有一个曲面视图和一个自定义视图(图库)(请参见布局片段)。 最初画廊是Android 当将view设置为GONE时,它会滑到Sony Xperia上的SurfaceView下,android,surfaceview,Android,Surfaceview,我在上面有一个曲面视图和一个自定义视图(图库)(请参见布局片段)。 最初画廊是视图。消失了。当某些按钮被设置为查看可见时 这种方法适用于大多数设备。不在索尼Xperia(4.0.4)上。所有视图(还有更多视图)的可见性都设置为“消失”,仅在SurfaceView下滑动 我已经挣扎了两天了 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com
视图。消失了
。当某些按钮被设置为查看可见时
这种方法适用于大多数设备。不在索尼Xperia(4.0.4)上。所有视图(还有更多视图)的可见性都设置为“消失”,仅在SurfaceView
下滑动
我已经挣扎了两天了
<?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="match_parent">
<SurfaceView
android:id="@+id/surface_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
...
<com.apps.activities.photo.TakenPhotosGallery
android:id="@+id/take_photos_mini_gallery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
/>
...
...
</RelativeLayout>
...
...
...
将背景设置为透明就足以解决问题