Skip to main content

Posts

Showing posts with the label java

Bottom Dialogs Sheet

Bottom Dialogs Sheet      Android Library that shows a customizable Material-based bottom sheet. How to include Add the repository to your project  build.gradle : repositories { maven { url " https://jitpack.io " } } And add the library to your module  build.gradle : dependencies { compile ' com.github.javiersantos:BottomDialogs:1.2.1 ' } Usage Basic Bottom Dialog A basic bottom dialog will be shown. You have access to methods such as  setTitle() ,  setContent() ,  setIcon() ,  setCancelable() ,  dismiss() , etc. Customizations are explained below. new BottomDialog . Builder ( this ) .setTitle( " Awesome! " ) .setContent( " What can we improve? Your feedback is always welcome. " ) .show(); or BottomDialog bottomDialog = new BottomDialog . Builder ( this ) .setTitle( " Awesome! " ) .setContent( " What can we improve? Your feedback is always welcome. " ) .build(); ....

JellyToolbar

DOWNLOAD LINK   HERE Requirements Android SDK 16+ Usage Add to your root build.gradle: allprojects { repositories { .. . maven { url " https://jitpack.io " } } } Add the dependency: dependencies { compile ' com.github.yalantis:jellytoolbar:v1.0 ' } How to use this library in your project? First of all, add  JellyToolbar  to the xml layout of your activity, so it looks like that: <? xml version = " 1.0 " encoding = " utf-8 " ?> < LinearLayout xmlns : android = " http://schemas.android.com/apk/res/android " xmlns : app = " http://schemas.android.com/apk/res-auto " android : layout_width = " match_parent " android : layout_height = " match_parent " android : orientation = " vertical " > < com .yalantis.jellytoolbar.widget.JellyToolbar android : id = " @+id/toolbar " android : layout_width = ...