AndroidSlidingUpPanel滑动50%的屏幕

时间:2017-07-04 20:52:30

标签: android

如何制作它以使androidSlideUpPanel here仅滑动到总屏幕高度的50%?

我尝试设置layout_weight = 1

<com.sothree.slidinguppanel.SlidingUpPanelLayout
    xmlns:sothree="http://schemas.android.com/apk/res-auto"
    android:id="@+id/sliding_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="bottom"
    sothree:umanoPanelHeight="68dp"
    sothree:umanoShadowHeight="4dp">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:text="Main Content"
        android:layout_weight="1"
        android:textSize="16sp" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center|top"
        android:text="The Awesome Sliding Up Panel"
        android:layout_weight="1"
        android:textSize="16sp" />
</com.sothree.slidinguppanel.SlidingUpPanelLayout>

但它似乎没有做到这一点?

0 个答案:

没有答案