layout

Android - create Layout like the iphone weather app

Hi I am trying to do a layout similar to the one used in iphone for the weather app: http://www.spirituality.org.za/uploaded_images/MTN-South-Africa-iPhone-Weather-app-719447.jpg This layout scrolls left/right very smoothly, and only loads the weather as you scroll. HorizontalScrollView cant be used because it loads everything in memo...

WPF: Changing the layout of Tabs in TabPanel

Instead of at the top I wan't my tabs on the left side. I changed the template for the the TabControl so that the TabPanel would appear in first column and the second column would host the content. Problem is I'm not sure how I change the TabPanel's layout so the tabs appear stacked vertically. I know in normal ItemsControl objects its...

Can't get vertical align to work with img tag inside of a list

Pretty basic question - I can't seem to vertically align an icon inside of a list. My css looks likes this: #top_content img { float: left; } #top_content ul { float: right; } #top_content li img { vertical-align: sub; } #top_content li { list-style-type: none; display: inline; } #top_content li a { text-decoration: none; color: ...

Issues with Android soft-keyboard interaction

I am designing an Android app and I'm having a couple of layout issues. I have a screen with 3 EditTexts on it in a row, and I would like for the 'next' key on the soft keyboard to cycle between the EditText fields. As for now, the 'next' key has no effect. Also, when the soft keyboard is displayed, it covers up the third of the EditT...

How do I stretch the contents of a HeaderedContentControl?

I have a HeaderedContentControl that contains a TreeView. <HeaderedContentControl Header="Steps" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <TreeView Name="WizardSteps" ItemsSource="{Binding WizardSteps}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <!-- Hierarchical data templates h...

Custom view in xml layout

I've created my own view by creating a subclass of the SurfaceView class. However I can't figure out how to add it from the xml layout file. My current main.xml looks like this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:...

Refresh layout of dijit.layout.ContentPane

I have a dojo TabContainer that has a BorderContainer child, with a left region and a center region ContentPanes. -TabContainer -BorderContainer -ContentPane (left) -dojox.layout.ContentPane (center) I have it setup so that the left ContentPane is collapsible (by replacing it with a slimmer ContentPane) which works...

Android how to make View highlight when clicked?

I have a linear layout in which each row is inflated programatically and I want the rows to behave like the ListView when clicked on. That is, I want the row to highlight in the exact same way/colour that the default ListView does. How would I go about doing this? ...

Android how to make ImageView with a minWidth have a border?

I want to diplay an image so that it takes up a minmum width of the screen and should scale in its aspect ratio (the image width might be smaller or larger than the minimun width) I also want to have a fixed size border around this image. This is my xml section for it: <ImageView android:id="@+id/detailed_view_boxArt" an...

Getting correct sizing behaviour in a custom Swing component

I'm creating a custom Swing component that inherits from JPanel. What is the right way to override/implement the various sizing methods (getPreferredSize, setPreferredSize, getMinimumSize etc.) in order to get "good behaviour", particularly with regards to: Working with different layout managers Behaving correctly when setPreferredSiz...

drawing layout through canvas

I have a layout like : <ll vertical> <ll horizental> <textview></textview> <textview></textview> </ll> <ll horizental> <textview></textview> <textview></textview> </ll> </ll> The problem is i need to display this as part of my whole screen. i am doing mCustomDrawableView = new CustomDrawableView((Context)this, R.drawable.mychar...

WPF flush right text - possible easily?

This is a nice-to-have for our designer. She has a layout where a form title, on the top right of the form banner, is two words in English. There are several forms so the words are a little different each time. So the effect is something like: | firstword| | form| There is a fancy swoopy thing underneath this and some other...

How to center an ImageView and then offset it to the left or right?

I have two Image Views that are two football helmets facing each other. I'm wanting to center them and then offset them left/right a little to provide a little space between them. Here is one of the image view's xml at the moment. <ImageView android:id="@+id/hometeam" android:scaleType="centerInside" android:layout_width="fil...

Android: Creating a horizontal ScrollView with columns of text

Hey all, I'm wondering if anyone knows of any method for taking a bunch of text and displaying it in a ScrollView that has multiple columns that scroll horizontally. I'm trying to create an experience very similar to Aldiko or the Kindle app in which the user can tap left or right to go to the previous or next page of text. Hope this ...

Can't import my own Visual Studio Settings

I've been having problems with the windows and toolbar layout not being remembered between sessions and, having followed all the advice and suggestions posted here and elsewhere, I decided that the simplest thing to do would be to create the layout I wanted and export it and then just import it again at the start of each session. So, I ...

view from layout

i came across this http://www.brighthub.com/mobile/google-android/articles/48845.aspx i understand i can create a view. But i want to define a layout xml and put that into my view. for example in layout i will have a few textviews, i will set value to them dynamically and add them to view and display. is this possible if yes how ? if n...

how to add jtable and Jtextpane in single frame in java??

Hi All, I want to show jtable containing my course information,it is working fine as i have showed a seperate jtable.... Now the problem is that i want to show jtable(containing my course info)on left side,along with JtextPane in a single frame on right side so that user can select item from jtable and paste it in right side(JTextPane) i...

dividing jqgrid dialog (form edit dialog) into two layouts

I have jqgrid that has 23 headers. It has edit dialog with a form too. The problem is from 23 headers, 2 headers are non-editable and the remaining is editable. When I click edit, it will show a long form (with one column) with 21 rows. Can I change the layout to a form with two columns and every column has half of my total rows? ...

Make text avoid a div, layout question.

Here is a pic So this is a picture of a website I host for a non-profit organization. The picture is in a div that has the following attributes: position:absolute; right:50px; top:50px; What I want to do is make the text more visible because on different resolutions the picture will be in different locations, so I can either: -mak...

CSS problem with header and missing right space between table and page's border

Hi, I'm writing a simple web report with a simple layout for internal use. The layout consists in a header on top and a content below, usually a table and a little more (very simple). My problem is that when the table is larger than the browser's viewport, the layout messes up: the header is wide as the viewport and not as the page bod...