This example will show you how to add and update RecyclerView items when horizontal scroll it. When user scroll from left to right at the beginning of RecyclerView, it will […]
SwipeRefreshLayout is used to implement drop-down refresh effect in android. It commonly used with ListView, RecyclerView or ScrollView etc. The view object should be scrollable and should be the only […]
android.support.design.widget.AppBarLayout is used to wrap android.support.v7.widget.Toolbar component. It can make Toolbar to avoid overlapped by ListView or RecyclerView controls in the screen.
Android CardView is a component that used to implement card layout effect. It is provided in appcompat-v7 library. Use CardView, you can add circle corner and shadow effect to the […]
Floating Action Button is an image button which float on the screen surface. It will stay in one place when screen scroll. Commonly the floating button is placed at the […]
This example will show you how to make a android floating action button hide and show when user scroll a recycler view. android.support.design.widget.FloatingActionButton class is used to implement the floating […]
This example show you how to use android.support.design.widget.NavigationView to implement sliding menu when user slide screen or click home icon. It is also based on android.support.v4.widget.DrawerLayout and use the NavigationView as the content […]
android.support.v4.widget.DrawerLayout is a android layout which follow material design pattern. It is used to implement slide in / out menu animation in android application. This article will show you an […]
Android material design is a new design pattern which google recommend. And google provide some built-in widget in it’s design support library to follow this pattern. android.support.v7.widget.Toolbar is just one commonly used […]
This example will show you how to create a download manager to download file from a url in android application. It use android activity, foreground service, asynctask and notification etc.