Best method to have a popup menu in Android - android

I need help as I am a bit stuck.
I want to know what is the best method to implement for what I want in my app. I want the user to be able to click on an image in a page, and a popup menu appears. The user would have a selction of 5 items, and they would be able to click on one of them and the app would go to the selected menut item/page.
I have a popup Menu that works, but I am not able to style it. I have asked about it, but the answers seem to be that it is not possible to do so.
I have also implemented a PopupWindow, but although the items appear as a list, it is not possible to select them.
Would someone advice me as to what is the best to implement?
Thanks very much. I can post both sets of code: for PopupMenu and PopupWindow, if that helps.

Related

How to delete using long click or using swipe to delete

I have a listview that is working fine. Now I have one option to enable and that is deleting the row. I know this is not a problem But Want to take some suggestions. and that is what is a best way of deleting the item(row). Here what I have tries I am sharing with you
Used Context Menu on long click but they do not look cool and quite old.
Used Swipe to Delete but there comes some problems which are not working good, I mean there are some problems in it. here is the reference of my question about that.
Can any one please come up with some suggestion of deleting the row which are new and good ways to do so.
What are prerequisites :
I am using fragments with one single activity and using tool bar so I really can use delete option appearing in toolbar for only one fragment . Actually I do not know how to do it.
So please tell me what are the good and best way which are user friendly , looks good in gui and also a Beginner developer friendly
One solution is,
Add hidden checkbox in each listview row.
Add delete button on the toolbar/actionbar.
OnClicking delete button show checkboxes to select multiple items to
delete.
Again clicking on delete should ask confirmation dialog and delete if user agrees.
You can use Recyclerview instead of ListView. It has default animation while adding/removing items. You can check the code here or you can provide cross icon in the item and delete on click of it.

Android menu chosing by pressing

I'm looking to do something on Android.
I want to press with my finger some image for like a second and make it appear a menu; however, I would still have to be pressing the screen while I move to the chosen option. From the moment I quit my finger from that option it would be the selected.
I've been looking for tutorial's and "how to"s but I can't have a clue on how to do that. I would appreciate some help in this topic
Thank you very much for your time
Its better to display the Context_Menu onLongClickListener and let the user to chose the option.
The idea of keeping the screen pressed its not really a good idea.
Most of the people are unaware of that. Whereas, if u just simply display a context menu and let user click the desired option, it will be better.

Delete list item - Android concept

What is Android's concept of deleting a list item? I thought of something like long-pressing it which will pop-up a dialog box to confirm / reject...
But would like to know what is the most popular way of doing it in Android.
Thanks!
This question is regarding to UX design. Generally speaking, the most popular approach of deleting items are:
Long press and pop up context menu
On action bar, entering selection mode and then choose the action
Slide to right/left and display a delete indicator on the item
You might choose/combine appropriate methods.
I have found this link may explain everything you need for the deletion in list view.
https://ux.stackexchange.com/questions/48112/typical-android-app-behavior-for-deleting-data-from-a-list

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.

Custom options menu in Android

I want to create a custom OptionsMenu in my application. The default OptionsMenu display only three items in one row. Now i want to display five to six items having only icons. Also i want to change the background color of the OptionsMenu but not getting the appropriate way of doing this. If it is possible then please let me know about it.
Short answer
As an user it bothers me when the application changes my android's widgets. I wouldn't recommend changing that and android doesn't provide a way to do it.
Long answer
Even though Android doesn't provide a way to customize that you can always handle the key event and show a view from your own. Similar discussion in stackoverflow.

Categories

Resources