layout

Easiest way to render this component?

I'm currently developing an android app that is going to render posts from an online forum. This is the layout I had in mind for rendering the posts: http://data.fuskbugg.se/skogsturken/component.png My question is what the easiest way is to accomplish the above layout? The hardest part is the text area that should be able to display...

Spacing ImageButtons in Android

How do you space ImageButtons? With RelativeLayout, I can have them side by side but I want a gap between them. How do I place the buttons in the center and at the bottom of the screen? ...

How can I add paging to an ItemsControl?

I'd like to show items in an ItemsControl in 3*4 pages One cool feature is that I can change the ItemsPanel of an ItemsControl: for example: <ItemsControl> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <UniformGrid Column='3' Row ='4'/> ... How can I unable paging though? If the panel is a StackPanel, scrolling/paging is...

How to position this using only CSS and no tables

I want to position this HTML snippet <div id="D1"> <div id="D1.1">HeaderText</div> <div id="D1.2"> From <input id="from" name="from" value=""/> </div> <div id="D1.3"> To <input id="To" name="To" value=""/> </div> </div> this way +-(D1)-------------------------------------------------------------------------+ |+-(D1....

Android dynamic background

Hi, I am somewhat of a new android developer and have a question regarding changing the background dynamically at runtime. What I want to do is set a background color in a LinearLayout Tag, and later change that background color in my activity class. This code below is not working. Am I missing something or is this the wrong approach...

Changing View properties after onCreate().

First time poster, new to Android, and I seem to have hit a roadblock on this problem: I'm creating a dynamic layout, consisting of several identical "composite" objects (these are basically "floating" LinearLayouts, each containing an icon (ImageView) and a caption (TextView)). The (x,y) coordinates of each LinearLayout are subject to...

How to use jQuery draggable with fixed position?

It works perfect in firefox, but in ie, chrome and opera it doesn't work. <div> has position:fixed, and is .draggable() and it doesn't work except firefox ...

How do I determine how much text will fit in a TextView in Android?

I have a layout that looks something like this: [TextView 1] [TextView 2] [ TextView 2 spill-over ] Essentially, I need the contents of TextView 2 to wrap to the next line, but start where TextView 1 starts. I was thinking that if I knew how much text would fit into TextView 2 before it runs out of space on line one, I could take the ...

Android view fills screen using linerlayout

Trying to write a game such that most of the screen gets filled with my GameView (custom view, derived from View) I then want to have an area at the bottom of the screen for messages etc. In the following I'm just trying to put a button there to illustrate the issue. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:...

Best Drupal layout techniques

playing with template files tpl.php Panels Fusion + Skinr Display Suite How do You define the layout of Your Drupal sites? Which techniques do You find most useful? I'm quite old-school and stick to templating. It's true that I haven't practices the others too much. Yet, I'm also afraid that HTML output from Panels, Fusion or other f...

ListViews with multiple item layouts

I have a ListView on my ListActivity and I'd like the rows of the ListView to be 1 of 3 different layouts. The first item in my list is always going to use layout A, the second item in my list is always going to use layout B, and all subsequent items are going to use layout C. Here is my getView function: @Override public View getView...

Flex Builder 4 Spark equivalent to Yahoo Astra Flash Layout Dragbar

I am currently looking at a couple of ways to integrate UI components into my current Flash project. I usually use Flash Develop and I have recently been evaluating the Yahoo Astra Flash library and I really like the following example (especially the horizontal and vertical drag bars): http://developer.yahoo.com/flash/astra-flash/layout...

How do I access the views inside the layout when I reuse it multiple times?

I have read the Android UI trick 2 on Android developers, which tells people how to include a layout in another layout file multiple times, and give these included layouts different id. However, the sample here is overwriting the layout id, not the id of the views IN this layout. For example, if the workspace_screen.xml looks like this: ...

GridView problem: Adapter.getView() never called

Hi, I've ran into a strange thing while making a list of custom views. I had two ListViews displaying the same data using the same adapter. One of them was inflated from XML and the other was created programmatically in another Activity as it showed/hid according to touch event. They worked in both cases. Later on I replaced the ListVie...

About JavaFx Layout.

Hi all,I have a javafx layout question,following is my code,you can run the code directly: import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.VBox; import javafx.scene.control.TextBox; import javafx.scene.layout.HBox; import javafx.scene.paint.Color; import javafx.scene.Group; import javafx.scene...

How can I move all the controls in a panel on form resize?

I'm playing around with a project, C# .NET 4, and I'm kind of stuck. I have with a panel that will be dynamically filled with checkboxes based on the number of items in a folder, which works fine. But when I resize the form I want the checkboxes to move in the panel, like a little grid of checkboxes that takes up what space it can. Th...

CSS box stretch to occupy all available room

So I'm trying to create this layout. Here is a picture of the 3 "boxes" that constitute the page: https://dl.dropbox.com/u/9699560/layout.jpg And here is my attempt: https://dl.dropbox.com/u/9699560/map.html The red box is a Google Map, so if its height isn't specified, it shrinks to zero. What I am trying to do is the following: Th...

EXT JS Layout XHTML

Hi, I am trying to integrate ExtJS 2.0 with Java rich faces. I am trying to obtain a basic layout using Ext.Panel. So I have written a code like: Ext.onReady(function() { Ext.QuickTips.init(); var myBorderPanel = new Ext.Panel( { renderTo: document.body, width: 700, height: 500, title: 'Border Layout', layout: 'border', items: [ { ...

how to get web page size, browser window size, screen size in a cross-browser way?

how to get windowWidth, windowHeight, pageWidth, pageHeight, screenWidth, screenHeight, pageX, pageY, screenX, screenY in IE/FireFox/Chrome/Opera? or jquery, GWT? as showed in picture above! thanks! ...

Set distance between spans using margin

Here is two spans(in real life a lot of spans) situated at the web page. I would like to set the distance betwwen them. I want to use margin-bottom attribute for this, but I can't see any affect of using it. The spans are still on the previous position. That is wrong. Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit...