【问题标题】:Android: Umano AndroidSlidingUpPanel Sliding two Panels?Android:Umano AndroidSlidingUpPanel 滑动两个面板?
【发布时间】:2015-03-05 13:37:36
【问题描述】:

所以我开始使用 Umano 的 AndroidSlidingUpPanel 库,它非常有用。我设法从底部实现了一个滑动面板,效果很好。但是我想实现两个滑动面板(顶部和底部),例如:

这是我目前所拥有的:

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

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

【问题讨论】:

标签: java android eclipse slidingmenu android-sliding


【解决方案1】:

尝试设置参数rotation = "180"

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多