34
votes
2answers
3k views

Application Skeleton to support multiple screen

As we know Android coming with various device which having different Features, Resolution and Screen-size so while developing an Application which support multiple(small and big) screen there is an ...
126
votes
6answers
55k views

What does android:layout_weight mean?

I don't understand how to use this attribute. Can anyone tell me more about it?
196
votes
7answers
87k views

Android - gravity and layout_gravity

I know we can set the following value to the android:gravity and android:layout_gravity center center_vertical center_horizontal, etc. But i am confused regarding these both. what is the ...
17
votes
8answers
15k views

Listview inside ScrollView is not scrolling on Android

I am having trouble with scrolling listview inside a scrollview. I an having an activity which has some EditText in the top part and then a tab host with two tabs which have one listview each. When ...
65
votes
10answers
77k views

Linear Layout and weight in Android

I always read about this funny weight value in the Android documentations. Now I want to try it for the first time but it isn't working at all. As I understand it from the documentations this ...
78
votes
10answers
70k views

converting pixels to dp in android

I have created my application with the height and width given in pixel for a pantech device whose resolution is 480x800. I need to convert the the height and width for an G1 device. I thought ...
210
votes
13answers
157k views

How to hide the title bar for an Activity in XML with existing custom theme

I want to hide the title bar for some of my activities. The problem is that I applied a style to all my activities, therefore I can't simply set the theme to @android:style/Theme.NoTitleBar. Using ...
218
votes
3answers
53k views

Navigation Drawer (Google+ vs. YouTube)

Does anyone know how to implement a sliding menu like some of the top apps of today? Other Stack Overflow questions haven't had any answers on how to do this, so I'm trying to gather as much info to ...
43
votes
1answer
30k views

Making sense of LayoutInflater

I've had severe trouble getting LayoutInflater to work as expected, and so did other people (help-for-using-layoutinflator-to-add-views-at-runtime). The recurring question is: why does LayoutInflater ...
8
votes
4answers
16k views

Android remove space between tabs in tabwidget

I have made an application which has tabs like in HelloTabActivity, there is also space between these tabs, can anyone suggest how to remove this space and also there is a grey line beneath the tabs ...
29
votes
8answers
51k views

How to set image button backgroundimage for different state?

I want imagebutton with two states i) normal ii) touch(or click). I have set normal image in the imagebutton background and I am trying to change image(pressed) from onclick method, but it doesn't ...
68
votes
7answers
25k views

How did Google manage to do this? Slide ActionBar in Android application

I really want to implement this (the side navigation) in an app of my own, does anyone know how Google managed to do this? They seem to have pulled the current window aside and put in a fly-in ...
90
votes
18answers
69k views

Android: How to create a Dialog without a title?

I'm trying to generate a custom dialog in Android. I create my Dialog like this: dialog = new Dialog(this); dialog.setContentView(R.layout.my_dialog); Everythings works fine except for the title ...
8
votes
4answers
11k views

Design Layout For Multiple Screens

I am new in android, and want to design the layout which run in all screens of the android phone and tablet too ? Is their is a way to do this ?
39
votes
2answers
12k views

Show AlertDialog in any position of the screen

When we show an AlertDialog in android it shows in the center of the screen. Is there any way to change the position?

1 2 3 4 5 94
15 30 50 per page