0

Please see the picture. I have an application that shows data in the form of list but it is a WebView.My application size got increased and it is also creating a lot of data.

So if i convert all the webview to list view then will it reduce the size and does it make any sense to do so?

Or Please suggest me any other way to display data in list that reduce the size.

enter image description here

Anirudh Sharma
  • 7,968
  • 13
  • 40
  • 42
Puneet Kushwah
  • 1,495
  • 2
  • 17
  • 35

1 Answers1

2

assuming that all you are going to display is scroll-able list of text sections - ListView probably consume much less memory then loading similar content to WebView. no doubt about that.

also, if you decide to go for ListView - make sure you are following all important guidelines and design patterns to optimize memory and improve performence, such as using the ViewHolder design pattern, handling recycling properly, and so on..

Community
  • 1
  • 1
Tal Kanel
  • 10,475
  • 10
  • 60
  • 98
  • Cleared my doubt! I really appreciate that. – Puneet Kushwah Mar 03 '15 at 08:05
  • I have a webview in which there are list of questions and on clicking that question user navigate to another webview that has answer, so it is efficient to put all the answers in textview? – Puneet Kushwah Mar 03 '15 at 08:47
  • I don't see why not.. you can open on click a new fragment/activity disaplying TextView fills the entire screen wrapped inside a scroll view (in case the content will be longer the screen size) – Tal Kanel Mar 03 '15 at 08:52