cardview Archives - Androhub

Youtube Player Fragment Banner

How to implement Youtube Player Fragment in Android App

In previous article we learnt how to play a youtube video in android using YoutubePlayerView and using YoutubeBaseActivity. But there is one problem in YoutubePlayerView that we need to extend our activity with YoutubeBaseActivity. What if we don’t want to extend our activity with YoutubeBaseActivity or we want to implement the YoutubePlayerView in fragment. There is a

Read More
Youtube Player Banner

How to show Youtube Video Thumbnail & Play Youtube Video in Android App

Hello Friends, Today we are going to learn how to play a youtube video in our app using YoutubePlayerAPI. And also I will also show you how to show thumbnails of the youtube video. This app will be having two screens: First screen listing all the videos in RecyclerView. Playing the selected video. VIDEO DEMO

Read More
Swipe Dismiss CardView Banner

Swipe Dismiss CardView with Coordinator Layout

Today we are going to learn an awesome inbuilt functionality provided by design library using Coordinator Layout. CoordinatorLayout is a super-powered FrameLayout. Coordinator Layout is intended for two primary use cases: As a top-level application decor or chrome layout. As a container for a specific interaction with one or more child views. So we are going to implement

Read More
Swipe Dismiss RecyclerView Banner

Swipe Dismiss RecyclerView

Hello Friends, today we are going to learn an awesome functionality based on Swipe Dismiss RecyclerView. To achieve this functionality we are going to need one java class which will handle the Swipe gesture. The class you can get from this link, this is a superb class that you need to implement with your recycler

Read More
Toolbar Animation Banner

Android Toolbar Animation Using Design Support Library

With the new Design support library for Android, it has become easier for us to create some great animations with minimal effort. We have seen WhatsApp profile view design with user image hide on scrolling. For that we need Design Support Library. In one of my earlier tutorial i had shown how to hide and show

Read More
Staggered and Horizontal RecyclerView Banner

Android Staggered and Horizontal RecyclerView

In my earlier tutorials of RecyclerView we had learn how to use RecyclerView to create ListView and GridView items. Today we are going to create Staggered GridView and Horizontal RecyclerView. Staggered GridView Staggered GridView is nothing but GridView with random grid sizes that look nice in app. To achieve this we need  StaggeredGridLayoutManager and the syntax

Read More