46915

Android GridView filling order

I have a gridview with 2 columns. By default the the gridview is filled from left to right:

|1|2| |3|4| |5|6|

But in my project i need it to be filled from top to bottom:

|1|4| |2|5| |3|6|

Can anybody point me to the right direction to achieve this?

Answer1:

Check out the TwoWayGridView library

It lets you set the scrolling direction to horizontal and will align your items the way you want

Recommend

  • EntityDataSource query inner join
  • gridview rendered in div
  • Get both date and time in milliseconds
  • Binding a list with another list with WPF
  • Using self.id to populate other fields in Django
  • draw pie chart using iOS quartz 2D
  • how to calculate distance between two points in google maps?
  • yii2 sorting in related model
  • Put percent labels next to legend instead of in the slice
  • How to expand parent div to account for child's overflow?
  • HABTM associations in Rails : collecting and counting the categories of a model's children
  • Guava how to copy all files from one directory to another
  • Enumerating Controls on a Form
  • Does Apportable support to build library binary (.a/.so)?
  • Primefaces :radioButton inside a ui:repeat
  • R convert summary result (statistics with all dataframe columns) into dataframe
  • order post according to custom array position
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Breaking out column by groups in Pandas
  • Unable to get column index with table.getColumn method using custom table Model
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Switching to Release Build causes runtime error in Web Reference
  • Disable Enter in editText android
  • Change multiple background-images with jQuery
  • Avoid links criss cross / overlap in d3.js using force layout
  • Algorithm for a smudge tool?
  • Android screen density dpi vs ppi
  • What is the “return” in scheme?
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Spray.io: When (not) to use non-blocking route handling?
  • Can Jackson SerializationFeature be overridden per field or class?
  • How would I use PHP exceptions to define a redirect?
  • Modifying destination and filename of gulp-svg-sprite
  • How to extract text from Word files using C#?
  • How to check if every primary key value is being referenced as foreign key in another table
  • QuartzCore.framework for Mono Develop
  • GridView Sorting works once only
  • Android Studio and gradle
  • python regex in pyparsing
  • need help with bizarre java.net.HttpURLConnection behavior