layout

Unable to display google maps in a dojo layout

Dear All, I am a real newbie in programming and now I have to combine Google Maps and Dojo. Both alone are fine but when I try to implement a Google Map into a Dojo content pane which is embedded in a border-container it simply does not work. I think there is a problem with the naming of the divs but perhaps there is something else to t...

Android: Creating a Scrollable Layout

I'm trying to create a "scrollable" layout in Android. Even using developers.android.com, though, I feel a little bit lost at the moment. I'm somewhat new to Java, but not so much that I feel I should be having these issues--being new to Android is the bigger problem right now. The layout I'm trying to create should scroll in a sort o...

Adding to LinearLayout another Layout and handle this Layout in separate Activity

I have an Activity which uses a layout with a LinearLayout in it. Now I want to create in runtime a subactivity which loads some other layout and add this layout as item of my LinearLatout. How to do this? Please provide me with code example. ...

Android WebView zoom controls are not moved after resize

I use a Webview to display an image with zooming and scrolling enabled. The WebView is set to wrap_content for the height and width and the zoomcontrols are enabled. If the image is smaller then the screen the webview will show just the image and there is lots of space left on the screen. The moment the user zooms the WebView will grow...

Is there a good tool for doing Android layout design?

I have tried DroidDraw and the Eclipse layout editor and both seem very difficult to create anything other than very simple layouts. I find myself dropping back to the XML file to be able to manipulate it. Has anyone found any good tools to design the actual screens? I am not looking for a mock-up tool... but an actual tool to create...

How do You Center a TextView in Layout?

I have a complex layout, part of which features a value centered over a label, with + and - buttons on either side of the value. I want the value to center between the buttons, whether it is "1" or "99". It looks fine when it's a 2-digit number like "99", but when it's a single digit the number is left-justified. How do I properly cen...

Content based website: Django project layout/architecture

I'm taking over a project with which the company are pretty unhappy with the usability of the website. It's using django, and the website is a very content based, user driven website. Having looked through the layout of the django folders, I'm beginning to question its structure. There are many different types of content in the website...

Pass a variable from view to the layout's partial view

I am trying using a partial to render the application's menu, capitalizing the 'tab' using CSS, based on a local variable (tab): <%= link_to "employees", jobs_path, :class => (tab=="employees" ? "selected":"unselected") %> <a class="unselected">jobs</a> <%= link_to "tags", tags_path, :class => (tab=="tags" ? "selected":"unselected...

Buttons are wrapping when rendered HTML/ASP.NET

I am using ASP.NET. I have an html table. One of the table cells (td) has two buttons. Just recently, when it is being rendered it is wrapping the buttons. Can anyone tell me why this is happening? Thanks! ...

CSS to Make 2 Column Content Areas

I'm trying to stray away from using tables to form the layout of my content, and I can think of two alternatives that I'd like to better learn: (1) styling list items to be side-by-side, and (2) using div blocks that float onto the same line. Both of these would have their own uses for what I'm working on. I'm already using div tags to ...

GWT : Composite not displaying

I have a this code for the layout : grid = new Grid(15, 15); tiles = new Tile[15][15]; for (int i = 0; i != 15; i++) { for (int j = 0; j != 15; j++) { tiles[i][j] = new Tile('a'); grid.setWidget(i, j, tiles[i][j]); tiles[i][j].setVisible(tru...

IE8 developer tools missing some styles

Hi, I'm having some problems with some CSS properties in IE8. I've tested my site in IE7, Chrome and Firefox and they work fine but IE8 is having some layout issues. I inspect the developer tool option on ie8 and I've noticed that some of the properties I set in CSS are being ignored by ie8. For example: #header { position: rela...

Transparent View with Android

Hi everybody, I try to have a bitmap moving over my android application. I m be able to have my bitmap behind my text view, but not over them. public void onCreate(Bundle savedInstanceState) ... // ll is a FrameLayout ll.addView(text1); ll.addView(text2); ll.addView(new Panel(this),200,400); my Panel class is de...

Is conditional comments the way to go really? And how does it work?

This previous Q about a div positioning problem in IE gave several answers where they told me to use conditional commenting. http://stackoverflow.com/questions/2803199/how-come-this-relative-positioned-div-is-displayed-differently-in-ie How does it work, I mean how do I implement conditional comments? Ex: <div class="normal"></div...

Android relative layout problem with gravity

How can i put textview with id="naslov" to the center? I also tried with layout_gravity="center" but that doesn't work either. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/naslov" android:layout_wi...

Prevent a control in a grid to change its column width

Hello, I can't figure out how to manage properly the width of a grid column with a user control in one of its cell. I have this xaml for a window: <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto" /> <RowDefinition Height="auto" /> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.Colu...

Problem with sizes of EditText and Button in Android

I want to make the edittext width the same size as button. My EditText is currently very small. I use relative layout. <TextView android:id="@+id/aha4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="17dip" android:text="Vzdevek:" android:layout_below="@id/aha3" />...

Basic Android Layout Question

Hi, I'm new to android but I've been working my way through the tutoials. Still trying to get my head round layouts in a non-html world and was wondering how to achieve the following.... 1) I'd like to set a tiled background to fill the screen behind the whole activity 2) I'd like to place a graphic and a button underneath it centred ...

Layout Problem on Bigger resolution Phone like Nexus one?

dear friends, i have created application using layout font sizes in "pixels" font and other layout looks fine on HTC hero and Motorola Droid but in nexus one which is bigger resolution phone every thing is messed up. for example , i have used font 18px which is bigger size in HTC Hero and Motorola but in Nexus one it is looking very ...

Additional information with widgets in django

I am displaying a django widget, with which I need to display additional information (something like a tool tip) that is attendant to the widget. I essentially have a widget that asks a random question, which is self contained. {{ form.fieldname }} displays the full widget which looks something like (à la the widget's render method):...