Top "Android-layout" questions

A layout defines the visual structure for a user interface, such as the UI for an activity, fragment or app widget.

How to Apply Corner Radius to LinearLayout

I want to make a layout with a rounded border. How can I apply a radius of a particular size …

android android-layout
Add back button to action bar

I have been trying to add a back button to the action bar. I want my view to look like …

android android-layout android-actionbar
How to use View.OnTouchListener instead of onClick

I'm developing an Android 2.2.2 application for a client and he wants to do the following: Now I have a button …

android android-layout user-input
android:layout_height 50% of the screen size

I just implemented a ListView inside a LinearLayout, but I need to define the height of the LinearLayout (it has …

android android-layout size android-linearlayout android-layout-weight
Android - how to make a scrollable constraintlayout?

I want to make a layout that lets me scroll down using constraint layout, but I don't know how to …

android android-layout android-scrollview android-constraintlayout
How do I make WRAP_CONTENT work on a RecyclerView

I have a DialogFragment that contains a RecyclerView (a list of cards). Within this RecyclerView are one or more CardViews …

android android-layout android-studio android-fragments android-recyclerview
How to avoid soft keyboard pushing up my layout?

I have a set of navigation buttons sitting at the bottom of each Activity. In some activities, I need a …

android android-layout
How do I add a bullet symbol in TextView?

I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible?

android android-layout special-characters textview
Android custom Row Item for ListView

I have a ListView that should have the following layout in its rows: HEADER Text HEADER should be static but …

java android android-layout android-listview android-arrayadapter
Android: failed to convert @drawable/picture into a drawable

In my drawable folder I have a few images and they all reference perfect, but when I try and add …

android image android-layout reference drawable