A lot of people still use tables to layout controls, data etc. – one example of this is the popular jqGrid. However, there is some magic happening that I...
I’m trying to center a button in relative layout, is this possible? I’ve tried the Gravity and Orientation functions but they don’t do anything. 11 Answers 11
Is it possible to set the absolute position of a view in Android? (I know that there is an AbsoluteLayout, but it’s deprecated…) For example, if I have a...
View’s have a minHeight but somehow are lacking a maxHeight: What I’m trying to achieve is having some items (views) filling up a ScrollView. When there are 1..3 items...
Can this attribute be changed dynamically in Java code? android:layout_marginRight I have a TextView, that has to change its position some pixels to the left dynamically. How to do...
Is such a thing possible using CSS and two inline-block (or whatever) DIV tags instead of using a table? The table version is this (borders added so you can...
I’m designing my application UI. I need a layout looks like this: (< and > are Buttons). The problem is, I don’t know how to make sure the TextView...
How can I prevent automatic line breaks in a column of table (not a single cell)? 9 Answers 9
I have a view made up of TableLayout, TableRow and TextView. I want it to look like a grid. I need to get the height and width of this...
Is there any good way of truncating text with plain HTML and CSS, so that dynamic content can fit in a fixed-width-and-height layout? I’ve been truncating server-side by logical...