121
votes
4answers
64k views
How to make a nice looking ListView filter on Android [closed]
I want a nice looking filter for my ListView in Android.
How can I do this?
52
votes
9answers
66k views
How to change progress bar's progress color in Android
I'm using an horizontal progress bar in my Android application, and I want to change its progress color (which is Yellow by default). How can I do it using code (not XML)?
68
votes
10answers
33k views
How do you to retrieve dimensions of a view? Getheight() and Getwidth() always return zero
I have a view made up of tablelayout, tablrows and textviews to look like a grid. I need to get the height and width of this grid. The methods getheight() and getwidth() always return 0. This ...
138
votes
6answers
60k views
What does android:layout_weight mean?
I don't understand how to use this attribute. Can anyone tell me more about it?
38
votes
7answers
33k 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 ...
61
votes
10answers
44k 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 ...
31
votes
3answers
20k views
Android Lock Screen Widget
A few users have been asking me Android lock screen widgets for my app - I believe they want a widget that stays on their lock screens and allows them to interact with the app.
I haven't been able to ...
72
votes
7answers
28k 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 ...
3
votes
2answers
20k views
How to play a video in a webview with android?
I loaded a local html in sdcard, and in this html I used tag :
<video id="myvideo" controls width="120" height="60" poster="img/img01.jpg" src="video/01.mp4"></video>
and then I found ...
25
votes
3answers
16k views
ListView with clickable/editable widget
Is it possible to use a OnItemClickListener on a ListView when the Items layout has a clickable/editable widget (RadioButton,EditText, or CheckBox)?
16
votes
3answers
38k views
How to make an Android SlidingDrawer slide out from the left?
I'm using a slidingDrawer in my application that has its handler placed at the bottom when in portrait mode. When the user switches to landscape mode (widescreen) I would like to have the handler ...
13
votes
5answers
2k views
Pop up window over Android native incoming call screen like true caller Android app
Update -- 09 May 2013 *I tried to implement Toast in the broadcast receiver's onReceive method because toast is a native component of Android, but it is also not getting displayed in Android 4.1 ...
17
votes
6answers
7k 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 ...
21
votes
4answers
15k views
Rotate View Hierarchy 90 degrees
I am working on a subclass of FrameLayout that is supposed to rotate all of its children by 90 degrees. I am doing this to overcome the landscape-only camera limitation present in android 2.1 and ...
20
votes
6answers
12k 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"
...