layout

WebView and buttons layout makes buttons invisible

Hey guys, I've got the following layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <WebView xmlns:android="http://sc...

Centering Text In A TextView

Hello Everyone. I have a TextView that has text Dynamically Added to it. My problem is that when I use gravity for the centering the text, it doesn't move because the width is set to "wrap_content". What should I do to resolve this issue? ...

Magento _prepareLayout() called 5 times to many

** New EDIT ** so what I'm trying to do is this. I want the to add new form elements generated by my module on the product view of the following url http://magento.example.com/catalog/product/view/id/46 ultimately these elements will be determined to show up by a related table in my module I expected that if I extended Mage_Catalog...

Qt: How to be notified when a row is hovered in a QFormLayout?

I have a QFormLayout where the left widgets are QLabels and the right widgets are of various types. I want to get notified when the mouse enters any part of a form-row, so I can display an explanation of that row in my statusbar. Currently I have a QLabel subclass called HoverableLabel which exposes "mouseEntered" and "mouseLeft" signal...

Scaling Images in a Linear Layout Evenly

I have a linear layout that contains 6 images, which span the linear layout horizontally. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@layout/rounde...

CSS left menu layout problem

Hi, I have a problem and I have no idea how to solve it. I have website with header, left-menu, content and footer. I used float as positioning scheme. My problem is, I want left menu to adjust with text size of the hyperlinks. Normally, there would be no problem with this thanks to float, but to solve one problem in IE, I had to set ex...

creating a custom image based layout on android

Is it possible to create a layout based on (background) images? For example, there is well know app called Appie that uses this picture as a homescreen: I might be able to recreate the layout with a TableLayout, but this will be difficult to get it perfectly aligned with the buttons in the image. The default layout options make it ver...

Accessing controls for page layout in code behind

Hello All, I am developing a publishing portal in SharePoint. The page layouts, master pages are designed using Visual Studio and I deploy the page layouts into the content database using wspbuilder. I have a requirement wherein I have to access the controls of the page layout in code behind and assign or get values to/from the contro...

Layout in Android?

I got an error error: Error parsing XML: unbound prefix when i did not add an attribute xmlns:android="http://schemas.android.com/apk/res/android" for my Layout. Why we want to set this attribute for a layout?Any Specific Reasons? what i put the url mentioned as a value for xmlns:android. I got the server not found Exception. Please Shar...

Aesthetic question about Xstream XML output

Hi all, When I output an XML file using Xstream with a custom converter, all the nodes are printed out nice and indented etc., however when I print out another object, there is no new line between the end object tag and the new object tag. Take the example below: </macroblock> </frame> </MetadataFrame><MetadataFrame frame="456"> ...

Android linearlayout design problem

hi, For my design i have in the xml file something like: The design is like a row that have two cells. I want one of them to be autosize and fill the row and one of them to have fixez size. I want that the second linearlayout to wrapp its content and the first one to fill the rest of the space. Something like in css ...

How to create a view that is bigger than the screen?

Is it possible to create a view that is bigger than the screen? I need a view that has a bigger width then the screen of the device. I use this view in a rotation animation. During the rotation the parts that were not on the screen before animating the view will become visible. Is there a way to achieve this effect with the android f...

Why is there extra padding on the bottom of my row?

I have the following layout. This defines a row in my ListView. I noticed that the text is not centered in the row. There seems to be extra bottom padding. How can I make the text appear in the center, vertically, so there is no padding? <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk...

java boxlayout composition

I haven't understood this since I had started working with Swing. Why BoxLayout with Y-Axis sorting places (from the example) buttons one under another with space all the way to the end of panel (that's what I thought how it works) but placing JPanels same way but making them stretch. Would someone be so kind to explain to me the phenome...

My TextView is not appearing right aligned

I want priceText to be right aligned. It is appearing left aligned. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/stocks_gradient"> <TextView andr...

How to float paragraph next to image without wrapping the image?

Hello! I want to float a paragraph next to image, but without wrapping the image. Like this: div.img { float: left; display: block; margin: 15px 2% 0 2%; width: 26%; /* I cannot use that */ } div.info { float: right; display: block; margin: 15px 2% 0 2%; width: 66%; /* Th...

How to make my layout able to scroll down?

I can not scroll down the screen to view the data in the Replyby section. How can I make my layout scrollable? ...

Weird layout problem. (please see the attached image)

The image above is the first page of my game. Normally the big blue 'button' background image should not show up there. I declare my custom background image for my buttons in layout file like this: <Button android:id="@+id/id_button_startgame" android:layout_width="wrap_content" ...

Trying to wrap JLabels to JPanel inside JScrollPane

EDIT: As in the example (now written by me) what I'm trying to achieve is packing JLabel (+JTextFields, not in the example) into JPanel with FlowLayout and sorting these panels with BoxLayout one under another but limitting it with JScrollPane so I can specify how high the view area is and if those JPanels (packed JLabels) exceed the hei...

ggplot2: Use options for multiple plots

I would like to create 10 plots that have different data, but the same optical appearance. As an example, I’d like to change the colour of the gridline for each plot. This could be done by adding + opts(panel.grid.major = theme_line(colour = "white") to each plot definition. However, when I now decide to change background colour to l...