Reputation: 5455
I am porting an app from iPhone to Android and I was wondering what the best way was to make this screen in Android?
The places where it sais "optioneel" and where the phonenumbers are must be editable like this:
This is what I've come up with so far:
So how can I make these 'editable listview' things in Android?
Upvotes: 2
Views: 543
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
Reputation: 27455
I think you can use a normal EditText element and apply a plain white images as background.
Upvotes: 1
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