layout

Fix view at the bottom of the screen in an Activity in android

I want to fix a view at the bottom of the screen.How can i do that? ...

LaTeX: How to reduce text width while keeping margins unchanged?

I would like to reduce text width while keeping the right and left margins at their current size. The header should span over all available space (delimited by margins), but the main text should be narrower. My main goal is to have different widths for the header/footer and for the body. How can I achieve this? ...

How can I make the android program display a layout and then wai a few sec. and the display another layout?

Hi guys I just want the program to display the layout main0 and stay for a few secounds then display layout main1 like the programs we see in any phone where an image or layout show up at the start of the program and then fade. /**the main activity */ public class rdwt extends Activity implements OnClickListener{ Button b1; Button b2;...

Android - Padding in different phones

Say I add a linear layout with top padding of 20. Does it mean that the layout is rendered with 20 pixels of padding in all phones? Or does it scale according to the height/width/density of the phone? Thanks Chris ...

Android - Nested layout question

Consider a VideoView added to a Linear Layout with parameteres FILL_PARENT, FILL_PARENT. The Linear Layout gets added to the root layout which is a Relative Layout, with parameters WRAP_CONTENT, WRAP_CONTENT. Which parameters take precedence here? ...

Android Linear Layout - Difference between weight and FILL_PARENT

According to documentaion, FILL_PARENT basically lets the view take up the entire extra space. Weight also dictates how much of the extra space can be taken by the view. What is the difference? For eg: What happens when I use, new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1.0f) ...

Cross-browser CSS for left align and right align on the same line

Cross-browser CSS that works to allow both left and right align of text on the same line? Example (where each text quote should be aligned as far left or right as possible, respectively): stuff on the right stuff on the left No float's answer's please.. unless there is a way to make the t...

Cross-browser CSS for left align, right align AND center align on the same line

Similar to this easy one, except how do you get a third text group to show up dead center, along with one "dead left", and one "dead right"? ...

How to do such a layout in xml? Android...

I want a Layout that is as big as the screen with two rows and three columns like that image => http://dl.dropbox.com/u/2024237/Bildschirmfoto-DroidDraw.png the colors should be buttons... please help .... i cant figure it out ...

Rails3 get current layout name inside view

I have the answer for the Rails 2.X but not for Rails 3. How can I read the name of a current layout rendered inside a view. My Rails2 question: http://stackoverflow.com/questions/2622219/rails-layout-name-inside-view Thx. ...

multiple grid layout wpf

I have a timesheet presentation which requires two grids, one for project (ie, billable) activities and one for all other activities. Each grid has a data entry column for every day of the week, as well as a Description column. The project section also requires the 1st column in the grid to display the Project Number. The totals for each...

How can I place HTML in a JavaScript string and have it validate?

I want to show different css files depending on browser that user is using. I want to do this on JS and on client side. I am using code like this. <script language="javascript" type="text/javascript"> if ((navigator.userAgent.indexOf("MSIE")) >= "0"){ document.write("<link rel=\"stylesheet\" href=\"css/common.IE.css\" type=\"text/...

using conditions in magento layout xml

Hi all, Wondering if anyone has used the or statements in magento's layout XML for a custom module? I realise that I could check the values in the module controller or block itself, but it seems like a logical place for the logic to live. Mage_Core uses them in catalog.xml to test for javascript. <!--<params/><if/><condition>can_loa...

Visual Studio 2008: How to change programming layout after setting it at the first execution?

Hello. When starting Visual Studio 2008 you are asked to choose a programming layout (preset?), which can be C++ or C# (or generic?). Few months ago I choose the C++ preset because I was working on a C++ project, while now I'm working to a C# project. Is there a way to reset the Visual Studio layout to C#? Thank you Tommaso ...

JavaFX: Components/nodes shift when selected/focused

I'm creating a pretty simple form, and I'm running into an issue with Controls/components shifting position (textboxes and checkboxes in particular) by a few pixels upon selection. It's by no means breaking my interface, but you can imagine it's a bit of an irritant. I have a feeling it's an issue with the custom node(s) I've created... ...

Find and set object positions

In my project there is a library bar which is created by the Element Menu by a click event. the element menu is located at a grid, which is located at the window. (see XAML data) While moving the tagged element menu/grid i want the library bar to move over the surface as well. I'm not really sure how to do it: do you think i need to use ...

Does /res/layout/main.xml describe a View or a ViewGroup?

My 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:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wr...

No code completion in XML code within fully qualified tag

Why does code within a fully qualified tag lack auto-completion in Eclipse? For example, within the following code (where the comment is) nothing I type is provided auto completion for member names / tag names. <android.gesture.GestureOverlayView android:id="@+id/gesturePage01" android:layout_width="fill_parent" android:layout...

How to position a Button in a RelativeLayout through code?

< RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> < Button android:text="Previous" android:layout_height="wrap_content" android:id="@+id/MeasurePrev" android:layout_alignParentBottom="true" android:layout_width="wrap_cont...

Can an Android View's id be safely shared across multiple Activities?

Say I have two Activities in an Android application, EditPerson and EditEmployee. It would seem natural to have the EditPerson Activity be a base class for the EditEmployee Activity and define methods that marshal data to and from the Views defined in the layout. The EditPerson Activity's implementation would push (for example) the "Na...