layout

Div doesn't have height unless I give it min-height.

I think this is because I'm floating all three divs "columns" to the left, inside of the main body div. How can I tell the main body div to expand as big as it needs to fit the content divs? Here it's with min-height: And here with the min-height taken away: Here is my relevant code. #body { border:1px solid blue; width:95...

Use scalable bitmaps for seekbar/progressbar Android.

Hi, I am trying to create a custom look for the seekbar, and I created images for normal/filled and the thumb states. But the problem is that the images are not being scaled by android, instead are just tiled/clipped. How can I ask Android to scale the given images instead of tiling/clipping? ...

Right-aligning button in a grid with possibly no content - stretch grid to always fill the page

Hello people, I am losing my patience with this. I am working on a Windows Phone 7 application and I can't figure out what layout manager to use to achieve the following: Basically, when I use a Grid as the layout root, I can't make the grid to stretch to the size of the phone application page. When the main content area is full, all ...

Configuring Magento Layout for New Admin Module

I'm trying to create a custom report in the Magento back-end; my strategy is to first make my new module mimic the existing Reports/Sales/Orders functionality in the admin panel, and then make the required changes once I've seen how the pieces fit together. I've added my new menu item, and the module loads the basic admin layout and some...

Custom ListView and context menu. How to get it?

I have a two layouts files in my app. Also I have Activity extends ListActivity. Every item of this activity looks consider item.xml layout file. I am trying to get context menu when make long presss on item, but I don't see it. In my activity I trying to registerForContextMenu(getListView()) and override two methods @Override pu...

Looking for a recursive GUI (Microsoft & Visual Studio)

Is there a component that presents the user a graphical design a layout like VS does? (Only graphical display functionality needed) That is, he/she could place a label, Image or any 3rd party component that draws something (important!). Thanks! ...

How to use combination of Layouts to get widgets at desired position

we are confused with designing interface file for android,we have made user interface with Absolute layout and used "dip" instead of "px" (for different screen size issue) ,but it looks like,Absolute layout has been depreciated,and developer.android, recommends not to use Absolute layout So other option we have is to use 1.Linear layou...

android layout problem

I want the row to be scale automatically. The effect of my code is really strange... i can't post images, so image is here: http://i.imgur.com/NQfkO.jpg the code: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizon...

AdWhirlLayout problem.

I have this in my main.xml <com.adwhirl.AdWhirlLayout android:id="@+id/timer_ads" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" /> And it always results in Binary XML file line #117: Error inflating class com.adwhirl.AdWhirlLayout and another interest...

UITableViewCell with dynamic content, dynamic layout and thus a dynamic height

Hey guys, I have a UITableView which sometimes just stops responding when its been loaded. I have no clue why this happens and I was wondering whether it could be the layouting of the cells which I do in cellForRowAtIndexPath, because my content is dynamic and therefore the layout of the subviews has to be adopted each time. Is there...

3 columns: one with max-width, another two with min-width

Three columns must fit the width of the parent container. The left and the right ones must not be less than 150px width. The one in the center must not be greater than 200px width. I've made a reference page using JavaScript. Is it possible to do the same layout without JavaScript? It should work at least in IE 8, Firefox 3.6, Chrome...

In Rails 3: How do I render with layout in respond_with using a custom format?

My problem is similar to the one in this question, but the opposite. http://stackoverflow.com/questions/3876891/how-do-i-specify-layout-false-in-rails-respond-with The controller is sort of a file converter. It responds to many formats. One format is supposed to render an html layout showing metadata. This format need the layout to be r...

css layout height issue with grid like layout

So I have a large form and have grouped the like elements in fieldsets but all the fieldsets have different heights. I float the fieldsets to the left so any extra fieldsets will be pushed underneath (think the next row when reaching the edge of the screen). How do I get all the field sets to have the same height as the tallest fieldse...

CSS layout problem

If I have two 3in divs (a and b) and a 4in div (c). In a ten inch wide outer div. I want this layout 1234567890 # ruler ---------- # header aaaccccbbb # the divs in question But if that outer div becomes 8 inches I want this layout 12345678 -------- aaa bbb cccc Can that be done without JavaScript? I would do a-float:left b-floa...

WPF Grid saving position and also being collapsible

There have been many situation where I need to have a resizable area. It seems that using a grid and a gridsplitter to resize the columns is a good idea. However, with this I am unable to do one major thing. That is collapse one of the columns after resizing the grid. Also, saving the position of the grid splitter requires me to have atl...

Android proper use of setId()?

I am working on a gauge set that will have multiple faces(views) of a gauge. Also the set must be able to be expanded or shrink according to use ie maybe a linkedlist. When I set the gauge/view thereof up with a hard coded xml id and put the gauge into a gallery, it kind of works. However, I need to add multiple of these gauges into the ...

Qt QLayout inside QDesktopWidget

I want to do universal method to set position of my widget. All I wanna get it is set right coordinates for my widget wich must always be in right bottom corner of desktop. My widget can change his height (or maybe width) but it must have adjusted size by both ordinates... (too many words) My idea is using QDesktopWidget as basic widget...

WPF - Prevent Autoresize of ListBox on new Databinding?

Hey all, I currently have a window with a listbox within in. The listbox shows the results from a search. The problem I currently have is that when a search is performed and enough items are added to the listbox, the listbox expands vertically and forces the form to expand vertically as well. I know I can fix this with a maxheight, b...

Android Eclipse ADT device configuration for EVO 4G 4.3" layout

I'm trying to create an ADT layout configuration to match an EVO 4G screen, with its 800x480 resolution and 4.3" screen. The emulator I created by just specifying WVGA800 in the SDK Manager seems to match my physical EVO device perfectly. However, when I try to create a Layout device config (the one you select when you edit an XML view)...

Is there a way to export an eclipse project layout ?

it could be useful to export just the project layout, in a text format, for example : src/main/java *net.foo.bar **MyFirstClass.java src/main/config *myconfigfile.properties etc It could be useful for sharing and talking about project organization, without making a screenshot. And it will be possible to c/p a file name or a directo...