Android :: Two Different Context Menus For The Two Lists?
Jun 11, 2010
I want to view two listviews at the same time. This is not the problem!
What I don't know if it's possible is if I can have two different context menus for the two lists? And second, is there a way to check in which of the two lists the user has selected an item?
View 3 Replies
Feb 9, 2009
How could I capture an onListItemClick() and pass it to onCreateContextMenu()? In my ListActivity, I don't need regular clicks, so I'd like everything to go to the context menu.
View 3 Replies
View Related
Sep 4, 2010
I have 1 activity, but would like to have multiple context menu's for different UI components.
For example, I have a ListView which will react to:
CODE:...................
How can I create another context menu for the onClick event for an ImageView I have?
View 2 Replies
View Related
Oct 3, 2010
My app used to use a standard ListView, and registerForContextMenu(getListView()) and everything worked just fine.
I needed to change my app to accommodate nested lists so I replaced the ListView with ExpandableListView. I changed the Activity to ExpandableListActivity. I also changed my adapter to a tree adapter and implemented a custom view class to populate the list with (based on a FrameLayout view).
Suddenly my context menus stopped working and I can't figure out why. I can't long click on any of my list items and I'm completely stuck on where to start looking.
View 1 Replies
View Related
Feb 1, 2013
Can I somehow change color of texts in context menus? It has white color and the background is white too, so I can't see the text.
I'm using this ROM on my Xperia X10 Mini Pro.
I'm attaching some screenshots for better explaining of my problem.
View 4 Replies
View Related
Nov 8, 2009
I'd like to dedicate this thread specifically to the evaluations and feedback for various Todo's, Todo Lists, Tasks, Task Lists, Lists, etc.I'd like to keep this separate from Notepads as I've dedicated that to another thread ( Notepads and Notepad's that sync - Evaluations and Reviews ).Doing a search for Todo's and Tasks on the Android Market comes up with so many results. Rather than downloading and trying out so many, I'd like to know which ToDo's and Task Lists, etc. are recommended.I've been searching for ToDo lists and Astrid is frequently mentioned. Other sync or link to Google Tasks or sync with Google as well.Other ToDo / Task Lists? What are some ToDo / Task you've downloaded and/or experimented with? Please comment on other such productivity Apps. Please indicate if they
1) Offer Multiple Lists
2) Folders
3) Sync
4) Email
5) Offer other unique features
View 1 Replies
View Related
Nov 3, 2010
I have an Android app that has both CursorAdapter based ListViews (backed by sqlite) as well as custom BaseAdapter based ListViews which are built on the fly from JSON pulled down from a server.
The data displayed in both is identical - an image and a couple of TextViews. My Cursor-based ListView has 3000 rows, the JSON-based ListView has about 30. However, scrolling down the list is significantly faster for the Cursor-based adapter. For the JSON-based lists, the data is all fetched before the rows are made visible. Images for both types of lists are downloaded on-demand.
I have both ListViews configured identically - both with fastScrollEnabled, scrollingCache and smoothScrollbar set to true.
I'm looking for leads on how to go about trying to figure out what's going on here and to potentially fix it so that the JSON-based ListViews as as fast as the Cursor-based ones.
View 1 Replies
View Related
Sep 20, 2010
I am really struggling with linking menus together. The app I want to create is a collection of menus that leads to url links to various sites I plan to open within the application. I have created a list activity menu with 8 options and I have eight classes with further options. My problem is how to link the menus together. I ask the question and someone said that I should map. Here is the code:
public class MyList extends ListActivity {
private static final String Cp = null;
private static final String Pp = null;
private static final String L2 = null;
private static final String L1 = null;
/** Called when the activity is first created. */
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Create an array of Strings, that will be put to our ListActivity
String[] names = new String[] { "Pp", "Cp", "L1", "L2", "Bt", "Se", "As", "Travel"};
// Create an ArrayAdapter, that will actually make the Strings above................
View 1 Replies
View Related
Aug 27, 2010
Why aren't menus inflated automatically for you in Android, the way an Activity's layout is?
View 2 Replies
View Related
Sep 11, 2010
I have managed to create a menu with four options. I want to create four sub menus of same style for each option.In my infinite nooby-ness I have created four classes for the sub menus but I cannot figure out how to move between the menus(Classes).For instance I have four options Prem, Champ, L1, L2, I have created the Prem sub menu but how do I get the program to move to this class(SubMenu) when the Prem option is selected, and how do I get it to move back.
View 1 Replies
View Related
Apr 7, 2010
I need a very simple menu which probably contains only one or two items: settings/options, where pressing one of them should show some customer defined parameters (is it called dialog), e.g., number of results shown. Is there any good tutorial on creating such kind of menus? I've looked at the "notepad" example in android, it doesn't really help.
View 1 Replies
View Related
Feb 25, 2010
wanted to add a menu option in native email app in android . I have used intent filters but i am not successful in achieving it. Actuaaly i want to a menu option to the native mail application in Android.. so that my activity / app can be launced on clicking that option. This feature has been successfully achieved in Blackberry and even in android for gallery application. On android i have achieved it by using intent filters.
<activity android:name=".DisplayAlternativeMenu"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter android:label="My Activity">[code]....
This basically display an menu item"My Activity" when u press share in Gallery. and clicking on that launches my activity .But unfortunately it didn't work for Email Application. Looks like the pair of action & mimetype i am specifying is not correct. which action & which mimetype should be used. Also if there are any permission required,what are they?
My aim is to add an alternative menu while pressing menu in Compose Email(When a mail is composed) of the native email application
View 6 Replies
View Related
Jan 21, 2010
How can I launch a contextmenu from a contextmenu? I'm trying to replicate the MediaPlayer action that happens when you long click a song, then click "Add to playlist" in the resulting contextmenu. When you click that menu item, another contextmenu pops up with "Add to playlist" as the title, and "Current playlist", "New", and however-many-playlists-you-have defined after that.
View 4 Replies
View Related
Feb 9, 2010
I want to show a menu similar in look and feel to the sub-menus. I want the menu to come up when we tap on the screen. Is it possible to have sub-menus displayed without creating the main options menu? I do not want to use context menus for this.
View 3 Replies
View Related
Nov 26, 2009
Is there a tread where they list a list of apps and what they do ,rather than brows the market?
View 1 Replies
View Related
May 21, 2014
I upgraded to 4.4 last night. Overall, it seems fine to me but one thing that annoys me is that the menus have slowed down. I'm not sure what it's called, but I'm referring to the menu that you can drag from the top of the screen (I'm using a Galaxy S3) by swiping your finger from the very top of the screen downwards. Has notifications and all the enable/disable icons for the various services. Used to be fast when I would swipe my finger down rapidly, now it lags. Wonder if there is any way to fix that, or if it's just part of 4.4?
View 1 Replies
View Related
May 17, 2009
How to set a few lists in one layout include their own data from DB?
Here is source code about set list in Android guide. List id is @android:list why the id must be android:list?, may I use my own id? If I can, how to set lists to main layout including their own data.
CODE:........
I want to set lists like this :
CODE:..................
View 9 Replies
View Related
May 14, 2009
I want to set some lists in one layout, but I found it's only recognize the first <ListView . how to write xml file ?
View 4 Replies
View Related
Jul 12, 2010
I'm new to android development but I have run through various tutorials and am slowly grasping how to develop apps. I modified the Tab Layout tutorial on the android dev website to fit my needs, and now I need to add a list on to each tab I have created. there are a total of seven tabs and each will have it's on specific list. If someone could point me in the right direction to adding a list per tab that would be great. Each tab has it's own class file, would I add the list items as strings in the strings.xml then add code to each tab's class file in order to populate the tab? This was the only thing I have found so far, but it hasn't worked.
View 2 Replies
View Related
Aug 19, 2009
Does anyone know if it's possible to show a "Currently have no items" type view in a ListActivity when, obviously, you have no items?
View 6 Replies
View Related
Sep 29, 2010
How can i add separator between the two lists on a single screen.
View 1 Replies
View Related
Jan 10, 2010
I am trying to create a todo list application on android. I am stuck because at the moment I dont know the way to create many todo lists. I have created the GUI for one list, using listview. entries of the list are added by the user when running the application. Particularly i dont know how to pass a list object, if i create new one.
View 1 Replies
View Related
Oct 12, 2010
I have a 3 buttons, say LanguageButton, CountryButton and PinCodeButton. When LanguageButton is pressed, I must display a list of languages. Similarly for CountryButton a list of countries and so on. Only one list is to be displayed at a time.
My question is whether it is better to define a single ListView in my layout or 3 separate ListViews for each list in my layout!
I tried to use a single ListView and set corresponding adapters when different buttons are pressed, i.e in onClick() of languageButton, I give setAdapter(languageArray);
But my doubt arose in implementing the onItemClick() of the list. Because what must be done whenfirst item is clicked in languageList is different from what must be done in countryList. Hence that would add to more code in the java file.
So I am just wondering whether I should simplify my onItemClick() code by defining separate ListViews, or should I simplify my layout and add logic to code?
View 3 Replies
View Related
May 1, 2010
I don't use peep or facebook or regular mail or about 5 other things on this menu. Any way to trim this down so it only has the few methods of sharing I plan on using?
View 2 Replies
View Related
Jul 21, 2010
I have the HTC Incredible. Is there anyway to have the phone back out of the menus and go to the homepage? I don't like that when I click the internet or contacts it is in the same spot that I left it the last time I went there. Or if I am looking at something it doesn't go back to the homepage once it goes into sleepmode
View 5 Replies
View Related
Jan 10, 2014
I seem to have a bug with my WL on my Note 3. Whenever I scroll my notification bar down or hold the power button to mute my phone, widgetlocker seems to overlap these menus. And its quite distracting.
View 1 Replies
View Related
May 26, 2010
How to make lists look different than your everyday average black list or more graphically pleasing than you usually see in android apps. I've looked through google code but haven't found too many. I'm looking for different and eye catching lists. I hope this question isn't too generic. Also i'm open to anything, code, examples, blog posts, etc, you name it. I've really struggled with lists and making them look more snazzy. I'm talking more the code level not the graphics or icons used.
View 1 Replies
View Related
Apr 30, 2010
I'm trying to make a text blast list - basically one contact that contains many contacts so I can instantly text message all of them. Any advice on how to do that on a droid?
View 1 Replies
View Related
May 28, 2010
I was trying to delete a contact using the code in the docs:
CODE:.......
But Eclipse doesn't how to find "Lists". What import statement do I need?
Also, is there a more direct way to delete a contact?
View 6 Replies
View Related
Sep 6, 2010
I'm new to android, and loving it. I'm after a twitter app, that specifically has a widget that can display a list, rather than just the main timeline. I've tried lots of the popular apps but haven't managed to find anything that ticks that box.
View 5 Replies
View Related