2017-06-14 13 views
0

includeを経由してビューをSlidingPaneLayoutの上に配置したいとします。 AndroídStudioのレイアウトプレビューでは正しく表示されますが、デバイス上では表示されません - なぜですか?ここでSlidingPaneLayoutの上にビューを配置する際の問題

は完全なレイアウトファイルです:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 


<include layout="@layout/online_state" 
    android:layout_height="5dp" 
    android:layout_width="wrap_content"/> 

<android.support.v4.widget.SlidingPaneLayout 
    android:id="@+id/content_view_spl" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" > 



    <LinearLayout 
     xmlns:android="http://schemas.android.com/apk/res/android" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:background="?attr/color_background_primary" 
     android:orientation="vertical" > 

     <de.timroes.android.listview.EnhancedListView 
      android:id="@+id/list" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:background="?attr/color_background_primary" 
      android:divider="@color/black" 
      android:dividerHeight="1dp" /> 
    </LinearLayout> 

    <LinearLayout 
     android:id="@+id/selected_item" 
     android:layout_width="fill_parent" 
     android:layout_height="match_parent" 
     android:layout_weight="1" 
     android:orientation="vertical" > 
    </LinearLayout> 

</android.support.v4.widget.SlidingPaneLayout> 

答えて

0

[OK]を、申し訳ありません...私は...ビューの下 愚かな質問をSlidingPaneLayoutを配置する必要が ...それを得ました。 )

関連する問題