From a00b2c3d503cf35b7c1b26b86db03a315ff9020b Mon Sep 17 00:00:00 2001 From: Ravindra Kumar Date: Wed, 14 Dec 2016 23:10:51 +0530 Subject: [PATCH] Updated readme with syntax highlighting. --- README.md | 48 ++++++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 1120275..0567a2a 100644 --- a/README.md +++ b/README.md @@ -35,23 +35,24 @@ Hence why we created this simple component :) In exactly the same way as the support library! Simply wrap an edit text field like so: - - - - - - +```xml + + + + + +``` #Setting attributes via XML @@ -62,8 +63,10 @@ In our XML layout, we can set two extra attributes for the BufferTextInputLayout e.g - app:displayFromCount="5" - app:counterMode="descending" +```xml +app:displayFromCount="5" +app:counterMode="descending" +``` #Setting attributes programmatically @@ -72,6 +75,7 @@ e.g - setCharactersRemainingUntilCounterDisplay(int remainingCharacters) -> Set the value for which how many characters should be remaining until the counter becomes visible e.g. - - bufferTextInputLayout.setCounterMode(CounterMode.DESCENDING); - bufferTextInputLayout.setCharactersRemainingUntilCounterDisplay(40); +```java +bufferTextInputLayout.setCounterMode(CounterMode.DESCENDING); +bufferTextInputLayout.setCharactersRemainingUntilCounterDisplay(40); +```