Custom pop up or spinner for android - android

i found a design in IOS that i really like but i cant figure out how to do it in android i have tried doing a custom spinner and am having a hard time with it and i thought of using a pop up but i need to be able to put clickable button in the pop up, so i think a spinner is my best change. I am going to post a picture of what i am trying to accomplish, specifically on the little half box on the top of the drop down! Thanks would really Appreciate some help thanks!!!! ![enter image description here][1] Also i have seen this in Android as well so i know it can be done. http://i.imgur.com/L1ftrSU.png

It's action you showed in your image is called QuickAction, there are many tutorials on how to create one:
Try the NewQuickAction lib, it has a number of modes, and one of them will give you exactly the same layout as your sample image. Here's a quick tutorial for using the library. Have used this lib for 2 years and worked quite well.
This tutorial offers another method to accomplish the same thing, worth checking out as well.

You can use OptionMenu. Refer to this link!

Related

Another activity comes up and covers half the screen size

I have a button which on clicking opens another activity which comes up from below and covers half the screen. I searched about it but did not get any useful approach except the overridePendingTransition function which is useful in getting the animation on activity transition, but this didn't solve my problem. I know this is done in google hangout as shown in the images but can't find any useful solution.
When we press the button this activity comes up and covers half the screen size
when we scroll up the activity becomes our main activity
Any idea how this can be done?
Thanks
you can use bottom sheet for this type of UI.
here is first sample.
another sample
here is code
After some searching i got exactly what i wanted with all the codes, but still the profile picture animation is remaining, rest the SlidingPanelLayout code can be seen here . It contains some detailed information with all the classes implemented which you can use directly. I think this will surely help you. :D
Edit: As said by #MrsEd i would like to add some code that helped me. This is the custom built DraggableLayout which you can use directly, the code can be found here. Then the activity must implement the onStopVerticalDragDown() of the DraggableLayoutCallbackListener inteface and set the content view as this xml file.
Hope this clears all the doubt and makes it easier for anyone to implement their own custom built DraggableLayout without using any third party library. :D
Please. Don't redo this.
And instead, use Flipboard's BottomSheet.

Show Android Spinner as a Drop Down?

Is there any way to actually show the Spinner as a Drop Down the way it is shown here:
http://developer.android.com/guide/topics/ui/controls/spinner.html
I can only get the default modal dialog that's centered over the entire screen.
Using API 8, and my implementation is essentially the same as what is shown in the above link.
I recommend learning the QuickActionWidget and extending it to do this job, here's a similar question asked on StackOverflow, i think the answer there is what you need. You might need to do some editing to the code and design, but the basic idea is the same.

Android Wheel concept

I am developing an application in android. I have an Activity where I have a couple of buttons. Among them when I click on one button, I want to get dropdown like iPhone default picker.
To achieve that, I am using Android wheel concept. I have implemented like this, when I click on the button, it is calling another activity where my required custom layout is shown. Problem is custom layout should come from bottom of the screen in the same activity where the button I am clicking exists.
I have attached a screenshot. I want to achieve as shown in the screenshot (missing).
Please help me providing the required solution. Pardon me if there any mistakes in my question. This is the first time to ask a question.
Since the lack of a screenshot that helps to understand your issue, this is more some kind of guess: Are you known to the concept of Spinners in Android? They provide a dropdown mechanism and are easily implemented.

Android 1.6 like slider

I need a little help with something that I want to achieve. A want to implement this kind of view in my application :
like the button at the bottom of the page, and when user touch it, it's slide above and show other content. I'm pretty sure that I've found examples like that before, but now when I needed I couldn't find anything similar.
Any ideas what should I look for or even better if you can show me a link to a similar example I will appreciate that!
Thanks in advance!
check this
http://techdroid.kbeanie.com/2009/08/android-sliding-drawer-example.html

How to implement this Android layout?

At the top there is the favorites/styles/all channels
i don't know what that widget/control is i need to know what it is
i am certain i saw it before i just can't seem to find it again.
then there is a listview which is easy to implement no help needed there
then the same control again, i need to know how to build it.
it looks like a native Android control, i know how i can make one just like it using image buttons but i am sure i am missing something.
P.S. this is an image from sky.fm app on android
EDIT: I Do no need help with the ListView i already did that
What i do need help with is how to make the "favorites/styles/all channels" buttons if there is a way to do natively.
If there isn't a way to do natively, and you are sure just say there isn't a way to do natively ( that would be a good answer )
the perfect answer would be a working code, but i am not lazy i am already implementing the code my self
There's no native control for this. It's probably a Button or maybe ToggleButton. You could create a background xml with different states for selected true or false. And when you click the button toggle the selected state.
Top might be a custom tab layout, or just a bunch of buttons with custom styling.
Main part looks like a listview with complex row views.
Bottom almost definately is a bunch of buttons.
You can implement it using ClickableListAdapter.There is also tab implementation.try it.
Just make it using image buttons and put filters in your ListView, or create your own filter form scratch !

Categories

Resources