java - Android:Umano AndroidSlidingUpPanel 滑动两个面板?

标签 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>

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

最佳答案

尝试设置参数rotation = "180"

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

关于java - Android:Umano AndroidSlidingUpPanel 滑动两个面板?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27823186/

相关文章:

java - bundle 对处于已解决状态的 bundle 的依赖关系

读取套接字时Java中断线程

android - 如何使 MVRX View 模型与 dagger2 一起工作?

java - 单击按钮后在弹出窗口中显示图像 - Android/Java

java - eclipse : Running tests when you're thinking

eclipse - 创建企业应用程序项目时无法将模块添加到 Java EE 企业应用程序 - nullPointer

java - poi-ooxml-schemas-3.14 JAR 中缺少 STSheetViewType 类

java - 如何查找哪个 java bean 属性具有已知注释

java - 是否有理由不使用 BufferedReader 包装 InputStreamReader?

java - 如何保存 fragment 的状态