Android AppBarLayout like Whatsapp Tutorial/Example

AppBarLayout is a vertical LinearLayout which implements various material design scrolling gestures.if you are not aware of Material Design refer here. AppBarLayout children should provide scrolling behaviour by setScrollFlags(int) or in XML by app:layout_scrollFlags="" Note: AppBarLayout depends heavily on being used as a direct child of Coordinator layout if you used with other ViewGroup its most of the … Continue reading Android AppBarLayout like Whatsapp Tutorial/Example

Show Sliding Menu Using Navigation View Android Tutorial

Navigation View was introduced with Material Design Support Library. Navigation is very easy to implement , so it is easy to customize it and looks great and is very smooth. If you are unaware of Material Design visit here.It is necessary you should have knowledge of Material Design. So, Lets start:- Navigation View has two Main … Continue reading Show Sliding Menu Using Navigation View Android Tutorial

Showing Sliding Menu Using Navigation Drawer Android Tutorial

Nowadays, Lot of application's use sliding menu to show the major functionality of their application.Applications like facebook, youtube, Gmail use sliding to navigate between major options. Now this sliding menu in android is done with the use of Navigation Drawer. So, Let's and add sliding menu to the application:- Will need the following to implement … Continue reading Showing Sliding Menu Using Navigation Drawer Android Tutorial

How to show/display Alert Dialog/Dialog in Android.

In this post, I will show you how to show alertDialog in Android. AlertDialog is used largely to show alerts or confirmation messages to the user. Alert Dialog is very easy to create. So, Let's Start:- Simple AlertDialog with "OK" Button //create alertDialogBuilder AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(MainActivity.this); // set title alertDialogBuilder.setTitle("CoderzPassion"); // set dialog … Continue reading How to show/display Alert Dialog/Dialog in Android.

Android Facebook Login in Application using latest Facebook SDK Tutorial

Nowadays, Facebook login is very Popular in Android.In this post, I will describe how to log in with Facebook in Android Application. To work with Facebook login, I will need Facebook SDK 1.For Eclipse users download Facebook SDK and import in your project. 2.For Android Studio just add the following dependency in your build.gradle compile 'com.facebook.android:facebook-android-sdk:4.+' So, … Continue reading Android Facebook Login in Application using latest Facebook SDK Tutorial

How to display/show a Toast in Android?

Android Toast is used to display a message for the short interval on the screen .A toast contains a message which is displayed and disappears shortly notifying the user. Simple Toast can be shown like this. Toast.makeText(context,"CoderzPassion",Toast.LENGTH_SHORT).show(); Parameters: - Context Text message Duration of toast can be short, long or customised in milliseconds like below. Toast.makeText(context,"CoderzPassion",3000).show(); … Continue reading How to display/show a Toast in Android?