layout

Floating layout similar to HTML/CSS

In HTML/CSS, if you float items, DIV's that exceed the width of the container are moved down 1 line. I would like to achieve this in FLEX. I have 3 components with variable width. I would like for the 3rd component to be moved down when it doesnt fit the container any more. ...

Tool for automated validation of web-page against formatting/layout rules?

Hi, Im a UI developer on a financial website and been tasked with finding (or creating) a tool to automate testing pages against a bunch of formatting/layout rules Example rules; use of bracket format for numbers: (123) rather than -123 use of ISO codes for financial amounts: USD 123 rather than $123 all numbers should be right justi...

android: reflect UI language change on the on-the-fly without reload/restarting app

Hi I have a setting in my app that allows user to select different localization (language), ie Chinese, German, etc. What i would like to do is that once the user makes their choice, to immediately update the layout with strings in the currently selected language. Of course, i want the lang change propagated to ALL current activities...

How can I improve the alignment of my TextView?

Right-most textview is causing some alignment issues. I'm not sure how I can alleviate this? ...

Zordering with custom items in a listbox - Silverlight.

I'm cooking up a custom button. This screenshot will be helpful. There's no problem with the button as seen in the image because the badge is hanging off to the left. But if I want the badge to hang off the right then the next item in the listbox will obscure the parts of the badge that go beyond the bounds of it's container (the width o...

css layout positioning

Hi, I have a div box (absolutely positioned), which is expandable and below that I have another div box non-expandabe (relatively positioned). Now when that absolutely expandable div expands, the one below that dosen't shifts down. Is this not possible ? Had my code been not too long, I would have placed it here... Can anyone help me...

Android Layout: Can't place the elements where I want

Hi all I was wandering if there was a easy way to do the following without android layout place an image central top place a button center center place a button left bottom place a button right bottom it doesn't sound that difficult no ? well I can't figure out a way to place the elements as I want using stupid xml layout can somebo...

Exception in Android XML

Hi all, I get an exception every time I launch the application. Here is the stacktrace for the exception 10-01 14:49:35.321: WARN/WindowManager(61): Exception when adding starting window 10-01 14:49:35.321: WARN/WindowManager(61): java.lang.RuntimeException: Binary XML file line #25: You must supply a layout_height attribute. 10-01 14:...

Android Button over Bitmap

I am a beginner android developer and I am trying to have a button display on top of the bitmaps I am outputting. Here is what I have: my activity sets this: setContentView(new FrameView(this)); FrameView is a class that extends View: public FrameView(Context context) { super(context); setFocusable(false); Inside FrameView I ...

Adjustable Panels In a Display using Java Swing

I have an application that uses Swing. The display I am working on, uses a Box with a Horizontal Layout as the top container. In it, are three other boxes (which actually contain the content). The appearance to the user is a window with three panes, arranged horizontally across the screen. What I want to do is give the user the ...

[iOS] How to reposition UILabels and UIImageViews whose dimensions change dynamically?

I have a UITableView with many rows that push a DetailViewController depending on the selection. This detail view contains a UIImageView, and several UILabels (let's say book description, book comments etc). In viewWillAppear I assign the proper content to these outlets, in order to display content for the selected row. My problem is tha...

does textview not like to be placed to left of another widget

This is more out of curiosity than anything else, as I have solved my original problem. I wanted a button the horizontal centre of the screen, with a text box to the left of it, using a Relative Layout. I am curious to know why if I have the following layout: <Button android:id="@+id/pickTime" android:layout_width="wrap_content"...

IE6, IE7: stretch last li to cumulative width of previous li's

Given this markup: <ul class="grafiek"> <li class="first-child">item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li class="last-child">item</li> </ul> How do I make it appear, cross-browser, like so: In other words: the last item (with the fake pseudo-class last-child) should always stretch...

Place view inside FrameLayout in Android

I want to add a view inside a FrameLayout programmatically and to place it in a specific point within the layout with a specific width and height. Does FrameLayout support this? If not, should I use an intermediate ViewGroup to achieve this? int x; // Can be negative? int y; // Can be negative? int width; int height; View v = new View(c...

Help with stacked layout

Hi, I am trying to make a stacked layout with a fixed header, expandable body and fixed footer. I am very close however the body section with the webview displays behind the footer rather than between the header and footer. TIA Jim <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/r...

Java - JFrame, JPanel, Layout, and Clipping

I have three questions/problems. (NOTE - I don't have enough reputation to post pics, so I linked them. And I needed to obfuscate them...) 1) I created a panel that holds my game graphics (the player area). The panel is supposed to be 800x800 and clip everything that lies below and to the right. But when I add the graphics panel to a JF...

Android UI Layout Question

I am new to Android programming and have done a lot of searching for the answer to this question however I can not find an answer. Maybe I am using the wrong search terms because it seems like a pretty basic request. I my design (as an example), I would have two text fields defined in my relative layout followed by an image and I would ...

different template for different categories in magento

i want to display subcategories under artist category in one layout and design and other categories in another layout and design in magento 1.4.1.1. can anyone help me asap. ...

How can I force horizontal orientation programatically?

My application has a portrait mode, and a landscape mode. I want the user to be able to force the landscape orientation by clicking on a button. How can I do this programatically? ...

How to program this specific layout in my iPad app ?

Hello, I would like to have a layout similar as this one and also to be able to pinch to zoom. Do you have a great idea ? layout exemple I investigating using an UIWebView or construct this with CoreText.. Thanks for your help. Thierry ...