2015-01-07 11 views
4

그래서 Umano의 AndroidSlidingUpPanel 라이브러리를 사용하기 시작했으며 매우 유용합니다. 나는 아주 잘 작동 한 바닥에서 하나의 슬라이딩 패널을 구현할 수있었습니다. 그러나 나는 두 개의 슬라이딩 패널 이와 같은 (상단과 하단)를 구현하고자하는 것은 :Android : Umano AndroidSlidingUpPanel 두 개의 패널 슬라이딩?

enter image description here

이것은 내가 지금까지 무엇을 가지고 :

<?xml version="1.0" encoding="utf-8"?> 
<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:background="#ECECEC" 
    android:gravity="bottom" 
    android:orientation="vertical" 
    sothree:panelHeight="68dp" 
    sothree:shadowHeight="4dp" > 

    <LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:orientation="vertical" > 

     <LinearLayout 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:layout_marginLeft="@dimen/feed_item_margin" 
      android:layout_marginRight="@dimen/feed_item_margin" 
      android:background="@drawable/bg_card" 
      android:orientation="vertical" 
      android:paddingBottom="@dimen/feed_item_padding_top_bottom" 
      android:paddingTop="@dimen/feed_item_padding_top_bottom" > 

      <com.krish.horizontalscrollview.CenterLockHorizontalScrollview 
       android:id="@+id/picture_scroll" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" > 

       <LinearLayout 
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:orientation="horizontal" > 
       </LinearLayout> 
      </com.krish.horizontalscrollview.CenterLockHorizontalScrollview> 

      <TextView 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:text="Hi" 
       android:textSize="16sp" /> 
     </LinearLayout> 
    </LinearLayout> 

    <TextView 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:gravity="center|top" 
     android:text="The Awesome Sliding Up Panel" 
     android:textSize="16sp" /> 

</com.sothree.slidinguppanel.SlidingUpPanelLayout><LinearLayout> 

나는 두 개의 슬라이딩 패널을 추가하려면 어떻게 전망? :)

+0

당신이 어떤 해결책을 찾을 수 있습니까 알려 주시기 바랍니다 –

답변

0

시도는 매개 변수

com.krish.horizontalscrollview.CenterLockHorizontalScrollview의 rotation = "180"을 설정