在android中实现滑动功能的正确方法是什么?因为android.widget.SlidingDrawer android中的类已经被弃用了什么是替代?请帮忙..谢谢
你好朋友我想在android中实现滑动菜单我喜欢IOS 7下面是在IOS中如何实现的URL。
https://raw2.github.com/romaonthego/RESideMenu/master/Demo.gif
要查看完整动画,请访问上面的 URL。
我想在android中实现相同的。
为了实现这一点,我的策略是采用框架布局并同时使用缩放和平移动画。
如果有人已经实现了这种类型的视图或对此有一些想法,请分享。
所以我开始使用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>
Run Code Online (Sandbox Code Playgroud)
如何向视图添加两个滑动面板?:)
我正在尝试使用现有项目中的滑动菜单,其中使用了操作栏Sherlock.但我无法做到这一点.如果你能给我一个简单的演示或教程来告诉我如何这样做,那会很棒吗?我们是否必须使用片段进行滑动菜单?
更新:
当用户单击"滑动菜单"列表中的项目时,如何更改"活动"?
有演示吗?请帮忙.
我只想创建一个动作栏作为foursquare应用程序. 
我想按下主页按钮时显示一个滑出菜单,就像显示的图像一样.
我可以创建自定义操作栏但不像第一个图像.请提供有助于创建操作栏的任何教程
我正在探索https://github.com/umano/AndroidSlidingUpPanel库.当我滑动底部面板时,在幻灯片上完成它会获得完整的屏幕区域.
任何人都可以帮助我,如何将底部面板停在一定高度,例如将其滑到屏幕中间?
我在用 :
https://github.com/iPaulPro/SlidingMenu
库像滑动菜单一样实现Facebook,以及ActionBarSherlock库.
在我的例子中,BehindContentView是一个ListFragment.
1.单击图像以获取后视图(调用toggle();).
2. onListItemClicked转到Activity_2,显示单击项目的文本.
3.在此Activity_2中,当我单击设备后退按钮时,我得到主Activity_1但后面的View是打开的.通常在Facebook或Google+中的行为是,当您从任何其他活动返回到Activity_1时,隐藏了后视图.
4.此外,即使在拥有这些线之后,在Activity_2上,主页似乎不起作用(当我点击主页按钮时没有任何反应).
ActionBar bar = this.getSupportActionBar();
bar.setDisplayHomeAsUpEnabled(true);
bar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE);
bar.setHomeButtonEnabled(true);
Run Code Online (Sandbox Code Playgroud)
如何解决第3步和第4步?
谢谢
任何人都可以帮我创建滑动菜单项目的jar文件.https://github.com/jfeinstein10/SlidingMenu?如果我添加创建的jar文件然后我得到异常java.lang.NoClassDefFoundError:com.slidingmenu.lib.R $ styleable.我不想将整个项目添加为依赖项,但需要添加jar.
我正在使用SlidingUpPanel.一切都很好.:)我想要实现的是将图像中面板的背景颜色更改为透明,以便显示其后面的图像部分.我尝试将SLidingPaneLayout的背景颜色设置为透明,但它不起作用.当我将颜色更改为红色等其他颜色时,它会显示红色但不会发生透明相同的颜色.
我也尝试将窗口背景设置为透明,但它留下了黑色背景.
Window window = this.getWindow();
window.setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
Run Code Online (Sandbox Code Playgroud)
请帮忙.

<?xml version="1.0" encoding="utf-8"?>
<com.app.custom.SlidingUpPanelLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:blurView="http://schemas.android.com/tools"
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:umanoDragView="@+id/dragView"
sothree:umanoPanelHeight="110dp"
sothree:umanoParalaxOffset="0dp"
sothree:umanoShadowHeight="0dp">
<!-- MAIN CONTENT -->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/imgProfileLarge"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@null"
android:scaleType="centerCrop"
android:src="@drawable/profile" />
<RelativeLayout
android:id="@+id/layoutDetails"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="gone">
<com.app.custom.UnscrollableViewPager
android:id="@+id/facesPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true" />
<com.app.custom.CirclePageIndicator
android:id="@+id/indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerInParent="true"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
android:padding="10dp" />
</RelativeLayout>
</FrameLayout>
<!-- SLIDING LAYOUT -->
<com.app.custom.FrameLayoutWithBluredBackground
android:id="@+id/dragView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="false"
blurView:blurRadius="20">
<ViewFlipper
android:id="@+id/mViewFlipper"
android:layout_width="match_parent" …Run Code Online (Sandbox Code Playgroud) android android-layout android-sliding slidingmenu android-background