How can i make this kind of View (from iPhone) in Android?
I 开发者_Go百科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?
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.
I think you can use a normal EditText element and apply a plain white images as background.
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.
精彩评论