gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:25:18 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com