Top "Android-widget" questions

Either relates to Home Screen widgets, or to general UI elements used on an Android Application screen.

Set transparent background of an imageview on Android

I am using a web view in which I am adding an image view. How can I set the background …

android android-widget
Set ImageView width and height programmatically?

How can I set an ImageView's width and height programmatically?

java android android-emulator android-widget
What does android:layout_weight mean?

I don't understand how to use this attribute. Can anyone tell me more about it?

android android-layout android-widget
Using setImageDrawable dynamically to set image in an ImageView

I am generating a string from database dynamically which has the same name of image in drawable folder. Now I …

android android-widget
How to create custom button in Android using XML Styles

I want to make this kind of button [same background & text] colors by using XML Styles that's just for …

android android-widget
Add padding on view programmatically

I am deveoping Android v2.2 app. I have a fragment. In the onCreateView(...) callback of my fragment class, I inflate …

android android-layout android-emulator android-widget padding
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 …

android android-widget webview
How can I do factory reset using adb in android?

How can I do the factory reset in android using ADB command? I had used adb reboot recovery command to …

android android-intent android-emulator android-widget
Android - Get value from HashMap

I have tried to search on HashMap in Android, but getting problem: Consider this example: HashMap<String, String> …

java android hashmap android-widget
How to create a date and time picker in Android?

Is there any android widget that enable to pick the date and the time at the same time ? I already …

android android-widget