layout

how to create EditText accepts Alphabets only in android?

friends, can any one guide me how can i enter only alphabets in EditText in android? any help would be appriciated. ...

How to display a website and a button in one activity?

I'm making an application that contains button's and those buttons control an embedded browser. My problem is that I want to see the button's and the web page in the same layout, but when i click on a button this will open a web page and don't show the button, can anyone help me? ...

Relate field control ID in the page layout

Hi, I am facing a problem while referencing the field control in the page layout. In this article there is a field control which id is "PGPageBottomLeftContent" which store the data in the column "PageBottomLeftContent". I am not able to know that how it stores the data in the perticular column however the column name is different. It...

What is the difference between Android SDK 1.5 and 2.0 in terms of rendering?

I am nearly finished with the development of an Android application. But there seems to be a problem. When I started working on the project I used only the default 1.5 device resolution which is 320x480. But now when I am in the testing phase I started testing in 480x800 and 480x854 in both 1.5 and 2.0. These resolutions are not defined ...

[Android] How to make a dynamic layout with clickable text, checkboxes and buttons?

Give me please an advise, I want to make a dynamic layout which contains mixed elements [text] [checkbox] [button] [text] [checkbox] [button] [text] [checkbox] [button] ...... Can you give me some sample code, please ...

Delphi layout manager/ form builder opensource?

I'm aware of the excellent DevExpress LayoutManager & the half-attempts included in new releases of Delphi. But I wonder whether an Open Source layout manager does exist, that can be used to replace the form editor. I built a small version for my iPhone app in Obj-C that can do: Form.Add(TEXT_EDIT,Options,LEFT) The idea is to be abl...

layout problem: keeping a fixed width in CSS with varying text

The "span" tag that encompasses the text I'm trying to display is of 500px width. Now, every time I insert a text longer than that width, it crosses over to complete the text. That only happens when the text has no spaces (like: sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss you get the picture. I'...

CSS: series of floated elements without wrapping but rather scrolling horizontally

I'm working on a album viewer. At the top I want a horizontal container of all the image thumbnails. Right now all the thumbnails are wrapped in a div with float:left. I'm trying to figure out how to keep these thumbnails from wrapping to the next line when there are too many, but rather stay all in one horizontal row and use the scrollb...

setting a layout manager

Hi I want to have a frame that it has 9 planes with red and blue and green color and I set the frame as a borderlayout manager but it doesn't show anything.please help me.thanks (the LightsNPlanesApp is correct and can be run correctly but the MainFrame is not correct because it doesn't show anything) The MainFrame:(just the main method...

Android ListView set Number of items to show

How can i set the number of items to show in a list without to scroll? Example: I have a list with 10 items. I want that only 3 items appears and that I have to scroll to see the rest of the items. ...

How to change font size on a button?

I have a button in my Android project that contains two rows with text to the left, and one drawable on the right side. This works perfectly with this code: <Button android:text="Call History" android:id="@+id/accountCallLogButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawableRigh...

Problem : iPhone graphics go mad !

Helloo! I faced a really stranged problem recently. I am doing a timetable organizer, and I draw each event in a DayViewController with Quarz 2D, then I add a "glass effect" picture (PNG). But randomly, as I switch between days, the layout go really bad. Here is a link to see the good appearance and below the bad one : http://toucotton...

Silverlight text around an image.

Hello, Im am trying to wrap text around an image as one would use the html float property. Is there a way to acomplish this in silverlight 3? Thanks ...

Android Layout with ListView and Buttons

Alright, this specific layout is just annoying me. And can't seem to find a way to have a listView, with a row of buttons at the bottom so that the listview doesn't extend over top of the buttons, and so the buttons are always snapped to the bottom of the screen. Here's what I want: It seems like it should be so easy, but everything I'...

Align cells to bottom and top of UITableView, leaving stretchable gap in middle.

Hello, I have a table view with five cells displaying the settings of my app. I want the first four cells to appear at the top. The last cell isn't actually a setting, it says "Legal" and takes you to the EULA, so I want it to appear at the bottom. Now I know I could use – tableView:viewForHeaderInSection: and– tableView:heightForHeade...

How to align views at the bottom of the screen?

Here's my layout code; <?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:text="@string/welcome" android:id="@+id/TextView" ...

How to change title bar color in android activity?

How can I change the titlebar color in an Android app? I tried: this.setTitleColor(Color.BLUE); but it changes color of written text on it not title bar color. ...

Android: How to set the maximum size of a Spinner?

Here is my layout <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:id="@+id/LinearLayout01" android:layout_height="wrap_content"> <Spinner android:text="@+id/AutoCompleteTextView01" an...

Fluid Columns with matching height and background image

I'm working on a new layout for my site that uses a header, footer and two column center region. The two columns consist of the main content area which is fluid height and width and a right sidebar which is fluid height and fixed width. I have done similar layouts before, but this one depends on using two different background images (o...

Is it recommended to use javascript to build layouts?

I'm creating a blog, but I need box-shadows for my boxes, so I'm asking the following. Is it good to add shadows via a)images/css or b)javascript? I've heard that lot of people don't have javascript enabled while browsing, so is there this a problem? It would be easier and simpler to create these shadows with javascript than adding a m...