slidingdrawer

SlidingDrawer deprecated

岁酱吖の 提交于 2019-12-01 02:13:09
I just noticed that since API 17 the SlidingDrawer it's been deprecated. the comment on it says: This class was deprecated in API level 17. This class is not supported anymore. It is recommended you base your own implementation on the source code for the Android Open Source Project if you must use it in your application. does this mean I should import the code into my project to be sure that it will be supported in the future? are there already some open-source project that extends the slidingDrawer out there? does this mean I should import the code into my project to be sure that it will be

SlidingDrawer animation velocity

江枫思渺然 提交于 2019-11-30 23:21:00
I'm new to Android programming and to stack overflow, and I need to slow down the animation speed of a SlidingDrawer in my app. I've already subclassed SlidingDrawer like this: import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.SlidingDrawer; public class WrappingSlidingDrawer extends SlidingDrawer { public WrappingSlidingDrawer(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); int orientation = attrs.getAttributeIntValue("android", "orientation", ORIENTATION_VERTICAL); mTopOffset = attrs

SlidingDrawer deprecated

坚强是说给别人听的谎言 提交于 2019-11-30 22:28:21
问题 I just noticed that since API 17 the SlidingDrawer it's been deprecated. the comment on it says: This class was deprecated in API level 17. This class is not supported anymore. It is recommended you base your own implementation on the source code for the Android Open Source Project if you must use it in your application. does this mean I should import the code into my project to be sure that it will be supported in the future? are there already some open-source project that extends the

Sliding menu locks touch event on upper view

 ̄綄美尐妖づ 提交于 2019-11-30 09:09:14
I'm trying to use Sliding Menu in my application. On my Sony Xperia S it works very nice, but when I try to launch app on HTC Desire HD, menu opens perfect by gesture, but other touch events are blocked and top view ( ViewPager , sliding menu is behind it) is not scrolling. Does anybody know how to fix this? May be it will be helpful to give an answer (This is how I'm using menu): private void initSlidingMenu() { mSlidingMenu = new SlidingMenu(getApplicationContext()); mSlidingMenu.setMode(SlidingMenu.LEFT); mSlidingMenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN); mSlidingMenu

How can I disable a view behind my SlidingDrawer in Android?

风格不统一 提交于 2019-11-29 16:58:35
问题 I have a SlidingDrawer that pops up from the bottom of the screen and fills the screen about 80%. Even though the SlidingDrawer view is in focus, it is still possible to click on items, buttons and other elements in the view that is behind the SlidingDrawer. When SlidingDrawer is active/pulled up/in focus, I want to disable the entire view behind it so it will not be able to recieve clicks and touches. Is there a good way to disable an entire view? I have tried setEnable(false) and

Android SlidingDrawer doesn't disable buttons 'under' the drawer

痞子三分冷 提交于 2019-11-29 16:41:10
问题 This is the scenario: I have a button B, and a slidingdrawer that when pulled out covers the entire screen. When I pull out the screen, and touch the screen where B used to be visible, its action is still executed. How can I get around this? I found this thread describing the very same problem, but no answer was accepted and the ones given I didn't manage to get working. UPDATE: I have a file named Report.java, with a corresponding report.xml file as seen below. <SlidingDrawer android:id="@

Sliding menu locks touch event on upper view

半世苍凉 提交于 2019-11-29 13:46:02
问题 I'm trying to use Sliding Menu in my application. On my Sony Xperia S it works very nice, but when I try to launch app on HTC Desire HD, menu opens perfect by gesture, but other touch events are blocked and top view ( ViewPager , sliding menu is behind it) is not scrolling. Does anybody know how to fix this? May be it will be helpful to give an answer (This is how I'm using menu): private void initSlidingMenu() { mSlidingMenu = new SlidingMenu(getApplicationContext()); mSlidingMenu.setMode

Android Sliding Up View

不问归期 提交于 2019-11-29 07:54:42
I need to do a Sliding Up View wich should slide up from the bottom of the screen when I click a button. It has to show on the bottom of the screen and I need to slide/drag it to the center of the screen. The images below explain it better. almost like the AndroidSlidingUpPanel from "umano" which you can find here : The problem is that I want the first child (The content of my View - an image for example) to fill all the screen and also I want the second child(the actual bottom bar) to be showed when I click a button. The images below explain it better. If there is not possible to do this by

Android Navigation view: Scroll the menu items only issue

余生颓废 提交于 2019-11-29 04:49:15
I want to scroll only the menu items of the navigation view but it also scroll the header with it. Please any body tell me how to achieve this... Here is my code: activity_main.xml <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" ....... <android.support.design.widget.NavigationView android:id="@+id/navigation_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" app:headerLayout="@layout/header" app:menu="@menu/drawer" /> </android.support.v4.widget.DrawerLayout> header.xml <?xml version=

Android Sliding Up View

泄露秘密 提交于 2019-11-28 01:30:45
问题 I need to do a Sliding Up View wich should slide up from the bottom of the screen when I click a button. It has to show on the bottom of the screen and I need to slide/drag it to the center of the screen. The images below explain it better. almost like the AndroidSlidingUpPanel from "umano" which you can find here: The problem is that I want the first child (The content of my View - an image for example) to fill all the screen and also I want the second child(the actual bottom bar) to be