How to implement view/interface like this in android? - android

If i click on(+Add to group)Button then alert/Dialog like view should visible. How to implement view like this in android??

It could be simply implemented using android-popupwindow.
Examples:
http://mrbool.com/how-to-implement-popup-window-in-android/28285
Is there a simple example of the PopupWindow class using Android v2.0?
Basic Steps:
Create a layout in XML for the menu.
Inflate that layout and apply to the PopupWindow.
Acquire a reference to that button. (i.e. Add to Groups);
Find its absolute coordination on the window.
Use showAtLocation to show the menu in the appropriate location.
Note: AFAIK, there's a bunch of libraries out there which fit your requirements. So, don't reinvent the wheel.

It's doable. You have to manually create a custom layout that automatically gets dismissed after pressing the action item.
Here is a small android library to create the QuickAction dialog style:
QuickAction Library
For more info, read this article.

Related

how can i implement a filter view like this?

I thought that it's possibile within a fragment, but I'm young android developer and I will know which is the best way to implement it. Thanks a lot!
In Android you do it with an AlertDialog.
You'll want to implement one with a custom layout matching your picture.
An excerpt from the guide:
If you want a custom layout in a dialog, create a layout and add it to an AlertDialog by calling setView() on your AlertDialog.Builder object.
A quick search of Android material dialog with a custom view should give you a solution
Many libraries exist in gitub. Its just a mater of searching

How can I implement options menu inside a layout like in Google Play

I would like to know how to effectively and efficiently implement options menu inside a layout like the one used in Google Play market (Such the one in the image bellow)
see this link
Creating a floating context menu part
I think you should create a PopMenu which displays on Click event.
Here is a good tutorial: Creating a Popup Menu in Android.
See the developer guide.

Android: custom a menu create

I don't know which type of this menu. can anyone help me.
I want to create menu like this screen. When i click the button then pop-up the menu like this. I don't know how to achieve this. i do not know what type of this menu. and can it run on android 2.2?
Current popup menu called QuickAction Dialog in Android. you can customize it According to you need. see following good tutorial for creating QuickAction View in Android:
How to Create QuickAction Dialog in Android
Quick Actions Android
This is Quick Action 3d. Checkout source and example from here :)
This is not exactly a custom dialog. But, yes it is still a customized view. And it is more or less called Quick Action Dialog in android. I would suggest you to follow the tutorials below for generating an exactly same popover (or even better) with Android. Check the screenshot also.
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
https://github.com/lorensiuswlt/NewQuickAction3D
Reference

Android PopUp ListView

I want to implement in my android application a functionality like when a user clicks a button in header a small list view is popup having 5 values in the corner of the screen. Please give some suggestion, its urgent. Thanks in advance.
You mean a quick action menu ? Like this ?
If so, check this :
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
It depends somewhat on the minimum SDK that you are targeting. If you are able to write your application with a minimum target of Android 3.0 (API Level 11), then there are at least two classes that you can use to accomplish creating a simple popup anchored to another view (in this case, your button):
ListPopupWindow
PopupMenu
Otherwise, you will need to do a little customization of PopupWindow, which is the class that many early QuickAction implementations are based on.
HTH
Design a listview inside it RelativeLayout view in that same layout and make it as invisible. once you click a button at the header you can make it visible. which shows the listview.
You can create a new Activity for popup and add android:theme="#android:style/Theme.Translucent.NoTitleBar" to Activity node in Manifest file.

How to set a layout using spinner

I want to create a layout like the below picture. How can I set the drop-down like this with cancel option. I am using spinner to show the drop-down but cannot set the layout like this.
Can anyone help me to create a drop-down like this. I also want to create an expand button for a list item which will open the content in a new page. My aim is to set all the available settings in a single page.
Then use PreferenceActivity. In fact, that's a standard preference screen.
http://developer.android.com/reference/android/preference/PreferenceScreen.html
http://jetpad.org/2011/01/creating-a-preference-activity-in-android/
You can take a look at the API Demo app which is in the Android SDK. There you can learn how to create this kind of screens (either from XML or code). It has many advantages... for instance, you won't have to worry about persisting the settings... the OS will do that for you.

Categories

Resources