Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 带水平滚动条的底部导航抽屉_Android_Navigation Drawer_Horizontalscrollview - Fatal编程技术网

Android 带水平滚动条的底部导航抽屉

Android 带水平滚动条的底部导航抽屉,android,navigation-drawer,horizontalscrollview,Android,Navigation Drawer,Horizontalscrollview,我试图实现一个菜单,我想在屏幕的底部外面。当我从屏幕底部边缘向上滑动时,我希望它出现在那里。 此外,我想要一个水平滚动视图。实际上,它应该像侧面的导航抽屉一样工作 这是我已经尝试过的布局。我使用了umano AndroidLidingPanel: <com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto" xmlns:android="htt

我试图实现一个菜单,我想在屏幕的底部外面。当我从屏幕底部边缘向上滑动时,我希望它出现在那里。 此外,我想要一个
水平滚动视图
。实际上,它应该像侧面的导航抽屉一样工作

这是我已经尝试过的布局。我使用了umano AndroidLidingPanel:

<com.sothree.slidinguppanel.SlidingUpPanelLayout
xmlns:sothree="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
sothree:panelHeight="200dp"
sothree:shadowHeight="4dp"
sothree:overlay="true">

<TextView
    android:text="Hier wird das pdf gezeigt"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"/>


    <HorizontalScrollView
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:id="@+id/file_scroll_view"
        >
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:id="@+id/file_scroll_view_linear_layout"
            android:orientation="horizontal">
        </LinearLayout>
    </HorizontalScrollView>

这张幻灯片很有效,但我不知道 我不知道如何把它放在屏幕外面,如何让它只向上滑动,直到它与底部边缘对齐

此外,我希望
滚动视图
正常工作。在我尝试使用
SldingUpPanel
之前,它很有魅力,但现在它无法滚动


有人有什么想法或提示来解决这个问题吗?

为了不被发现,你必须:

slidePanel.setPanelHeight(0); // I couldn't find anything on XML for that
让它中途停下来:

slidePanel.expandPane(0.1f); // for example for 10% of screen.

这里有一个图书馆:这是我用过的;)而且它不能按我需要的方式工作。我不想在菜单被拖入之前看到它的任何内容,我不想让它一直向上滑动,而是停留在屏幕的底部……好的,slidePanel是布局中的第二个元素吗,那么我的水平滚动视图呢?