【发布时间】:2014-08-15 12:38:02
【问题描述】:
我使用 AndroidSlidingPanel 库“https://github.com/umano/AndroidSlidingUpPanel”创建了一个演示应用程序,并以文本视图作为子项。问题是当我试图点击标签面板向下滑动时,我无法点击标签。
<com.sothree.slidinguppanel.SlidingUpPanelLayout
xmlns:sothree="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
sothree:panelHeight="68dp"
sothree:shadowHeight="4dp">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="Main Content"
android:textSize="16sp" />
<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"
android:onClick="ClickedOnLabel"
android:clickable="true"/>
我遇到过类似的帖子“Can't click children button in SlidingUpPanelLayout”但不明白 setdragview 是什么?它的作用是什么?
谁能说明应该怎么做?
【问题讨论】:
-
谁能帮我解决这个问题:)
标签: android android-layout android-activity android-fragments slidingpanelayout