【问题标题】:Problems placing view on top of SlidingPaneLayout在 SlidingPaneLayout 上放置视图时出现问题
【发布时间】:2017-06-14 09:24:40
【问题描述】:

我想通过includeSlidingPaneLayout 上放置一个视图。在 Androíd Studio 的布局预览中,它可以正确显示,但在我的设备上,视图不会显示 - 为什么?

这是完整的布局文件:

<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>

【问题讨论】:

    标签: android android-layout slidingpanelayout


    【解决方案1】:

    好的,明白了…… 我必须将 SlidingPaneLayout 放在视图下方... 愚蠢的问题......对不起;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-11
      • 2021-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-04
      • 1970-01-01
      相关资源
      最近更新 更多