| 38 views

Data Sorting is an operation involving systematic arrangement of data in an ordered sequence.

Sorting involves two operations:

  1. ordering: arranging items in a sequence ordered by some criterion;
  2. categorizing: grouping items with similar properties.

Sorting is a very common operation in many applications.

| 391 views

This is an android tutorial of how to sort in both ascending and descending manner in recyclerview using Kotlin programming language.

You click a button to toggle between ascending and descending manner.

| 207 views

LinearLayout is a viewgroup that arranges its child elements linearly in a descending column from top to bottom or left to right.

| 313 views

A BroadcastReceiver is an android component responsible for listening to system-wide broadcast events or intents.

In Android, most system events are broadcast through Intent objects. To do this these Intent objects get sent to the BroadcastReceivers using the Context.sendBroadcast() methods.

When such an event is broadcasted the BroadcastReceiver will receive the event and react by either creating a status bar notification or performing a given task.

A BroadcastReceiver is an android component like Activity and Service hence most of the times it needs to be registered in the android manifest file.

However unlike the Activity, BroadcastReceivers don't have any user interface.

BroadcastReceiver as a class is abstract, hence normally has a method called onReceive() that we do override to do the task we want to happen when the task is received.

Most of the standard system events are defined as action strings and can be found in the API documentation for the Intent class.

Suppose for example, if your app needs to be notified whenever the user connects or disconnects the charger to the device, two broadcast actions defined in the Intent class do that:

  1. ACTION_POWER_DISCONNECTED
  2. ACTION_POWER_CONNECTED.
| 28 views

In AbsoluteLayout each child must be given a specific location within the bounds of the parent layout object.

| 22 views

Android platform provides a powerful and flexible way of adding static content as a resource.

These static content will also be packaged into the APK file. The static content will be stored either as a resource or as an asset.

Resources belong to a given type. These types can be:

  1. Drawable.
  2. Layout.
  3. Value.
| 197 views

Android HTTP Tutorial and Examples.

| 681 views

This is a Kotlin android SearchView and ListView example. We see how to search/filter a simple ListView.

| 345 views

MaterialSearchBar is a beautiful and easy to use library will help to add Lollipop Material Design SearchView in your project.

| 26 views

Android BottomNavigationView Tutorial.

This is an android bottomnavigationview tutorial and examples. We start by seeing what BottomNavigation is as a general design pattern, then see the BottomNavigationView for android, then look at some examples.