All Questions

554
votes
11answers
277840 views

What does android:layout_weight mean?

I don't understand how to use this attribute. Can anyone tell me more about it?
198
votes
14answers
118337 views

How to retrieve the dimensions of a view?

I have a view made up of tablelayout, tablerows and textviews. I want it to look like a grid. I need to get the height and width of this grid. The methods getheight() and getwidth() always return 0....
130
votes
22answers
99830 views

Android How to adjust layout in Full Screen Mode when softkeyboard is visible

I have researched a lot to adjust the layout when softkeyboard is active and I have successfully implemented it but the problem comes when I use android:theme="@android:style/Theme.NoTitleBar.Fullscre...
86
votes
12answers
148445 views

how to get html content from a webview?

Which is the simplest method to get html code from a webview? I have tried several methods from stackoverflow and google, but can't find an exact method. Please mention an exact way. public class htm...
62
votes
10answers
55338 views

How to start a Service when .apk is Installed for the first time

In my Application I am not having any UI part, so I need to start a Service as soon as the Applicaton gets installed on the Device. I saw many links from which the answer was that its not possible but...
157
votes
3answers
87709 views

How to dynamically update a ListView on Android

On Android, how can I a ListView that filters based on user input, where the items shown are updated dynamically based on the TextView value? I'm looking for something like this: ------------------...
78
votes
16answers
58519 views

How to disable copy/paste from/to EditText

In my application, there is a registration screen, where i do not want the user to be able to copy/paste text into the EditText field. I have set an onLongClickListener on each EditText so that the co...
60
votes
6answers
68247 views

Android - Is It possible to disable the click of home button

I have an application, when it launches I have to disable all the buttons on Android device, I succeeded in disabling end call and others. I need to disable home button click. It should not produce a...
158
votes
27answers
85934 views

Handling click events on a drawable within an EditText

I have added an image right of the text in an EditText widget, using the following XML: <EditText android:id="@+id/txtsearch" ... android:layout_gravity="center_vertical" android:backgroun...
89
votes
8answers
63950 views

How to fire onListItemClick in Listactivity with buttons in list?

I have a simple ListActivity that uses a custom ListAdapter to generate the views in the list. Normally the ListAdapter would just fill the views with TextViews, but now I want to put a button there ...

Previous Next