layout

Is there a b5paper japanese style in latex?

My thesis is written in b5j documentclass style. \documentclass[b5j,twoside,12pt]{report} I have a paper that is appended at the end. However this is written in b5paper style as an article. \documentclass[12pt,b5paper,twoside]{article} How do I get the paper to follow the japanese style? Havent found any b5paperj options in the ge...

CodeIgniter and layouts?

What CodeIgniter library can provide this funcionality?? http://media.railscasts.com/videos/008_content_for.mov It seems so simple on rails but I just cant find a simple way to achieve this on codeigniter.. please help.. I hate having to insert my styles or javascript in the body of the document ...

WPF Graph Layout Component

Does anyone know of or even better.. can wholeheartedly recommend a WPF graph layout component (Microsoft Research had GLEE a while back but it hasn't been updated after 1.0 since 2007 and isn't WPF etc) as seen e.g. in the screenshot below? I've seen yFiles WPF and Lasalle's AddFlow for WPF, but are there any alternatives? (c) Scree...

Symfony: how can I load a .css in a page without layout?

Hi, i have the typical cover page with the logining form that doesn't have the layout with the menu bar that the intern pages of the site have. So i have this line in view.yml: signinSuccess: has_layout: false As you know, in this way the .css are not loaded. So what can i do to load the .css? Regards Javi ...

Proportional width of elements in LinearLayout

I have a horizontal LinearLayout and in it I have EditText and Spinner elements. Which attributes I need to adjust so I would get proportional widths: I want EditText to take 3/5 and Spinner - 2/5 of all available width? My code looks like this: <LinearLayout android:layout_height="wrap_content" android:layout_width="fill_par...

CSS Layout-- Make table cell contents appear in row below and set height of parent row/cell

I am modifying a skin for the CKEdit component so that the toolbar is hidden unless clicked. To do so, I moved the toolbar collapser to the row below it using position: relative and top:18px. My goal is to have the parent tr of the anchor element a height of 2px, but keep the anchor at 11px. Is this possible? I cannot alter the DOM, j...

How do you setLayoutParams() for an ImageView?

I want to set the LayoutParams for an ImageView but cant seem to find out the proper way to do it. I can only find documentation in the API for the various ViewGroups, but not an ImageView. Yet the ImageView seems to have this functionality. This code doesn't work... myImageView.setLayoutParams(new ImageView.LayoutParams(30,30)); How...

Building Android user interfaces at runtime with layouts from server

Looking at an earlier question link text based on the same concept,is there an approach to do this via the LayoutInflator? ...

Using a custom typeface in Android

Hi, I want to use a custom font for my android application which I am creating. I can individually change the typeface of each object from Code, but I have hundreds of them. So, Is there a way to do this from the XML? [Setting a custom typeface] Is there a way to do it from code in one place, to say that the whole application and all...

How to truncate HTML to certain number of characters?

I have some content (some from an external source, some specially written) that is displayed in a kind of blog format. I want to cut off the text after a certain number of characters, so currently I'm doing this: <?=substr( strip_tags($a['content']), 0, 400 )?> The problem is, this loses all the formatting and I just get one massive b...

In Sinatra, best way to serve iPhone layout vs. normal layout?

I'm writing a Sinatra app which needs to render different layouts based on whether the user is using an iPhone or a regular browser. I can detect the browser type using Rack-Mobile-Detect but I'm not sure of the best way to tell Sinatra which layout to use. Also, I have a feeling that how I choose to do this may also break page caching....

CSS variable width element to fill in space

In a form, I would like the input:text to fill the remain space after the label to the form is left and right justified. The label have number of characters so I can't set a fixed width on the label. Code example: <fieldset> <legend>User Info</legend> <p><label>First Name :</label><input type="text"...></p> <p><label>Last Name : </lab...

Using java2d user space measurements with TextLayout and LineBreakMeasurer

I have a java2d image defined in user space (mm) to print an identity card. The transformation to pixels is by using an AffineTransform for the required DPI (Screen or print). I want to wrap text across several lines but the the TextLayout does not respect user space co-ordinates. I was using the following to write wrapped text to a re...

auto adjustable layout for all content

Hi sof fellows, I need to dev a very flexible layout for a cms so that the structure auto-adjusts regarding the content. The basic layout min-with layout is suposed to obey 1024px wide and it works fine for the most os the cases, but as we're talking about a cms, the editor very often creates content or copy/paste it from word and the c...

Make part of layout invisible and the other part visible

I would like to make a LinearLayout that was created from xml invisible, and another LinearLayout visible to replace it. The replacement layout starts out as invisible. When I make the originally visible layout invisible, it still leaves space for it on the screen. How can I refresh the screen so that space is gone? ...

LaTeX: How to make a fullpage vertical rule on every page?

I'm using LaTeX and I would like to have vertical rule along left side of page, topmargin to bottommargin, 0.5in from the left edge of the page. I want this on every page, so I assume that means it must somehow be tied to the header or the footer? I've made no progress at all, so I need help with (1) making the full-length rule itself ...

Dismissable banner in Android

I would like to show a banner in an Android activity. The banner should be: Aligned at the bottom of the layout Take all the width and have relative height (say 100dip) Be dismissable When dismissed the rest of the layout should strech to fill the area that was occupied by the banner. What's the best way to implement this in Andro...

Overflow in table cells

I need to create a chat layout that uses all the available space and scales nicely, but has few fixed sizes. Here's the structure: <table style="width: 100%; height: 100%"> <tr> <td></td> <td style="width: 200px; background: red;"></td> </tr> <tr> <td style="height: 100px; background: blue"></td> ...

How to change object positions in an android layout?

Hi, I'm currently working on a very simple aplication, and I intended to make it change the visual aspect depending on the screen size. The application just has 6 buttons like this: I'm using the AbsoluteLayout, and changing the x and y of the buttons with the methods offsetLeftAndRight and offsetTopAndBottom. I'm not changing the l...

Submenu within menu within menu ?

On pressing menu button , I have 2 options : Add & more. On click of more i have 3 options : Organize ,Export & Exit On click of Organize i want other 5 options. On click of more i get my submenu. But i want other 5 options on click of organize.How do i proceed??? My code in parts is as follows : XML file-------------------------------...