Reputation: 477
I am working on android project. I need to create a certificate form which contains lot of textfields with different panels. How can I create a screen for that? I have two ways:
Can anybody suggest any other ways to create the screen in mobile?
Upvotes: 0
Views: 113
Reputation: 557
you can use the scrollview and to minimize the number of textViews
look at the following example:-
Name: Hello World
Age: 21
City: Every Where
DOB: 10/6/1990
the old fashion way is to create a textview for every label, this mean you need 8 textviews,, and this is bad for performance,
what I suggest to you is create the same output but with only two textViews, the first for the left column and the second for right column.
use StringBuilder in order to fill the left and right column.
This is very good solution, I've worked on Social application the contain the user profiles, and every profile has above 80 view which I was careless about this issue, but when we installed the app on the market,we get a lot of errors and complains about the performance so I had to reduce the textviews and use StringBuilders
Upvotes: 1