How can I create this custom pop-up message in Android activity? - android

I am tasked with creating this kind of pop-up message for an app. I attached an image bellow with the design,
Note that the pop-up is placed right bellow a certain ImageButton to indicate something about it. The pop-up must also contain an ImageView, a TextView and two Buttons.
I know that the Alert Dialog native for Android opens a Dialog Popup at the center of the screen that has a rectangular shape and also makes the background behind it darker. But I want to create something that matches this design exactly and right now I have no idea how.
Can anyone show me how to do this, if necessary, even a library would help. All that matters is that the solution has to work on any Android OS equal or higher than v6.0 (Marshmallow).
Thank You!

Below popup library will help
https://android-arsenal.com/details/1/2927
you can inflate your custom View into this library

Related

custom pop up menu like this image

How can i make a custom pop up menu something like this in android ! Iam developing a reader application , suggest me something !
Check this out please :
http://cdn.makeuseof.com/wp-content/uploads/2011/08/image158.png?56dd13
Something same like this ! in android Play Books App also we have the same thing , i want to develop this in android , how can i make it and i want that in my action bar .
I think it may help you, create simple layout xml having same view as per your requirement and and use these Activity Theme as Dialog so it appears just you want.
But Please make sure you make it's Layout width and height as wrap_content not match_content or fill_content.

How would you implement this tutorial screen in Android app?

I saw this when I first started and opened my emulator and wanted to include something like in my application.
Does anyone know how you implement this tutorial? Do you basically have a layout file with a TextView, ImageView, and a Button? And inflate it with some kind of dialog fragment? Is there a way to account for the transparency as well?
I experimented with a dialog fragment but mine looks nothing like the screenshot above. (no transparency, position at center, etc...)
I have never used it so I can not give you a code example. However it is documented in the Help Section of the developer documentation.
This library can help you too.

How to support popup menu in Android 2.1 version?

i am working on demo application.
have you any idea about popup menu in Android 2.1 version. actually working fine in android api level 11 and above..
reference url : http://www.sitepoint.com/build-intuitive-extensible-menus-in-android-with-java-and-xml-2/
yes, you can do this. you just need a little bit of Animation and its done. :) It will give the exact feeling like a pop-up menu. I have done this before.
you need to use Relative layout for this purpose, because they can overlap on each other.
On click event of button, you need to show the View (relative layout holding a custom menu in this case) with an animation say bounce animation. again click on same button will hide the view again with an animation.
I wish I could post the code here but I have to search where I put my project. :P ;)
I hope it will give a little idea about a totally customized pop-up menu.

What view to use for such feature?

ALL,
I am trying to port the application from iOS to Android.
In iOS there is a view at the bottom of the screen which holds couple of buttons and it looks like a status bar. One button is implemented as notification button (something like icon in SMS-like applications where you see number in the upper right corner of the icon) and the others are just regular buttons.
This view is always on screen and it looks like a notification area.
Now on Android, how do I implement such a view? Go to each layout.xml and add it there? Can ViewGroup be used for such a view?
Need some guidance here.
Thank you.
[EDIT]
As some people asked here is what I'd like to have.
If you look at the Android phone after boot up (I have an HTC one) there is a grey area at the bottom of the screen. In the middle there is a big button, which says "Phone" and there are 2 smaller buttons - one which directs you to the applications installed and the other is for Personalization of the device.
What we want is something like this with much smaller button images.
[/EDIT]
Tabs on Android are placed at the top of the screen; not at the bottom:
Please carefully read this page: http://developer.android.com/design/patterns/pure-android.html and http://developer.android.com/design/patterns/actionbar.html
You could of course use a custom View, but developing will be a nightmare.
The contents of tabs can be achieved using ViewPager and Fragments: http://developer.android.com/reference/android/support/v4/view/ViewPager.html
While the indicators can be achieved with PagerTabStrips
http://developer.android.com/reference/android/support/v4/view/PagerTabStrip.html
I'm not sure what exactly the view is you are talking about without an image but you can create this layout in its own xml file then you simply use an <include> tag in each xml file. Once you get the properties how you want them it is simply copy/paste into each file, for the most part
I do this in my layouts. I extend from a BaseActivity or BaseListActivityandincludea customActionBar` so I can have the look and functionality I need throughout the whole app.
Reu-using Layouts

Android Dropdown List (iPhone style)

Could anyone tell me either what this widget is or how it could be recreated? I'm having to port over a iPhone app, and my boss wants me to make it look as similar as possible, but while using android controls. Here is a picture of it in Android:
http://cdn3.staztic.com/screenshots/android-swim-32-2.jpg
Thanks!
It is not a standard thing, but for this purpose, there is a: QuickAction dialog.
this can be done with a PopupWindow (it can also be shown as dropdown) where the background is a custom nine-patch file and the content is a listview (or any other view that fits your needs).
I'm sure that GreenDroid Library can do this but I don't know the name of the class to use

Categories

Resources