开发者

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

开发者 https://www.devze.com 2023-01-29 11:17 出处:网络
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?

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?

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

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

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

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

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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消