Galip
Galip

Reputation: 5455

How can i make this kind of View (from iPhone) in Android?

I am porting an app from iPhone to Android and I was wondering what the best way was to make this screen in Android?

alt text

The places where it sais "optioneel" and where the phonenumbers are must be editable like this:

alt text

This is what I've come up with so far:

alt text

So how can I make these 'editable listview' things in Android?

Upvotes: 2

Views: 543

Answers (3)

Ljdawson
Ljdawson

Reputation: 12229

One way would be to create a TableView and then add a Label on the left hand column and a TextView / EditText in the right hand column. Correctly styled this would match the form and function of the iPhone app.

Upvotes: 0

Flo
Flo

Reputation: 27455

I think you can use a normal EditText element and apply a plain white images as background.

Upvotes: 1

Reuben Scratton
Reuben Scratton

Reputation: 38707

I'm a specialist in porting iPhone apps to Android. I have my own library of iOS-style widgets for Android. I can't give you source code but I'll give you a clue: use EditText for the editable ones, obviously with a custom background nine-patch. You can override dispatchDraw() to draw the label on the left, and set the left padding so it doesn't clash with the user-provided text.

Upvotes: 2

Related Questions