Why there is ListVIew in android? -


my question have listview , gridview in android.

list view as

<listview   android:id="@android:id/list"   android:layout_width="match_parent"   android:layout_height="wrap_content" > </listview> 

now suppose setup listview i.e adapter , created data list. instead of listview replace gridview as

<gridview xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/gridview"    android:layout_width="fill_parent"     android:layout_height="fill_parent"    android:numcolumns="1"/> 

gridview act listview why there listview ,if can achive functionality of listview gridview assinging android:numcloumns="1"? specific use of list?

i know gridview used arrange item in row , column.

looking @ android developer docs, parent class both listview , gridiew same , android.widget.abslistview.
class can used implement virtualized lists of items. , subclases of class can display content of list in grid, in carousel, stack, etc.

so development's view, pointed out, may able achieve same effect either of them.

perhaps, answer lies in design of application , has more user experience in use cases.

a list style layout users actions tend singular in purpose. they've come application 1 thing: browse or read. present them content in standard way , let them lost in it.
on other hand, grid view quick access of content. it's restless , curious. attention goes 1 topic or image next , never want linger in 1 spot long. , when tired of standing, click topic of interest more details , have seat can take time , become enthralled.

in nutshell, list view provides users format follows user's natural reading patterns, while grid view little more interruptive, making best suited visual content. can jump 1 image next without worrying order or continuity. it's discovery , seeing everything.

check more important in application's data. image based content best option grid view. data based content better option list view.

also, grid view offers additional functionality: grid lists may scroll either vertically or horizontally.

so apart user experience grid view offers more flexibility if required!


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -