Posts

Showing posts with the label GitHub

MaterialViewPager For Android

Image
Material Design ViewPager easy to use library compile ' com.github.florent37:materialviewpager:1.2.3 ' // dependencies compile ' com.flaviofaria:kenburnsview:1.0.7 ' compile ' com.jpardogo.materialtabstrip:library:1.1.0 ' compile ' com.github.bumptech.glide:glide:4.0.0 ' Usage Add MaterialViewPager to your activity's layout < com .github.florent37.materialviewpager.MaterialViewPager android : id = " @+id/materialViewPager " android : layout_width = " match_parent " android : layout_height = " match_parent " app : viewpager_logo = " @layout/header_logo " app : viewpager_logoMarginTop = " 100dp " app : viewpager_color = " @color/colorPrimary " app : viewpager_headerHeight = " 200dp " app : viewpager_headerAlpha = " 1.0 " app : viewpager_hideLogoWithFade = " false " app : viewpager_hideToolba...

Smiley Rating Library For Android

Image
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon. Drawn completely using android canvas Inspired by Bill Labus Demo Integration Integrating SmileyRating in your project is very simple. Step 1: Add this dependency in your project's build.gradle file which is in your app folder compile ' com.github.sujithkanna:smileyrating:1.6.8 '   add this to your dependencies. Step 2: Now place the SmileyRating in your layout. Note: The height of the SmileyRating will be automatically adjusted according to the width of this component. < com .hsalf.smilerating.SmileRating android : id = " @+id/smile_rating " android : layout_width = " match_parent " android : layout_height = " wrap_content " /> Step 3: Initialize your view SmileRating smileRating = ( SmileRating ) findViewById( R . id . smile_rating); Set this SmileyS...

ShimmerRecyclerView

Image
A custom recycler view with shimmer views to indicate that views are loading. The recycler view has a built-in adapter to control the shimmer appearance and provide two methods - showShimmerAdapter() - set up a demo adapter a predefined number of child demo views. hideShimmerAdapter() - restores your adapter to show the actual child elements. Demo Screen There are two kinds of shimmer animation which you can see here: This type of shimmer effect uses the whole ViewHolder item to animate on. List Demo Grid Demo Here the shimmer effect only applied on for those views which background color is nontransparent. List Demo Grid Demo Shimmer effect types As you can see the first demo examples show that the whole ViewHolder item is animated. To achieve the desired effect, the children of the ShimmerLayout should have a nontransparent background. You can achieve the second kind of shimmer effect by adding only one ViewGroup child to the Sh...