Home » Android » core » widget

widget

Android Toast vs Snackbar Example

1. Introduction In Android, one can use the Android Toast or the Android Snackbar to display feedback or action messages to users of an application. The Android Toast is mainly for Platform oriented messages although the Android Snackbar could be also be used for these requirements. The added advantage of using an Android Toast instead of an Android Snackbar is ...

Read More »

Android Snackbar Example

1. Introduction In this example, we will be implementing a basic Android SnackBar Activity, which will be able to display a long waiting SnackBar, a short waiting SnackBar, and an interactive SnackBar. To Trigger these different functionalities we will create 3 separate buttons for each one of the SnackBar scenarios. Further, when each one of these buttons will be clicked they ...

Read More »

Android TabLayout Example

1. Introduction In this example, we will be going through the process of creating a basic user interface using the tab layout constructs available on the Android platform. In Android, the TabLayout is a construct for better organizing a user interface. It does so by making the user interface more organized and less cluttered. This example will also explain the ...

Read More »

Android StackView Example

The Honeycomb Android version, introduced some interesting widgets with collections. One of them is the Android StackView, a stacked card view where the front view-item can be flipped to give room for the item after it. The StackView collection may be found in several widgets, because of its view behaviour. Generally, StackView is an AdapterView thus working with StackView is ...

Read More »

Android Calendarview Example

When we want to create an Android application that has an Android Activity inside of which we are planning to use a calendar, or if we want to make a simple calendar like application, we should consider in the first place Android Calendarview class. This class is a calendar widget for displaying and selecting dates. The range of dates supported ...

Read More »

Android ViewFlipper Example

ViewFlipper is an extension class of ViewAnimator, which animates between two or more views that have been added to it. Specfically, only one child is shown at a time. To get a better understanding, suppose that we have two TextViews that will be used in our app, but we want only one to be displayed at a time. That is, ...

Read More »

Android FrameLayout Example

FrameLayout represents a simple layout for the user interface of Android applications. It is usually used for displaying single Views at a specific area on the screen or overlapping its child views. In our example we are going to show how you can add and handle FrameLayout in your application. For this tutorial, we will use the following tools in ...

Read More »

Android SeekBar Example

In Android, a SeekBar is a ProgressBar element’s extension that allows the selection of integer values using a natural user interface. SeekBar has a thumb that can be slided in order to choose a value between 0 and some maximum that can be set from the developer. For the need of this example, we will use the following tools in ...

Read More »

Android SlidingDrawer Example

SlidingDrawer represents a widget, where we can use in our Android applications. SlidingDrawer has the ability to hide and/or appear content when the user drags a handle. More specifically, it includes two basic views: the handle where the user can drag. the hidden content that is associated with the handle and it is shown up when the user drags the ...

Read More »

Android EditText Example

Android system supports EditText, which is a subclass of TextView supplied with text editing operations. We often use EditText in our Android applications in order to provide an input or text field, especially in forms. In this example we are going to show you some commonly used EditText xml attributes and how to embody and handle an EditText in our ...

Read More »