Top "Android-widget" questions

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

How to show one layout on top of the other programmatically in my case?

My main layout main.xml simply contains two LinearLayouts: The 1st LinearLayout hosts a VideoView and a Button, The 2nd …

android android-layout android-emulator android-widget android-manifest
How to get screen width and height

I tried to use following code to get screen width and height in android app development: Display display = getWindowManager().getDefaultDisplay(); …

android android-layout android-emulator android-activity android-widget
Setting Action Bar title and subtitle

I want to set title and subtitile of my action bar before compile time. I got a way to do …

android android-layout android-widget
How to set focus to a button widget programmatically?

Is it possible to set a focus to a button widget which lies somewhere down in my layout? onCreate of …

android android-widget android-button
How can I make my layout scroll both horizontally and vertically?

I am using a TableLayout. I need to have both horizontal and vertical scrolling for this layout. By default I …

android android-widget android-scrollview
How to disable copy/paste from/to EditText

In my application, there is a registration screen, where i do not want the user to be able to copy/…

android-widget android-edittext android android-keypad
how to play audio file in android

I have a mp3 file in my android mobile, lets it's a xyz.mp3 somewhere in my sdcard. How to …

android audio android-widget media-player
How to dynamically update a ListView on Android

On Android, how can I a ListView that filters based on user input, where the items shown are updated dynamically …

android listview filter android-widget
Using selector to change TextView text color

I'm trying to use a TextView to define the style of a TabWidget on a tabhost. I just created a …

android android-widget
Use external fonts in android

I want to use external fonts in my app. I have tried adding new fonts using AssetManager but it did …

android fonts android-widget