layout

engine for cross-platform layouts like these ones for mindmapping

I want to create a program. Part of its gui is similar to mindmapping or yahoo-pipes (you got the idea). And I want to be able to port this program to Windows, Linux and Android (don't really care about Macs). So can you help me to choose a cross-platform library for drawing and operating such GUI? I haven't chosen the language yet. I ...

onclick EditText Stretch problem!

dear friends, i am facing issue that when i click on edittext its width gets changed i want to fix its width according to screen so that it covers whole screen and then button at right side of it. here is the code ...

Android floating view (over other views)

I've been messing around with this for a few days now, hopefully someone here can lend me a hand. I have a simple two-column layout, the left side is a navigation bar with buttons, the right side is a content panel. When the user taps one of the buttons (say, the third one down), I'd like to have a floating view aligned to the right of...

Android: findviewbyid: finding view by id when view is not on the same layout invoked by setContentView

Hi all! I have and activity MyActivity that extends from MapActivity. In the .xml file containing the layout I can only include the MapView: However I do neet to find another view that is located in another .xml file. Unfortunately, findViewById returns null. How can I get the view I am looking for? Thanks a lot in advance! ...

How rails render works in controller? Why something it doesn't use layout?

I tried to write render in an action, but layout behavior is different, why? def show # assuming we have a partial in app/views/shared/_panel_show.html.erb #render "shared/_panel_show" # have layout #render "/shared/_panel_show" # without layout #render "shared/panel_show" # Template is missing #render :partial => "share...

Complex ListView example with complex data and complex layout of each row?

Im pulling a list of product objects from a database call and I want to build a ListView of the data in my activity with a non-scrolling header and footer. Each row will consist of a product thumbnail, some data and a button arranged horizontally. I understand that using the ListView I can inflate each row using a separate layout. Most ...

jQuery: Combining "filterable portfolio" and Masonry layout

Hi, I'm trying to combine the "filterable portfolio" (http://net.tutsplus.com/tutorials/javascript-ajax/creating-a-filterable-portfolio-with-jquery/) with the Masonry layout ... so I want my items to readjust with masonery after I filtered them, but they stay in the position where masonery put them... here's my very rough first website...

Vertical Stacking like GTK in Java Swing?

I want to stack JComponents vertically, similar to a JList, but since the amount of items is very low and I want a highly custom interface - I wanted to try a vertically stacked set of components. ...

Resize buttons dynamically

I have a Java frame with buttons and I have defined it using setLayout(null). When I expand the frame, the buttons adjust their position vertically but not horizontally. Any advice on how to make it dynamic? ...

Layout buttons so each divides up the space equally.

Im using a LinearLayout to put two buttons horizontally side-by-side, but I want to each button to size itself to use 50% of the horizontal space. I thought layout_weight of "1" for each button would do the trick, but maybe my layout_width needs to be changed? ...

Android - Should I use multiple activities or multiple content views

Hi, i'm new with android. I'm working on an application using xml layouts. I wish to know which is better: 1. Use few activities and change its contentview 2. Use an activity for each 'view' needed If both works, in which case which option would be better? thx a lot ...

Android Layout: Is reusable component UI possible?

I'll preface this with, I've just started learning Android so be gentle. I come from an ASP.NET / Silverlight background so I was looking for something along the lines of controls. I want to reuse a layout (a ListView item template) in other layouts. Such that in my other layouts I can just add <myListItem /> to show it. Is this, or a...

How can I get the width of a layoutUnit that doesn't include its scrollbar?

I'm trying to make my layout update the width of another element, but I need to get at its width NOT including its scrollbar (if one is indeed present). getMainContentBounds() in this case seems to be returning the entire width along with the scrollbar. I have also tried getSizes() with the same result. myDataTable.on('postRenderEvent'...

Layout of panels with splitters

I have a question about layout with TPanels and TcxSplitter from DevExpress. The main form has some panels A to G. A - F is collected in one panel ABCDEF. ABCDEF contains 3 panels: AB, CDE and F. Panel CDE contains panel CD. Between all limits between panels there are a TcxSplitter from DevExpress. The problem is that the user can tak...

How to determine the View size right after Activity has been started

Hello there :) I want to do some data processing (in a thread) right after my main Activity starts. For that data processing to be started I also need to know a visible size of my main View (which is a LinearLayout currently, but whatever). I wonder how to do that. I.e. I wonder what is the entry point (callback?) I should use to be su...

horizontalCenter parameter discarded in flex 4 vgroup

Hi, No matter what value I put in the horizontalCenter property of the "Browse" button, it just follows the horizontalAlign property of the VGroup. Why is that ? Thanks <s:Group width="100%" height="100%" left="0" right="0" top="0" bottom="0"> <s:Panel id="mainPanel" title="File uploader" width="75%" height="75%" horizontalCenter=...

Android Layout question

My app has 5 different relative layouts that it can switch between by using a set of buttons that is at the bottom of the screen. 3 of the layouts contain only TextViews and ImageViews. The other 2 both have a ListView in them. On the 2 views that contain lists when the soft keyboard appears the buttons that are along the bottom move up ...

How to change orientation of xml "layout" area in Eclipse

The xml files that contains the Activity layouts can be rendered by Eclipse. How do I get that Eclipse screen area to have vertical orientation, not horizontal (inside Eclipse - it correctly shows as vertical in the emulator)? Peter ...

Laying out Views in RelativeLayout programmatically

I'm trying to achive the following programmatically (rather than declaratively via XML): <RelativeLayout...> <TextView ... android:id="@+id/label1" /> <TextView ... android:id="@+id/label2" android:layout_below: "@id/label1" /> </RelativeLayout> In other words, how do I make the second TextView appear below the...

Align Layout to the right in a ListView row?

I'm trying to get listview row to look like the following: | Text-Text-Text <ImageButton> | With the imagebutton snapped to the right edge. How can I do this? Here's the current layout code I'm using. What am I doing wrong? <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.and...