layout

Android, programatically layout a button view?

I am trying to programatically define my program layout and add a button to it at a certain position. I am not using the layout xml as the content view. RelativeLayout mainLayout; mainLayout = new RelativeLayout(this); mainLayout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,android.view.ViewGroup.LayoutParams.FILL_P...

Android: How to dynamically include a XML Layout?

Hello, I want to decompose my UI into several XML Layouts. The first one would be the main layout, and the other ones would be the content layouts. I would like to be able to set which content_layout should be included dynamically during runtime, so I don't want to set a "layout="@+layout/content_layout" in my XML file. Here are my lay...

Android layout problem

I have 2 TextView's in a horizontal LinearLayout. The LinearLayout fills the screen horizontally. How can I achieve the following behaviour: If the first TextView is too big, it is ellipsized at the end like this: [firstTextViewIsTooBig...|secondTextView] If the first TextView is not big, the layout should look like this: [firstTextV...

Android center view in FrameLayout doesn't work

I have a FrameLayout in which I have 2 controls: - a custom view which draws a image and some text on it - a textview with a text I want to center both in the FrameLayout but I can't manage to do it. The Texview is centered just fine, my cusom view remains on the left side, when I make it visible. <FrameLayout android:id="@+id/Compass...

TinyMCE Skins, Better than the

Hi! Are there better looking TinyMCE skins except the one of http://thebigreason.com/ and http://www.cirkuit.net/projects/tinymce/cirkuitSkin/? I couldn't find one that has: buttons for ALL features a nice layout ...

Android: why is there no maxHeight for a View?

View's have a minHeight but somehow are lacking a maxHeight: http://goo.gl/qRyp What I'm trying to achieve is having some items (views) filling up a ScrollView. When there are 1..3 items I want to display them directly. Meaning the ScrollView has the height of either 1, 2 or 3 items. When there are 4 or more items I want the ScrollView...

how to add a layout to the toast

i create a user-defined toast,and i want to get the xml of layout from the layout package,but if i used the code below,there comes a problem:InflateException,i had used many ways to get the layout but fail.the code is below,thanks public class ImageTextToast extends Toast { private Context context; private String text; ...

Android TableLayout Width

Hi, I have a two column TableLayout as the only child of a scroll view. The first column contains TextViews ('labels') and the second column contains EditText/Spinner/DateWidget etc ('values'). Even though I have have specified android:layout_width="fill_parent" for TableLayout, TableRow & all widgets (in 'values' column). The screen l...

Readding panel to layout after editing panel?

Hi, What I'm trying to do is dynamicly edit a panel and readd it to the (Border)layout. The panel contains textfields and I want the user to be able to add or remove textfields to the panel. What I tried is the following: remove the panel from the layout, add another textfield to the panel, readd the panel to the layout. However this do...

Hidding the title bar on specific layouts that use ViewFlipper, and transitions not working properly.

First off I am a beginner in Android development; I have been doing a lot of research into how to get the various tasks I am trying to complete. I have yet to find any similar issue to this, which is why I am asking it. This is a multipart question. Overview of program and problems: I have a program (for Android 2.1 and higher) that ha...

How to style sets of labels and fields in a form with pure CSS and get proper alignment?

OK, I'm asking as a last-ditch effort to comply with my conscience and do this with CSS. I want to layout this simple form using CSS, but I've spent two hours trying to get it and always end up with alignment issues. I did it in ten minutes using tables. Meh. I need labels right-justified, the name row split in two, the labels properly ...

Stacking Divs with CSS

Im kinda new to CSS have been using tables for my html for years, Im trying to figure out how I can nest divs or stack them inside the content section of a 3 column layout. with tables I'd just do a new <tr> but if I float another div into the content line line it will appear parallel or vertically, when I want to appear beneath. is ...

CSS Noob Could really use some Skilled help with layout and positioning

Possible Duplicate: Stacking Divs with CSS Im kinda new to CSS have been using tables for my html for years, Im trying to figure out how I can nest divs or stack them inside the content section of a 3 column layout. with tables I'd just do a new TR but if I float another div into the content line line it will appear parallel o...