2016-12-14 78 views
0

我使用滑动通过unmano面板布局,但我想滑动面板向上滑动到一定的高度不超过Unmano滑动面板布局设置最大滑行高度

,这里是我的xml

<com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto" 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/sliding_layout" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:gravity="bottom" 
sothree:umanoPanelHeight="120dp" 
sothree:umanoShadowHeight="4dp"> 
<fragment 
    android:id="@+id/map" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    class="com.google.android.gms.maps.SupportMapFragment" /> 
<RelativeLayout 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
<ListView 
    android:id="@+id/list2" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:divider="@color/list_divider" 
    android:dividerHeight="1dp" 
    android:listSelector="@drawable/list_row_selector" /></RelativeLayout> 

试图改变layout_height但没有任何变化

回答

0

你有没有尝试设置sothree:umanoParallaxOffset