Top "Android-widget" questions

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

How to get android default attributes in a custom view

I have created a simple custom view that contains a RelativeLayout and an EditText: <RelativeLayout xmlns:android="http://schemas.…

android android-widget android-custom-view custom-view android-attributes
How to programmatically re-apply a 9-patch image to an ImageView?

I have an activity that has an ImageView defined inside a HorizontalScrollView. The image source is a 9-patch file that …

android android-layout android-widget android-imageview nine-patch
where to start for Page flip effect in android?

I have search a lot for page flip effect in android. I found some links. An example for flip without …

android opengl-es android-layout android-widget page-curl
Copying directories and files from res/raw folder to sd card - android

I have a folder which contains few files and some directories which I need to copy to my SD card's /…

java android android-intent android-widget android-sdk-2.1
is there any alternative for ActionBar in 2.2?

Since the ActionBar is available only in Android 3.0 and later, what is a good way to implement ActionBar-like widget in …

android android-widget android-actionbar android-2.2-froyo
Autoscrollable title in Android Actionbar (Marquee)

is there a possibility to make the title of an Android ActionBar scroll automatically (marquee) if it's too large?

android android-widget android-actionbar android-scroll
"...must supply a layout_height..." but its in my style resources?

I had a working app on 2.1 and above until I tried to cleanup my initial layout with a theme of …

android android-layout android-widget android-theme
Get the position of the current image displayed in Gallery

in my application , i have a gallery of pictures, but i want to detect the position of the current image …

android android-widget android-ui android-gallery
Create widget programmatically

As far as I understand, android widgets need RemoteViews, instead of View, like activities. My question: is there any way …

android android-widget remoteview
Spinner - focus to first item

I use dropdown spinner with cursor adapter. It contains e.g 1 - 100 items. I select e.g. item 50. Item is …

android android-layout android-widget android-spinner