Blog

Android Tutorial: Multi-Pane Layouts
An Android tablet generally has a larger screen than a handset. In many cases, you might want to take advantage of the bigger screen in tablets to display more information by using a multi-pane layout. This chapter discusses multi-pane layouts using fragments that you learned in Android Tutorial: Fragments. Overview A tablet has a larger screen…

Android Tutorial: Fragments
A powerful feature added to Android 3.0 (API level 11), fragments are components that can be embedded into an activity. Unlike custom views, fragments have their own lifecycle and may or may not have a user interface. This chapter explains what android fragments are and shows how to use them. Related: Android Tutorial: The Activity Lifecycle…

Android Tutorial: Graphics and Custom Views
Thanks to Android’s extensive library, you have dozens of views and widgets at your disposal. If none of these meets your need, you can create a custom view and draw directly on it using the Android Graphics API. This chapter discusses the use of some members of the Graphics API to draw on a canvas…

Android Tutorial: Bitmap Processing
With the Android Bitmap API, you can manipulate images in JPG, PNG or GIF format, such as by changing the color or the opacity of each pixel in the image. In addition, you can use the API to down-sample a large image to save memory. As such, knowing how to use this API is useful,…

Install and config Redis service for Mac OS
Homebrew is one of the nifty command-line tools available in Mac OS for quickly and seamlessly installing and configuring development tools. Mega article: Web Scraping with Python (Completed) By using Homebrew, you greatly reduce the cost of setting up and configuring the development environment on Mac OSX. So let’s get a redis server up and running…

Android Tutorial: RecyclerView
Android RecyclerView is the more advanced version of ListView or GridView with improved performance and other benefits. Using RecyclerView and CardView together, both lists and grids can be created very easily. Here is the complete information about RecyclerView and other examples. Advantages of Android RecyclerView 1. ViewHolder Pattern In a ListView, it was recommended to use the ViewHolder pattern but…

Android Tutorial: GridView
A GridView is a view that can display a list of scrollable items in a grid. It is like a ListVIew except that it displays items in multiple columns, unlike a ListView where items are displayed in a single column. Like a ListView, a GridView takes its data source and layout from a ListAdapter. This…

Android Tutorial: ListView
A ListView is a view for showing a scrollable list of items, which may come from a list adapter or an array adapter. Selecting an item in a ListView triggers an event for which you can write a listener. If an activity contains only one view that is a ListView, you can extend ListActivity instead…

Android Tutorial: Event Listeners
In this article, you will learn how to handle events and write event listeners. Most Android programs are interactive. Event Listeners The user can interact with the application easily thanks to the event-driven programming paradigm the Android framework offers. Examples of events that may occur when the user is interacting with an activity are click,…

Android Tutorial: Layouts
Layouts are important because they directly affect the look and feel of your application. Technically, a layout is a view that arranges child views added to it. Android comes with a number of built-in layouts, ranging from LinearLayout, which is the easiest to use, to RelativeLayout, which is the most powerful. This article discusses the…