Questions tagged [android-widget]

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

From Android Documentation

Widgets are an essential aspect of home screen customization. You can imagine them as "at-a-glance" views of an app's most important data and functionality that is accessible right from the user's home screen. Users can move widgets across their home screen panels, and, if supported, resize them to tailor the amount of information within a widget to their preference.

Common elements are :

  • AbsoluteLayout
  • AnalogClock
  • AutoCompleteTextView
  • Button
  • CalendarView
  • CheckBox
  • CheckedTextView
  • Chronometer
  • CompoundButton
  • DatePicker
  • DigitalClock
  • EditText
  • ExpandableListView
  • FrameLayout
  • Gallery
  • GridView
  • HorizontalScrollView
  • ImageButton
  • ImageSwitcher
  • ImageView
  • LinearLayout
  • ListView
  • MediaController
  • NumberPicker
  • ProgressBar
  • QuickContactBadge
  • RadioButton
  • RadioGroup
  • RatingBar
  • RelativeLayout
  • ScrollView
  • SearchView
  • SeekBar
  • SlidingDrawer
  • Spinner
  • StackView
  • TabHost
  • TableLayout
  • TableRow
  • TabWidget
  • TextSwitcher
  • TextView
  • TimePicker
  • Toast
  • ToggleButton
  • VideoView
  • ViewAnimator
  • ViewFlipper
  • ViewSwitcher
  • ZoomButton
  • ZoomControls
5711 questions
2
votes
1 answer

Window already focused, ignoring focus gain of: com.android.internal.view

Unfortunately, I was unable to find a resolution to this issue in other StackOverflow posts so I apologize in advance for re-posting this question. Essentially, I have an AppWidget that creates a Notification. I want the user to click the…
2
votes
3 answers

is there any "onCreate" method for Android widgets?

I'm following this tutorial for adding EULA to my Android application, but i have two problems: 1) My app is based on widget and i would like to show my EULA as soon as widget is started. Is there any "onCreate" method for widgets? 2) If user refuse…
guest86
  • 2,894
  • 8
  • 49
  • 72
2
votes
4 answers

Passing widget id to activity

In my widget provider, I have the following code: for (int widget_id : appWidgetIds) { Log.d(TAG, "Widget Id: " + widget_id); RemoteViews remoteViews; Widget widget; while (true) { try { widget = Widget.load(context,…
James
  • 6,471
  • 11
  • 59
  • 86
2
votes
3 answers

implement "android:textOff" & "android:textOn" property for toggle button programatically in Android

I am trying to change the default On and Off text on the toggle button in Android. I am aware of how to do this in xml. My query is how to attain this programatically in code. Could anyone please advise? Much thanks.
user788511
  • 1,726
  • 2
  • 30
  • 52
2
votes
2 answers

Enable ScrollView to bounces content

I have a ScrollView (and HorizontalScrollView also), with some content on then. I need to enable these views to bounces the content if the user try to pass beyond the limit of the scrollable content. How I do that?
Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
2
votes
1 answer

Adding style to ActionBar drop down spinner makes it not a drop down

I'm using this tutorial: http://android-developers.blogspot.com/2011/04/customizing-action-bar.html I set a drop down list theme like this