layout

How can I make sure a ListView item always resizes to show all rows?

I have a panel which contains a TableLayoutPanel which itself contains a number of ListViews and Labels. What I'd like is for each list view to resize to fit all of it's contents in vertically (i.e. so that every row is visible). The TableLayoutPanel should handle any vertical scrolling but I can't work out how to get the ListView to re...

Misplaced Layout after "home"-button and/or powersave screen

Hi, I have an app which also includes a service with a Notification. Right now I am experiencing the foillowing problem : I start my app which will work fine after couple of minutes the powersave kicks in and I get a black screen I (or hte user) click the Menu-button to dismiss the black screen and to unlock the screenlock Now my (full...

Extra space in Opera

I'm trying to put a progress bar inside td of my table. Here's the code: <td style="width: 150px;"> <div style="height: 16px; max-height: 16px; overflow: hidden; border: 1px solid #80C622;"> <div style="height: 16px; width: 10%; background-color: #bbea7d;"></div> <div style="margin-top: -16px; text-align:...

Qt - How to place a QTextEdit with left and right margins in a QVBoxLayout?

How to place a QTextEdit with left and right margins in a QVBoxLayout? I could use, of course, a QHBoxLayout, place the QTextEdit into that horizontal layout in between to spacings (addSpacing(40)) and only then the horizontal layout could add into the vertical layout, but want to know if there is a direct way of doing that. ...

AdMob orientation problem in Android

My application integrates with AdMob ads. When I change the orientation it should fit the screen depending on orientation. In portrait mode it is working fine, but when I changed to landscape mode the ad size I am getting in portrait mode is the same size of the ad displayed in landscape mode. I am adding the following in layout page. ...

android R.layout concept

can I genrate java code instead using xml code ? lets say i want to do this xml code in a loop : <TableRow android:id="@+id/LivingCreture" android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:text="LivingCreture" android:gravity="left" android:id="@+id/LivingCretureT" android:layout_width...

How do I move an image (ImageView) in AbsoluteLayout to X Y [android]

my main.xml look like this: <AbsoluteLayout android:id="@+id/AbsoluteLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"&gt; <ImageView android:layout_height="wrap_content" android:layout_x="247dip" android:layout_w...

UILabel automatic size and position

I want to draw a text with different colors and the only way that I've found for do it is to split every piece of string-color in differents UILabels, so currently now I have four UILabels one after another, lets say, label1, label2, label3 and label4. The problem with that is with the size and the position of every labels, I've not fou...

Two tables side by side in one column LaTeX environment

The question is similar to this one: http://stackoverflow.com/questions/1491717/how-to-display-a-content-in-two-column-layout-in-latex but about placing two tables side by side. I have two small tables looking like that: \begin{table}[t] \begin{tabular}{|c|l||r|r||r|r|} %content goes here \end{tabular} \caption{some caption} \end{tabl...

Creating a Theme for Magento

Hello. I am looking for good tutorial which shows how to create your own theme for Magento 1.4.1.0. I found some on Google, bet they was were uninformative. I am looking for tutorial which shows how to create your layout and a full theme. ...

css anchor div to foot of page

I may bounce my head off the wall shortly, I can't believe that something as stupid as this has utterly defeated me ... therefore I turn to you, Stack Overflow ... for guidance and enlightenment. Problem: Sit div at foot of page, 100% width, outside of any sort of wrapper. Proposed Solution: http://ryanfait.com/sticky-footer/ Implem...

Making a vertically scrolling parent div which does not cause overflow of children

I have something as follows: <div style="float: left; height: 20px; overflow-y: scroll"> <div>hello this is a test</div> <div>hello this is another test</div> <div>t1</div> <div>t2</div> <div>t3</div> </div> The parent div grows to the appropriate width to fit the largest child (which is what I want). However, the vertical ...

android dialog don't take parent size

Hello i create a dialog to zoom on an image, But my content is 240px and i would like to grow it to phone width, to "fill_parent", Could you tell me what's wrong here ? my picture stay small 240px, not 480px. Thanks final Dialog dialog = new Dialog(myview); dialog.setContentView(R.layout.zoom); dialog.setTitle(""+passInfoNom+" "); imgVi...

Unexpected visual element in a simple Tab layout

The screen shot below is of a simplified version of the application from the Tab Layout tutorial. You can see a black horizontal line below the tabs. Why is it there and how can I remove it? ...

Android - status bar prevents full screen

My app correctly runs in full screen when it's started. However after minimizing and then returning to the app, the status bar pops up and pushes my views down a little. How can I keep the status bar from moving my views? Here is my layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/a...

10K, 20M, 21V kudos etc... in Ruby on Rails

I am creating a snippet-site where people can rate snippets, just like votes on SO. Currently, when a snippet has over 999 kudos, it looks like on this mug: So what I want is to do a 1K, 1M, etc... kudos like on SO: ----- |999| ----- **user does +1** ----- |1K | ----- **one million kudos** ----- |1M | ----- The same goes for billi...

How do you put two Views in a horizontal Layout so that one is aligned to the left and the other one - to the right?

Let's say you want to have a TextView and a Button in a Layout with horizontal orientation. Can you have the TextView aligned to the left and the Button - to the right? --------------------- TextView Button --------------------- ...

Best opensource CSS interface for web systems

I am looking for a good open source professional css design layout interface to use in my web-based system. Maybe something similar to an XP classic theme. Does anyone know such a theme? ...

CSS issue on my website, can someone help?

Hi, I need some help sorting out a CSS issue with my website, I have tried everything I can think of but none worked the way that I wanted. You can view the issue I have here: http://dev.michaelcarrano.com/blog.html You will notice the tabs are floating instead of being connected to the content part below it. Here is a link to the CS...

WPF Layout question... How to scroll and auto-size content?

All, I am coming from a primarily ASP.NET background, but have experience with Windows forms as well. I am trying to learn how to layout my WPF app. I have the following code: <Grid> <Grid.RowDefinitions> <RowDefinition Height="40" /> <RowDefinition Height="*" /> <RowDefinition Height="40" /> </Grid.R...