왼쪽 창에 ListView가 있고 오른쪽 창에 MapFragment가있는 SlidingPaneLayout이 있습니다.오른쪽 창에 MapFragment가있는 SlidingPaneLayout입니다. 왼쪽 창을 화면에 표시 할 때지도가 나타나지 않음 (작은 화면)
그녀는 내 코드입니다 :
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/sliding_pane_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView android:id="@+id/left_pane"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_gravity="left"/>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_height="match_parent"
android:layout_width="300dp"
android:layout_weight="1"
android:name="com.google.android.gms.maps.MapFragment"/>
</android.support.v4.widget.SlidingPaneLayout>
SlidingPaneLayout 작은 화면에 보여 때 문제가 (내 경우에는 작은 다음 200dp + 300dp). 그런 다음지도가 오른쪽 창이 완전히 화면에 나타날 때까지 볼 수 없습니다. 왼쪽 된 창 (ListView 오른쪽에 표시) 화면에있는 경우에도지도를 볼 수 싶습니다.
아니요는 this입니다. 오른쪽 창에지도를 표시하고 싶습니다.
가능한가요?
는 "ListView에의 왼쪽에 보이는"무엇을 의미합니까? 'android : layout_gravity = "left"가'ListView'에 있습니다. –
죄송합니다. ListView 권한이 있습니다. – sogasg
http://stackoverflow.com/questions/17074872/android-slidingpanelayout-main-view-is-hidden/17075245#17075245 –