Understanding Android Spinners and Populating Them with (Adding) a Set of Items

Spinners in Android are like select dropdowns (HTML) of web development. Once tapped, it shows a list of options in a dropdown menu from which one can select a value. It is very simple to add it as a View in the Layout file (just as any other view like TextView or EditView):

Continue reading “Understanding Android Spinners and Populating Them with (Adding) a Set of Items”

Android Dividing Your ListView Into Sections with Group Headers

ListView is commonly used to display a set of data in a list. For example a list of emails, messages, tasks or contacts. I’ve written an article on how to work with lists in android before, which you might want to read.

Continue reading “Android Dividing Your ListView Into Sections with Group Headers”

Understanding and Implementing Android Lists with ListView, ExpandableListView, ListFragment, ListActivity and Custom List Adapters

There are times when you want to display data as a list. For example a list of emails, a list of messages, a list of tweets, a list of post titles, a list of photos with their titles and other meta data like dates and summary. Android provides 2 classes with the help of which we can achieve a scrollable list of items in our mobile application:

  • ListView – Show items in a vertically scrolling list.
  • ExpandableListView – Similar to ListView but supports grouping of items that can be expanded individually to show its childrens.

Continue reading “Understanding and Implementing Android Lists with ListView, ExpandableListView, ListFragment, ListActivity and Custom List Adapters”

PHPExcel Set URL Font Styles (Color and Underline)

When creating excel files using PHPExcel, on setting a hyperlink the cell value’s styling is generally not affected. This happens on purpose to give us more control on how we want to format our content. Usually this is how we’d set a hyperlink:

Continue reading “PHPExcel Set URL Font Styles (Color and Underline)”