Android :: Sliding Drawer From Top In App?
Feb 11, 2010I'm trying to get a sliding drawer to pull down from the top in my application, but I can't figure out a way to do it. Any help?
View 1 RepliesI'm trying to get a sliding drawer to pull down from the top in my application, but I can't figure out a way to do it. Any help?
View 1 RepliesI want to create a slider in this way....
< button1 button2 button3 >
Is it possible.
I have a bit of a problem with a SlidingDrawer that I created and that should go over my VideoView. When the activity is opened for the first time you can see the slider above the video and when you tap it, it slides open. However, as soon as you close the slider it seems to disappear underneath the VideoView and is not visible anymore. It is still there and when you tap the location where the handle is located the slidingDrawer reappears, but I would rather prefer if it wasn't hiding all the time ;) If anyone knows what I can do about that and help me out, that would be really fantastic because I have been trying for hours now and I have no idea what I should do. I also haven't found a similar issue or a solution for that.
This here is the xml code for the videoview and the slidingDrawer:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="@drawable/shape_background_gradient" >
<VideoView android:layout_width="240px" android:layout_height="180px"
android:id ="@+id/VideoViewEdit" android:layout_centerHorizontal="true" >
</VideoView> <ScrollView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_below="@id/VideoViewEdit">
<TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="0"> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_videotrack"
android:padding="5px" android:layout_gravity="left"/>
</TableRow> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_audiotrack"
android:padding="5px" android:layout_gravity="left"/>
</TableRow> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_add_media"
android:padding="5px" android:layout_gravity="left" />
</TableRow> </TableLayout> </ScrollView> <SlidingDrawer android:id="@+id/drawer"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:handle="@+id/handle"
android:content="@+id/content"> <ImageView android:id="@id/handle"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/slider_handle" />
<LinearLayout android:id="@id/content" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<ImageButton android:id="@+id/button_exposure" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_properties"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:background="#77000000" android:src="@drawable/ic_slider_properties"
android:padding="5px" android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_special_effects" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_special_effects" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_test" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_test2" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
</LinearLayout> <ViewStub android:id="@+id/stub" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="#77000000">
</ViewStub> </SlidingDrawer> </RelativeLayout>
I'm trying to create a sliding drawer in code, but I don't understand what to do for the AttributeSet part of the constructor.
What do I need to do for that?
Also, how do I define in code where the slider is going to show up?
I require a sliding drawer in my application.
It should be placed at the bottom of the page.
It has to contain a set of images and I have to set a background color for the sliding drawer. I saw some sample codes...But I am not getting a clear idea on how to do it.
I have implemented "Sliding Drawer" in my application using the below XML layout code...
but what i am wanting is to Slide the drawer from Left-to-right(Horizontal) instead of this right-to-left, how do i make slide drawer to slide from left-to-right direction?
I've checked the WallpaperService.Engine class and don't see anything.What's the best practice for detecting home screen sliding?
View 3 Replies View RelatedI'm interested in using it for one of my apps and I was wondering how I can use one of them.
Are there any other similar widgets out there for 2.0+?
I want to port my application on all android devices, and I want to have the right/left animation on the activities transition on all android platform versions. I know that this feature is implemented in the 2.0 version. How can I implement this feature for the lower versions?
View 1 Replies View RelatedI am running out of room on my application for buttons, so I want to stick them into some sort of sliding container, like the one at the top of the Astro File Manager application. How do I go about doing this?
View 1 Replies View RelatedI am new to android development. I wanted to make a button on one of my activities that I can drag to slide my current activity page to the next activity page. The button will be in the center of the screen and I want to be able to press and drag it horizontally to one end of the screen while I am dragging my button I can see my current activity page moving. It is actually like when one slides on the home screen and can control the sliding depending on how far he slides his finger on the screen.
View 6 Replies View RelatedWhat I want to carry out is that the handle of the SlidingDrawer will be dragged by my finger, and when My finger leaves the screen, the handle of the SlidingDrawer will be just stop there and don't slide to top or bottom.
View 6 Replies View RelatedThe footprints and clock app on a HTC sense phones use a slider control on the bottom buttonbar (see this movie for an example code...
From the hierarchy viewer I can see that they use a custom control for this. I'm looking for a way to achieve the same effect. I want a buttonbar on the bottom of my app with a movable selector which I can drag from left to right and back, thereby selecting the different tabs.
Can anyone give some tips on how I might achieve this? Which layout controls could I use for this purpose? I know how to create the tabs and the button bar, but I'm a bit puzzled on the sliding selector.
In my main view I have a window that users can slide up and down, here is a example SlidingDrawer
The user has to click or drag the sliding bar to reveal the window. now how is it possible to change the sliding bar image to show a hover effect?
I'm looking for some type of patch that would allow me to answer calls and enable speakerphone by just sliding out my keyboard on my Lg Ally. I do have some experience in coding, so if someone could point me in the right direction,
View 3 Replies View RelatedI'm currently developing an Android-app, in which I have already implemented an Slidingmenu (jfeinstein10's library). As above-views I have several activities I'd like to switch between with the menu-items in my Slidingmenu. For the most part, these activities consist of two fragments, a list and a content-view. In landscape-mode both are displayed, in portrait-mode only the list. Currently I'm switching between these activities with intents, which is not a very pretty "solution". How should I implement this?
View 1 Replies View RelatedHow to add items on sliding lockscreen?
Screenshot in attachments
I've bought myself an X10, and am loving it so far.
The only slight annoyance is that it tends to alter things in my pocket, and I have no idea how to change it. The first example was when I started texting, and the text came up in Japanese, even though the keyboard was in English (This is through Handscent SMS). I have since fixed the problem, and now find it quite funny turning it back on and annoying friends with symbols that they can't make out at all.
My current problem is that the unlocking bar, instead of needing to be swiped from the bottom left up and to the right, has moved to the bottom right, needing to be swiped up and to the left. This feels un-natural, and really needs to be changed back. I've been browsing this site for an answer but can't seem to find one, although I'm sure somebody here will be able to help me out!
while on a call and using speaker how do i wake the phone up without sliding out keyboard?
View 1 Replies View RelatedMy fingers always seem to get caught or hung up on the screen when I am scrolling or touching the Eris's screen, especially when I am using Swype. Has anyone else run into this and if so what do you do to fix this?
View 25 Replies View RelatedI realized yesterday that I'm killing my battery life by having my Droid sliding open while in my pocket. I never really paid attention to it, the sliding open never really bothered me, until I realized that basically my phone was sliding open, coming on, then closing, then opening again. Does anyone use a case that keeps it from opening?
View 8 Replies View RelatedWhile on a call and using speaker how do i wake the phone up without sliding out keyboard ? keybeeetsss ~ i thought i found the answer and it was a dumb question but looking back its not because i didn't find answer.
View 3 Replies View RelatedJust bought my wife her first Android phone, an original Droid (A855). Seems they're on sale everyhwere since the release of the X. Anyway, she absolutely HATES that Motoblur green side-pulling tab thing for answering a phone call. She just can't seem to get the hang of it. Is there some way to change that, or is there an app available that will change the interface and just give her a simple button to push for answering a call?
View 3 Replies View Relatedyup thats it, I get a call talk then when its time to hang up get a black/blank screen and will not work till i slide it open ... sometimes i have to take out the battery and reset it but not as often since the upgrade
View 13 Replies View RelatedMy keyboard is constantly sliding out when in my pocket or other times when I don't want it to. Really annoying. I like the phone but am not sold on the quality of it at all. I think I am taking it back and waiting for the passion.
Anyone else slide out keyboard getting loose?
I need to create an application with 4 view. I need to pass from a view to an other simply by a touch and a move to the left or to the right (no button). The effect I would like is the same that you see when you navigate in the main menu of android when you pass from a page to another.
I have tested the ViewFlipper, but I cannot use it: it seems not to catch the touch event correctly. I don't even know if it is the right component.
I am new here and i have just got my HTC desire. Its a great phone. When i clicked on the MUSIC button i noticed a few pre-loaded songs and i could move from one song to another by slidding my finger across the screen. When i downloaded my own songs(and deleted the pre-loaded ones) the phone just wouldn't move from one song to another by slidding my finger across the screen. And about the wifi. I use the POWER CONTROL widget. When i pressed the button for wifi, it started connecting and the green line under the button appeared and a few moments later(2 sec) also that sign on top of the screen. But i wanted to remove my google account so i had to use the option FACTORY DATA RESET. Now when i click that wifi button it starts connecting and that green line under the button appears, however now it takes 5 seconds or more for that sign on top of the screen to appear(before that sign appears i can't use my wifi connection).
View 12 Replies View Relatedis ther a possibility to configure my Xperia X2 to autorotate with out sliding the keyboard.
View 2 Replies View RelatedI am looking for a case that will prevent the keyboard from sliding out. I know I will more than likely not find what I am looking for because the slide out keyboard is a selling point for this phone, but mine keeps sliding out in my pocket and I am concerned that the open portion of the keyboard might bend, flex or crack if it is bent the wrong way. Maybe I am being paranoid, but it never hurts to be preventative
View 1 Replies View RelatedI don't use the physical keyboard and wondered if there is a protective case (either hardshell or rubberized) that keeps the keyboard from sliding out?
View 2 Replies View Related