Top "Android-ui" questions

Android is Google's mobile operating system, used for programming or developing digital devices (Smartphones, Tablets, Automobiles, TVs, Wear, Glass, IoT).

Android basics: running code in the UI thread

In the viewpoint of running code in the UI thread, is there any difference between: MainActivity.this.runOnUiThread(new Runnable() { …

android android-asynctask android-view android-ui
Lollipop : draw behind statusBar with its color set to transparent

I have set my statusBar color to transparent for Lollipop only with the following line in my theme : <item …

android android-ui android-5.0-lollipop
How to import set of icons into Android Studio project

I downloaded collection of icons from Android Developers center Each icon in this collection is ordered in forlders according to …

android android-studio android-ui android-icons
How to create a number picker dialog?

I want to be able to create a Dialog that allows the user to pick a number from a specified …

android android-ui android-dialog numberpicker
How to display both icon and title of action inside ActionBar?

I need to display both icon and title of action inside ActionBar. I've tried "withText" option, but it has no …

android android-layout android-actionbar actionbarsherlock android-ui
Show AlertDialog in any position of the screen

When we show an AlertDialog in android it shows in the center of the screen. Is there any way to …

android android-layout android-ui
runOnUiThread vs Looper.getMainLooper().post in Android

Can anyone tell me if there's any difference between using runOnUiThread() versus Looper.getMainLooper().post() to execute a task on …

android android-ui
How to change ToggleButton state programmatically?

I have a ToggleButton defined like this: <ToggleButton android:text="ToggleButton" android:id="@+id/toggle" android:layout_height="wrap_…

android android-ui togglebutton
Android getMeasuredHeight returns wrong values !

I'm trying to determine the real dimension in pixels of some UI elements ! Those elements are inflated from a .xml …

android android-layout android-widget android-ui android-xml
How to use asynctask to display a progress bar that counts down?

In my application i want the user to press a button and then wait 5 mins. i know this sounds terrible …

android android-asynctask android-ui countdown