layout

Change paper size in the middle of a latex document?

Does anyone know how to change these length parameters in the middle of a latex document? \paperwidth \paperheight I would like to define a page size for a single page (possibly two or three). I tried v5.3 of the geometry package, which just added some new features; like \newgeometry. Unfortunately \newgeometry cannot be used to rede...

Marquee in various TextView at the same time?

Hi, I have a dynamic layout wich has one to six TextViews. All the TextViews are created in the Activity (programatically) and all are created equally. I want to marquee the text in the TextViews, but I don't know how to do it. Apparently, the TextView needs to be focused for the marquee works fine, but how i focus six TextViews at the...

Can a span be closed using <span />?

<span class="drop" /> Can HTML spans be closed like this? ...

Android - Overlay ImageButton by TextView on xml layout

Hi! I'm looking for how to overlay an ImageButton by a TextView in android xml layout. For the moment when I reduce the the TextView margin top, the TextView is going under the ImageButton. I want the contrary. ...

How is font-size not working here?

Following advice in The 6 Most Important CSS Techniques You Need To Know, I set my body's font-size to 62.5%, the container div's font-size to 1.4 em (slight variation from the article). p.tags and p.published's font-size is set to 1em. However, this doesn't work for me. Both the normal text and text in p.tags and p.published comes out ...

Android VideoView orientation change

I am having a VideoView playing video on my Android app. When I try it on the potrait orientation, the video fills the screen. But when I change the orientation to landscape, the video takes up only half the screen space. I am using FILL_PARENT, FILL_PARENT as the layout params. Is there a way I can have the video fill the screen in bot...

Android: Problem with onMeasure()

Hi I made a custom view. If I add the view to the layout XML file and I set the height to "fill_parent" "specSize" return 0. Why? Code: @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int measuredHeight = 90; int specMode = MeasureSpec.getMode(heightMeasureSpec); int specS...

What is the method of choice to adjust CSS changes in vaadin?

I am struggling with some minor layout changes in vaadin which has to be done on Java AND Css side. Everytime I need to adjust a layout thing like padding-top, background color or bold text of one component I need to set the style via Java code too: userLink.setStyleName("textbold"); The changes in my styles.css (under VAADIN/themes/...

how to access layout-large layout in the activity?

Hi, I am having layout which I want to render on to different sizes of mobile (like WVGA854). Resource structure is like res\layout\main.xml res\layout-large\main.xml By default it is taking layout main.xml file itself of layout. Its not pointing to layout-large\main.xml its throwing exception:Activity can not start resource not fou...

Create custom component based on LinearLayout, declaring layout in XML

I've been trying to create a Compound Control in Android 1.5 (as described here) but havn't been able to find any good examples on how to do this using an XML file to specify a layout. I'm fine with creating an Activity and then loading an xml file using the following in the constructor: setContentView(R.layout.main); However, I want ...

CSS image float div problem in IE6

In the bottom cap of this page (bottom with corners) I seem to be having a weird IE6 issue. I've tried Google with no luck, as really, how do you ask this question. In IE6, the corner images that are floated left and right seem to cause the whitespace to drop. http://www.duncanhadleytriathlon.ca/ Any suggestions for why this may be? ...

How do I create a hybrid two column lay out like php.net?

I want to create a layout like this: | | | | | | | | | | | | | | | | -FIXED-|--------FLUID---------| ...

Race Condition Occuring in ScrollViewer

This might be a design problem on my part but I'm experiencing what I'm calling race conditions when setting the size of a Canvas (let's call it Canvas A) which is a child of a ScrollViewer. I'm using the size of Canvas A to set the visibility of the scrollbars in the ScrollViewer. However, I also use the visibility of the scrollbars t...

Java layout ignored properties documentation

Is there a table documenting which properties each java layout ignores (max size, min size, etc)? ...

kohana project structure

Hello Guys. I'm investigating using Kohana for my next project. The site will consist of user registration (and hence user profiles) where users will have certain privileges. The site will also have an admin section where administrators can go to say block a user or delete a post or look at usage statistics for example. A good comparison...

CSS layout mystery

Among the many two (or three) column layout techniques I sometimes use the following one: <div class="left1"> <div class="left2"> left main content </div> </div> <div class="right1"> <div class="right2"> right sidebar </div> </div> together with: .variant1 .left1 { float: left; margin-right: -200px; width: 100%;...

Android: Alignment of four squares

Hello There I am trying to align four equally sized squares on an Android Screen & I have now tried what feels like a million different approaches, yet none of them seem to work :(. What I've got at the moment is the following: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/MasterLayout"...

How to positioning the controls in android through code?

Hi, I am developing an application, and I want to make it work on different resolutions and different densities. My question is how to position the controls through code such a way that it works on all resolutions. Regards: Jayanth ...

language specific virtual keyboard with java

Hello everyone! I have to make an on-screen keyboard using JAVA on linux. the problem is it has to work on the most languages. for start, i need to et the current locale, that's clear, but after that, is there any way of getting the keyboard layout and maping of that locale? i searched for hours, but couldn't find a thing, so i really...

Enable Scrolling within EditText that is in a ScrollView

Our app (WordPress for Android) uses a scrollview for the new post view, where a user enters in their new blog post. There's quite a few fields on this view, including a large EditText for the post content field. It appears that when an EditText is in a ScrollView, the ScrollView takes over the scrolling action, so the user can't scr...