Tag: layout

50 votes
12 answers
2.9K views
How can I swap positions of two open files (in splits) in vim?

Assume I've got some arbitrary layout of splits in vim. ____________________ | one | two | |

avatar
Serina
0 1 0 9
asked 07 September, 2021
49 votes
16 answers
904 views
frequent issues arising in android view, Error parsing XML: unbound prefix

I have frequent problem in android view, Error parsing XML: unbound prefix on Line 2. <?xml version="1.0"

avatar
Eddie
0 1 0 9
asked 07 September, 2021
53 votes
21 answers
1.3K views
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 cent

avatar
Basil
0 1 0 9
asked 07 September, 2021
54 votes
20 answers
1.8K views
How to make layout with rounded corners..?

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.

avatar
Trudy
0 1 0 9
asked 07 September, 2021
54 votes
20 answers
641 views
Can the Android layout folder contain subfolders?

Right now, I'm storing every XML layout file inside the 'res/layout' folder, so it is feasible

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
48 votes
18 answers
1.3K views
How do I align views at the bottom of the screen?

Here's my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
1.8K views
What&apos;s "tools:context" in Android layout files?

Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for e

avatar
Chaya
0 1 0 9
asked 07 September, 2021
59 votes
5 answers
645 views
Why the 20px gap at the top of my UIViewController?

The Problem Consider the following controller hierarchy: UINavigationController UIViewController UITableVi

avatar
Hilario
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
3.1K views
GridLayoutManager - how to auto fit columns?

I have a RecyclerView with a GridLayoutManager that displays Card Views. I want the cards to rearrange accordi

avatar
Charis
0 1 0 9
asked 07 September, 2021
64 votes
4 answers
1.3K views
What&apos;s the meaning of * (asterisk) in XAML ColumnDefinition?

What is the meaning of * (asterisk) in the XAML below? <ColumnDefinition Width="0.07*"/> <Grid Heigh

avatar
Rufus
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
2.1K views
What is the difference between Xamarin.Form&apos;s LayoutOptions, especially Fill and Expand?

In Xamarin.Forms every View has the two properties HorizontalOptions and VerticalOptions. Both are of type Lay

avatar
Elicia
0 1 0 9
asked 07 September, 2021
59 votes
12 answers
542 views
How do I animate constraint changes?

I'm updating an old app with an AdBannerView and when there is no ad, it slides off screen. When there is

avatar
Georgie
0 1 0 9
asked 07 September, 2021
62 votes
28 answers
727 views
Using Auto Layout in UITableView for dynamic cell layouts & variable row heights

How do you use Auto Layout within UITableViewCells in a table view to let each cell's content and subview

avatar
Freida
0 1 0 9
asked 07 September, 2021
49 votes
19 answers
1K views
How to add constraints programmatically using Swift

I'm trying to figure this out since last week without going any step further. Ok, so I need to apply some

avatar
Corrin
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1K views
UIScrollView Scrollable Content Size Ambiguity

Fellow devs, I am having trouble with AutoLayout in Interface Builder (Xcode 5 / iOS 7). It's very basic

avatar
Stacia
0 1 0 9
asked 07 September, 2021
65 votes
5 answers
1.7K views
55 votes
20 answers
2.3K views
Get the size of the screen, current web page and browser window

How can I get windowWidth, windowHeight, pageWidth, pageHeight, screenWidth, screenHeight, pageX, pageY, scree

avatar
Tana
0 1 0 9
asked 07 September, 2021