Home » Android » core » view


Android ViewPager Example

One of the most popular views in Android is the ViewPager, a view that helps us slide from one “screen” to another like a “slideshow”. Android ViewPager view can be found in many cases, in tutorial or introductory screens, on tab views and galleries. We are going to create an AppCompatActivity, and we are going to add a ViewPager reference ...

Read More »

Android Menu Example

Today we ‘re gonna see how to create a Menu with icon items, which on click, fire a respective to them message. What differentiates this article from other similars, is that we ‘re using the latest Android APIs, where Menus are manipulated differently. Having created an Android project, using the latest platform, gives us by default a menu layout, as ...

Read More »

Android ActionBar Example

In this tutorial we are going to see how to  create a simple Android Menu using ActionBar. It is a very handy kit when you want to create simple Menus for your application. In this tutorial we are going to see how to create a simple menu with 3 options and with Icons.               ...

Read More »

Android OnClickListener Example

In this example we are going to see how to work with OnClickListener in an Android Application. You may use OnClickListener when you want your compoments to react when users click on them. Most (if not all) of the GUI Android components can be bundled with an OnClickListener, so you can see that its a very important component. In this ...

Read More »

Gallery View without pictures

This is an example of Galery view on Android without any pictures. Gallery View is one of Android’s widgets. It provides a list of scrollables elements, much like the normal ListView or even a HorizontalScrollView. In order to use Gallery View with custom elements follow these steps: Create a Layout xml file with describing the layout of the Gallery elements Add a Gallery ...

Read More »

Creating an AppWidget for the home screen

In this tutorial we are going to see how can you create an AppWidget of your Android Application for the home screen of the device. Since version 1.5, the Android SDK includes the AppWidget framework, a framework that allows developers to write “widgets” that people can drop onto their home screen and interact with. The use of widgets is very ...

Read More »

Customized dialog

In this tutorial we are going to see how can we use Customized dialogs for user interaction in Android. The easiest way to do that is to use the Dialog class. The basic steps to create a Customized dialog are: Create a new xml Layout file that describes the content of the Dialog box and how it will be rendered use ...

Read More »

Using options menus

In this example we shall show you how to create and display option menus in your Android Application. It is very important to use option menus because they enhance the user experience and improve user interaction. To create Option Menus in Android one should perform the following steps: Override the onCreateOptionsMenu(Menu menu) method of the Activity class menu.add method to ...

Read More »

Customized list view

This is an example of how to create a Customized ListView on on Android. The normal ListView component of Android is very useful. But we have the ability to further customize it which makes it more flexible. In order to create your own, customized ListView, follow these steps: Create a new XML  file that describes the layout of each row Create ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns