layout

Android XML Layout - 4 ImageViews on one screen

Hello, I thought I have understood the XML layout of Android, but it seems that I haven't. I want to have four ImageViews on one screen, to view four images at the same time. It should look like this, where A to D represents the image views: DDDAAA DDDAAA BBBCCC BBBCCC How can I do that? I tried it this way, but it's not working. The...

What are the differences between the CSS and Latex box models?

What are the differences between how CSS and Latex organize boxes? (Either paragraph or graphical elements.) ...

[Flex 4] How to bottom-align cells in a DataGroup using TileLayout?

I'd like to bottom-align cells in a tiled DataGroup, so that rows grow bottom-top instead of top-bottom. I guess what i'm looking for is something like RowAlign.BOTTOM, but that doesn't seem to exist. Rows should have fixed heights and gap, so RowAlign.JUSTIFY_USING_GAP and RowAlign.JUSTIFY_USING_HEIGHT won't work for me. Any hints? ...

New "hidden footer" works, but still overlaps content at the bottom of the screen.

Hi, I'm in the middle of designing http://www.vanessacaroline.com and in need of a bit of CSS assistance. If your current screen resolution doesn't make the problem obvious, try re-sizing the window so that the sample 2-column layout would push the footer--most simply demonstrated by grabbing your browser window's bottom edge, and drag...

Android: Placing a view in an arbitrary location

Hi. I have been trying to place a view in an arbitrary location. My aim: To overlay some rectangle of a JPG/PNG, given coordinates that relate to the JPG/PNG, with some other view, say, Gallery, or some video. I don't want to use AbsoluteLayout, as it is depricated. Therefore, I am using RelativeLayout, defining a dummy textbox as a p...

Infragistics XamDataCards Layout WPF

I am writing a simple xaml in an attempt to give the user a choice in how they want to view information. One of the view choices I would like to use is the XamDataCard from infragistics. Here is the xaml code I have written so far: <User Control xmlns:igDP="http://infragistics.com/DataPresenter"&gt; <igDP:XamDataCards Da...

Why can't I add elements after a GridView?

I've got the following layout XML file: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <GridView android:id="@+id/main_grid_screen" android:layout_width="fill_parent" android:...

google chrome & maybe others weird layout issue

Hi, I am using a jquery plugin called masonry. In IE & firefox, the site works as it's supposed to. However, in google chrome, the layout elements get stacked on one another. If I click the menu items on the left, then the plugin reloads and the site looks like it's supposed to. So, I think it must be a timing issue. Any thoughts on h...

Implementing Android Action Bar

I am working on creating an Action Bar like the one from the new Android UI Patterns and I am running into a bit of trouble. I have a ViewSwitcher with two layouts in it. When the user taps the search button I animate between the two layouts. The problem is that the layouts are different sizes and I can't figure out how to make them t...

Creating a tabbed UI without using Layout

As per the android developer docs for creating tab UI you need to have a TabHost and TabWidget and the TabHost must be the root node for the layout. All perfect, I tried the example and everything's fine. Just while looking at the API Samples of tabs, I came across tabs1.java (http://developer.android.com/resources/samples/ApiDemos/src...

better Android XML Layout Editor than the one in Eclipse

Hello, I'm searching for a better Android XML layout editor than the one in eclipse. Preferable placing items by drag and drop to the correct X/Y position. With the current editor I have to try out figures to place it at the exact position ... is there an easier way ? (RelativeLayout is used) ...

Android ==> Which layout should i use?

I want o be able to add items to my layout, and set the exact position of these items. x,y,width,height. I am currently using AbsoluteLaout which is deprecated, is there any other layout that allows me to locate objects on the screen, by specifying their x,y? I also need to be able to read the x,y of all these objects on the screen. I al...

Random Tile layout

I need to place tiles on a large grid radiating from a central point in a way that looks organic and random. New tiles will need to find an open space on the grid that is touching at least 1 other tile. Can anyone point me in the right to direction to anything that might help with this? Or some basic concepts I can read up on that are i...

Android layout manager available for Netbeans 6.8

I just Installed android 2.2 as a NetBeans 6.8 plugin, it works but I'm missing some tools like the layout ui manager, ïs this a ide specific tool or tis available for all of them? ...

Which layout do you suggest

Here is a video of my app: It's currently using absoluteLayout, and since absoluteLayout is deprecated i decided to change my layout. So what Layout do u suggest using for this app? Please see the part of the video, that the game has started, that's the only part with absolutelayout. Thanks ...

Button In FrameLayout ==> Change y? Android

I have a button in my FrameLayout. When the user selects the button i need to bring the button a little bit higher, so decrease it's y. How can i do this in code? ...

Rails How to use the main layout in a plugin controller

I am writing a plugin for Rails and I want to be able to use the main layout within the plugin. The usual style layout :layout_name , doesn't work for some reason. Am I missing something? A tip will be greatly appreciated. ...

Gallery and fullscreen ImageView, problem in putting them together.

Hi all, I will try to be as clear as possible. Here What I am trying to do An Image Viewer, where Image would be display as big as they can on the device screen. For this purspose and for a better user experience, I thought of a Gallery. Untill there everything is OK! The problem The problem is that in the function getView of my Ada...

Align text to the center of a div

I have a div thats about 200px x 40px. Sometimes this block will contain a single line of text and other times it will contain two lines. In the case that it contains 2 lines of text, I have adjusted the line height so that it looks balanced inside of the div. However, in the case that there is a single line of text, the text lines up w...

Question about GridBagLayout in Java

Hi .. When I am using GridBagLayout , whenever the window is resized the component locations change to the fit new size .. Now I want to change the location of a component after an event ( like a mouse click on any button ) until the component goes out of the window (it's like the properties or toolbox window in Visual Studio 2008) , I...