The layout tag is for questions about the placement, alignment and justification of objects with respect to a containing element.
3
votes
0answers
131 views
Android Layout views rotated and spaced around a circle?
I'm trying to figure out a way to layout a series of views around a circle, in such a way that each view is rotated to be facing outward from the circle. The picture below is a rough sketch of what ...
3
votes
0answers
156 views
Android custom component works fine at runtime, but doesn't work at design time
I am doing my first steps in Android development.
In the meantime I am trying to create a custom component (for testing purposes) that will later be used on an Activity.
Here's the code for ...
3
votes
0answers
98 views
Android Layout Image display in wrong position on a Table row
I have an ImageView on the left and a Table on the right. Inside table there is one row display 2 images but the result is one image on left and the other image on the right. they are not adjacent?! ...
3
votes
0answers
41 views
Putting messages in Eclipse form headers on a line beneath the title
I'm having some trouble with error messages in Eclipse form headers. At the moment, the layout has the title on the left, toolbar buttons on the right, and any messages we put on the header (using ...
3
votes
0answers
139 views
How does an Android app on Google TV display in the overscan area (youtube can why can't I?)
This is for Google TV...
I have been through the layout xml multiscreen stuff and this is what I've come up with:
in my layout file:
<RelativeLayout ...
3
votes
0answers
213 views
Android - layout error:106 width:0 ellipsizedWidth:0
While I am debugging and testing my Android App, it displays all the time inside DDMS the following warning:
layout error:106 width:0 ellipsizedWidth:0
It keeps repeating the same warning even while ...
3
votes
0answers
233 views
Children of my custom layout won't re-layout and re-measure correctly
I have implemented a custom layout that extends ViewGroup. In its onLayout() method, I make a loop on all my children : I add them to the layout, measure them and then layout them. It works just fine. ...
3
votes
0answers
407 views
Combining layout_weight and maxHeight?
I have the following "button bar" layout setup:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<RelativeLayout
...
3
votes
0answers
220 views
Android: calculating view size inside MyAdapter::getView
I have a ListView inside which I dynamicaly fill the list items in the getView() method, with a combination of TextView, and an ImageView.
I need to calculate the size of the Text and Image view ...
3
votes
0answers
284 views
Visual Studio 2010 Toolbar Layout Keeps Resetting
My VS all the sudden started resetting my toolbar layout & selected after its closed/re-opened. Once VS is reopened additional toolbars are displayed which I don't use - quite annoying.
I tried ...
3
votes
0answers
2k views
Android custom horizontal progress bar bitmap drawable gets stretched
I am using custom progress bar drawable for horizontal progress bar in Anroid application. It is a two-leyered drawable. First layer is diagonally striped png image with tileMode="repeat". Second ...
3
votes
0answers
815 views
Scaling layout with invariant aspect ratio in Android
I want to create a GUI for my app which is essentially a background image with some controls on top of it. The important (and tricky) part is that the background image should keep its aspect ratio and ...
3
votes
0answers
1k views
How can I change layout params while program is running
I have an ImageView sitting on a FrameLayout. I want to be able to move this imageView by setting a margin:
LayoutParams lp = new FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
...
2
votes
0answers
46 views
Combine javafx 2 ListView and GridPane features
My target is to display an abbreviation list with two entries per line: the abbreviation and the corresponding long version. For a nice layout I used a GridPane because of the vertical alignment over ...
2
votes
0answers
86 views
Working with multiple panels in one frame
I have a problem where i want a program to switch between multiple panels in a same frame. The problems I am encountering are that i can't set the layout when the panels switch and after the switch ...