Top "Layout" questions

The layout tag is for questions about the placement, alignment and justification of objects with respect to a containing element.

How to force an entire layout View refresh?

I want to force the main layout resource view to redraw / refresh, in say the Activity.onResume() method. How can …

android layout refresh
Center a button in a Linear layout

I am using a linear layout to display a pretty light initial screen. It has 1 button that is supposed to …

xml android layout
how to read value from string.xml in android?

I have written the line: String Mess = R.string.mess_1 ; to get string value, but instead of returning string, it …

android string layout
Set margins in a LinearLayout programmatically

I'm trying to use Java (not XML) to create a LinearLayout with buttons that fill the screen, and have margins. …

java android layout view margin
How to get these two divs side-by-side?

I have two divs that are not nested, one below the other. They are both within one parent div, and …

css layout html
100% width Twitter Bootstrap 3 template

I am a bootstrap newbie and I have a 100% wide template that I want to code with bootstrap. The first …

html css twitter-bootstrap layout twitter-bootstrap-3
Scrolling a flexbox with overflowing content

Here's the code I'm using to achieve the above layout: I omitted the code used for styling. You can see …

css layout multiple-columns flexbox
Lock screen orientation (Android)

I'm writing an android application that uses tabs with different contents (activities). In one of these activities, I would like …

android layout orientation
Android: How do I prevent the soft keyboard from pushing my view up?

I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the …

android layout keyboard view
How to change line color in EditText

I am creating an EditText in my layout xml file But I want to change color line in EditText from …

android xml layout styles