Android:Umano AndroidSlidingUpPanel滑动两个面板?

时间:2015-01-07 15:47:44

标签: java android eclipse slidingmenu android-sliding

所以我开始使用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>

如何向视图添加两个滑动面板? :)

1 个答案:

答案 0 :(得分:0)

尝试设置

的参数rotation = "180"

com.krish.horizo​​ntalscrollview.CenterLockHorizo​​ntalScrollview