From e9a5467e068154cc148c6fc9ec49f3e69f9d17f3 Mon Sep 17 00:00:00 2001 From: Maxence J Date: Wed, 17 Aug 2016 20:07:37 +0200 Subject: [PATCH] Update README.md. --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 04c6883..34e5c4f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ It's an Android library that allows you to use Layout as RadioButton or CheckBox The librarie is Android 14+ compatible. Gradient effect is only Android 21+ compatible. ![demo](art/demo.gif) + *Demo inspired by [Cris Samson's gradient hover animation](https://dribbble.com/shots/2892770-Gradient-hover-animation)* @@ -26,11 +27,11 @@ compile 'com.github.jaouan:compoundlayout:1.0.0' Usage -------- -## General -*CompoundLayout* checked state can be changed programmatically using method *myCompoundLayout.setChecked()*. -Checked state can be retrieved using *myCompoundLayout.isChecked()*, and can be listened using *myCompoundLayout.setOnCheckedChangeListener()*. +#### General +*CompoundLayout* checked state can be changed programmatically using method **myCompoundLayout.setChecked()**. +Checked state can be retrieved using **myCompoundLayout.isChecked()**, and can be listened using **myCompoundLayout.setOnCheckedChangeListener()**. -## Layout as CheckBox +#### Layout as CheckBox ```xml ``` -## Layout as RadioButton -### Basic +#### Layout as RadioButton +##### Basic ```xml ``` -### Gradient effect (Android 21+ only) +##### Gradient effect (Android 21+ only) ```xml ``` -You can use *myGradientRadioLayout.setColorA()*, *myGradientRadioLayout.setColorA()* and *myGradientRadioLayout.setAngle()* to configure the gradient effect programmatically. +You can use **myGradientRadioLayout.setColorA()**, **myGradientRadioLayout.setColorA()** and **myGradientRadioLayout.setAngle()** to configure the gradient effect programmatically. License