How to insert options in the gallery? - android

I am working on an Android project and I am now working on the gallery on which I have
created the display of images.
I want to insert the options like View ( Grid view etc.,) , Sending options , Move etc.,
and I want the option menu at the bottom corner of the screen. If so how I should program.
give me your suggestion and sample link also......

Hi i am not gettin your question clearly but i hope you are looking for menus like Options and Exit etc on the bottom of ur screen, am i right?
for that u need to create menu like option for that menu u need to set what it should do in
onOptionItemSelcted...
for creating menu you can use this link : http://developer.android.com/guide/topics/ui/menus.html

Related

sony-smarteyeglass: How to add description above menu of notification view

I am trying to modify HelloNotification sample code given in SonyEyeGlass SDK samples. As described in https://developer.sony.com/develop/wearables/smarteyeglass-sdk/guides/notifications/
we can add a menu to be shown in the notification view when the user drills down into the notification details(Action menu with 3 Action Toasts as shown in that link and example).
But in SmartEyeglass screen I want to add some description above this menu, as that area is empty. Is there any API that I can use for showing any text description in that empty area? (probably using Notification.SourceColumns) ?
Please help.
Thanks,
Manish
Unfortunately there is no way to draw above the menu. If you really need to draw on that area you would have to build a Control extension and use your own menu control on the bottom.

I want to know what the method is. when a button is clicked, screen shows a little small option box

sorry that i couldnt upload a picture cuz not understanding of "need at least 10 reputations to upload an image"
anyway, when you use "Youtube" MOBILE application,
you can see several videos shown on a screen arranged in a custom listview.
and in each item of the listview, there are "three-circled" button at the right side of the item(row).
when you click that button, it appers a small option choosing box.
I want to know what method that small option choosing box implemented.
are there any references or any method name for that?
there's a simple class for that.
http://developer.android.com/reference/android/widget/PopupMenu.html
and if you're going to be compatible with really really old versions of Android you use the version from the compatibility library.
https://developer.android.com/reference/android/support/v7/widget/PopupMenu.html
to show this PopupMenu it's a simple code too:
PopupMenu p = PopupMenu(context, theViewThatWasClicked);
p.inflate(R.menu.popup_options); // the options to show
p.setOnMenuItemClickListener(listener); // you have to create this listener somewhere
p.show();

Pull down list menu in android

I need to create a List view. However this list view is somewhat of a pull down menu. That is, I have to create a button on top of screen, where on clicking it, a list view will be displayed (pulled down) from top.
Can some one give me an idea about this? I mean, what is this component in Android and how do I go about it creating it?
I know the normal way of creating a list view but not this.
Hey thanks all for your replies i finally got want i wanted to implement.The following link helped me achieve it:
http://techdroid.kbeanie.com/2009/08/android-sliding-drawer-example.html
Typically you would use a Single Choice Dialog.
http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList
If you want to do it Pull-down-from-top. You'll need to use Panel Custom view from this project.
If a pull-from-below will suffice, use a Sliding Drawer. (From Android 3.0, Sliding Drawer can be configured to be pulled down aswell. See Here)
Have the Listview inside the Drawer/Panel.

Re-arrange the context options menu order

I have a context option menu, that I need to re-arrange it in a specific order.
Every row of the option menu should contain only a single item, like Share to Fb, and Share to Twitter are now displayed.
Is it possible to make the option menu "Some warning text..." and "Logout" be on separate rows?
If You're using default options menu the answer seems to be 'no'. Android decides itself on placing options.
Probably, You might need to create custom options menu. Please, refer to this guide and this question already asked.
If you implement Custom options menu then you make static text. here is some reference link for Custom options menu ,http://www.codeproject.com/Articles/173121/Android-Menus-My-Way

how can i Take snapshots of my Android application/Layout

i am created an application in android.In that i have a doubt,for explaining that i have to show the graphical layout of main.xml. it is possible to copy my code and paste here so that everybody can see the code.Now i want to display my graphical layout along with my code.Is it possible?? if it is possible means how?
I think you want to capture the photos of your application
running inside the emulator.
For taking screen shots of your application, follow the below steps:
click on Window menu -> DDMS
Click on "Devices" icon lying at the left-bottom corner.
It will list out all the devices, select the device from which you want to take screen shots.
click on "Screen capture" button.

Categories

Resources