user1448108
user1448108

Reputation: 477

How to create more number of fields in android screen?

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:

  1. Using scrollview to display all the fields in one single page.
  2. Putting next button and creating each panel in each page.

Can anybody suggest any other ways to create the screen in mobile?

Upvotes: 0

Views: 113

Answers (1)

Khalil Rumman
Khalil Rumman

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

Related Questions