layout

Correctly aligning image captions

How can I achieve a layout like this? Right now I'm using this HTML: <div class="image"> <img> <div class="caption"> Caption Text </div> </div> And this CSS: .image { background-color: #2A2A2A; } img { max-width: 590px; } But the .image box is too big (since it expands to fit its parent): ...

Custom Android Widget and Eclipse Intellisense

I am in the process of putting together a little Android app. I have created a couple of widgets by extending the ImageView and ScrollView widgets. The problem that I am having is not with the code itself (i.e. everything runs wonderfully) but rather with the Eclipse "intellisense" in an XML layout. If I am using the native android wi...

Sizing a view/layout at runtime

I have a "header" in my main layout that consists of a title TextView and a Spinner control. I'd like everything below the spinner to be the contents, and change the contents using the spinner. Some of the contents would just be a single (long) TextView, but some would consist of a multiple TextViews and maybe even a Drawable. From wh...

How to make wrapped text in-line with button in Silverlight 4?

I would like to have some wrapped text followed by a button, but I want the button to appear immediately after the last line of text. Kind of like this: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. [The Button] Here is my current attempt at doing so, but th...

[Zend Framework] Do an ZendX autocomplete in a layout

Hi there, I would like to use ZendX_Jquery autocomplete in a partial, which is in my layout. How can I do that : My layout : <div class="prefix_11 grid_5" id="header_search_engine"> <?php echo $this->partial("/common/_search_engine.phtml"); ?> </div> An action : public function autocompleteAction($search='') { $this->view->...

Stretching 4 col template with two fixed columns in the middle and custom SOC. Possible?

Hello :) The html code source order should look like this: <body> <div>col2</div> <div>col3</div> <div>col1</div> <div>col4</div> </body> and should look like this: <----------------------100%-----------------------> +--------+-------------------+-----------+--------+ | col1 | col2 | col3 | col4 ...

Proper HTML alignment/sizing of two adjacent 50%-width/equal height fieldsets with a 100%-width below?

Hi - I would like to lay out an area like this: ---- ---- |A | |B | | | | | ---- ---- --------- |C | --------- where each of the three boxes is a <fieldset>. Box A and B might be populated by different amounts of items, yet they should both be the same height (the height of the one that needs to be larger). Box C should be 1...

Android: Stretching ImageView with background

I have a landscape layout that features a vertical LinearLayout of buttons on the left side of the screen and a user-defined picture on the right of the screen. The design I'm working from calls for a double-stroke border around it, which I implemented by creating a rectangular shape background with the border being the outer color and ...

how to create circular button in android?

Hello All, I want to create a circular button having a plus and minus sign on to this and exactly used in Android Contacts application like shown in the image as below: If any body knows please tell me.. Thank You All..... ...

Android: Using the same ListView for different lists

Hi, I have a 3 buttons, say LanguageButton, CountryButton and PinCodeButton. When LanguageButton is pressed, I must display a list of languages. Similarly for CountryButton a list of countries and so on. Only one list is to be displayed at a time. My question is whether it is better to define a single ListView in my layout or 3 separa...

WPF Scroll View Delema

I've created a UserControl that contains a ScrollViewer panel that contains a data bounds ItemsControl. When I add this UserControl into a Grid's cell in the parent Window, the ScrollViewer expands to contain all of the items in the ItemsControl rather than constraining to the dimensions of the cell. Because of this, it won't scroll the...

WPF. Layout issue.

Hello, guys I have StackPanel. I need place there TextBlock with TextAlignment = TextAlignment.Center[Center of stackPanel] and button at right side with small margin. How can I achieve such layout with wpf. How can I add button to StackPanel, that my TextBlock doesn't move from center. ...

grouping texts plus images + round edges in android.

i was requested to make in android a view that groups several items like checkboxes or text views in vertical rows, separated by transparent dividers while the background is with a certain alpha level and the edges are round. I thought of two solutions and i hope for some feedback on good\bad or other solutions if you got'em. just use...

How come the exact same version of Google Chrome shows different layout?

I have google chrome on two computers here. Both run XP. I get some DIVS dispositioned in one of them, and perfect in the other. They are the exact same version when I check "about chrome"... I have cleared cache and all. Very strange to me.... Any ideas? Also, I have the same issue with IE8, but I don't know if it is the EXACT sam...

Android: change tab colors, tabwidget

Hi All, I was wondering... how can I change the tab colors when selected and when deselected. Here's a picture of how it looks now: http:// i.imgur.com/FOT4Q.jpg I would like my tabinterface will look like this: http:// www.technobuzz.net/wp-content/uploads/2010/02/seesmic-android-260-208.png So i can't change my colors of the tab...

how to change font color in selected/focused ListView items?

Hi, I am struggling with this which apparently is a very simple effect but incredibly haven't found any intutitive way for doing it in Android. I have a ListView and I managed to customize the background images so the selected item gets highlighted by getting a new background drawable. This I do creating a new style where I set the and...

reset.css help not resetting

I have a reset.css style sheet that looks like this, HTML * { margin: 0; padding: 0; padding: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; text-decoration:none; } body { font-family:Arial,Helvetica,sans-serif; font-size: 83%; } ul, ol,...

Android custom title bar, does not work with android:label from manifest.

I have a custom title bar that I would like to apply to all my activities. I have searched online and found a few ways of doing that however I have ran into a problem. It seems that despite the fact I have a TextView in my titlebar with id @android:/title, Android will not use the value defined in the manifest in android:label for each ...

Create a horizontal scrolling layout similar to Masonry

How can I achieve the same effect as jQuery Masonry, but horizontally? I.e., I'd like to arrange elements of different size in a brick-like layout that minimizes white space, where the container is of fixed height, and new elements will be added horizontally. ...

Java JFrame layout probelm

Hi all, This is the problem, I have a class MainWindow that extends JFrame in one of the setup routines I set the layout of the class to a new CardLayout(). This all works fine but when I go to request the the layout from the JFrame and cast what it returns to a CardLayout I get errors because it is returning a BorderLayout. I think you...