Is it possible to switch the GridView to ListView without third party software, and just by changing a setting in the registry....I'm definately not a noob and I have searched.....so if anyone can point me in the right direction I would appreciate it.
Related
Hi all,
My app has one static control (text label) and one edit box in a child dialog (all of them are define by resource editor). This dialog has a bitmap background and I'm trying to make transparent background for static and edit controls.
I've tried to "google" but unsuccessful, all is about MFC. I have a small source file containing WndProc function for the dialog. How can I do that by adding some code in there?
Someone pls help me? Does the simplest and fastest solution exist? Give me some instruction by code or links pls? Thank you very much!
as far as I remember you cannot make transparent static/edit boxes easily. You should make them ownerdraw controls and paint the background yourself.
I knew the way of manual painting ownerdraw button and listbox but I thought ownerdraw other controls is impossible (there is no this exStyle for that).
OK, thanks for your help. I'll try.
I want to add custom item to all context menus in all applications. Do anyone have an idea how to do it?
I think I should hook TrackPopupMenu API. Can someone help me how to do it?
First of all, I'm sorry if this is in the wrong section. I posted this to androidforums too but it seems the topic was complicated so people didn't even bother to answer my thread.
Hi, I'm new to android. I am used to code in C#, and I'm also developing an application for Windows Phone 7. I found out that creating a simple layout in android took a lot more of effort comparing to Windows Phone 7.
I'm going to create this main menu layout that looks similar to Robo Defense's main menu (the menu where you choose to start game, view achievement, etc).
note: I already added the landscape screen orientation and the fullscreen mode to the AndroidManifest. xml.
If you have already played robodefense, you can understand what menu that I'm talking about.
It was easy to create that kind of main menu in Windows Phone 7, but I had difficulties in Android when trying to design it from the main xml file.
I was thinking of using a LinearLayout, and then put a TextView inside the LinearLayout. And after that, I put a TableLayout for the buttons under the TextView. What bugs me is that the table didn't show up, only the text view was displayed.
Then I changed to using LinearLayout again but then put a TableLayout, then put the TextView inside the TableLayout (into a TableRow), hoping that it would be centered inside the table above the buttons. The result is still bad.
The "Title Bar" isn't centered inside the table, and the table layout creates a tablerow with two elements, one of which is empty, and the rows below it change their widths to fit the rows above them.
So that's it, i'm stuck here. What should I do? Any help is appreciated, thank you
I have designed a new menu for my app, that i think is more appealing than the regular android "six pack" menu and as such uses none of the menu xml attributes and is purely designed in the java and layout file.
However one of the options requires a list, and instead of bringing up an entire new activity, i would still like to use the sub menu list type, is it possible to do this from a onClick case? if not can anyone suggest an alternative way to get a similar result?
all help is much appreciated thanks
Hey guys I need help.
I know how to create a listview but where I'm struck and confused is,
1.) Like when we click on 1st item of the listview another activity with another list view comes up and when we click on any of the item from that list view then a resource xml file with a table comes up.
2.) When I click on the second item of the LV an image is displayed.
3.) When I click on the 3rd item another list view comes up and then if click any of the item an image comes up.
I just tried to explain my problem. There are around 10-12 items in each list. So I am not getting what exactly to do.
I tried to make simple listview but now not getting how to modify it to match my needs...
Thanks
Just set an onItemClickedListener and watch, which item is clicked. Then start the different operations.
If the ListView does not change dynamically, it would be better to use a PreferenceActivity or a PreferenceFragment. It would be far easier to do what you wanted with this.