From 7af1f42e85328efe007f24406cb61aadd934b547 Mon Sep 17 00:00:00 2001 From: mrHerintsoaHasina Date: Fri, 26 May 2017 15:45:40 +0300 Subject: [PATCH] Create README.md --- README.md | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8bf5e91 --- /dev/null +++ b/README.md @@ -0,0 +1,97 @@ +# flextools +An Android Library which uses the FlexboxLayout https://github.com/google/flexbox-layout + +## Installation +Add to your `build.gradle` project : +```` +... +allprojects { + repositories { + jcenter() + maven { + url 'https://dl.bintray.com/mrhas/flextools' + } + } +} +... +```` + +And finally in the app `build.gradle` : +```` +dependencies { + compile 'com.hopenlib.library:cflextools:1.0.0' +} +```` + +## Version 1.0.0 +- contains the class FlexRadioGroup which extends the FlexBoxLayout. + +The official RadioGroup widget doesn't support many RadioButtons in the same direction because it inherits his UI behavior from the LinearLayout ViewGroup. To have a flexible UI with many RadioButtions inside a single RadioGroup, use the FlexRadioGroup instead as shown below : + +````xml + + + + + + + + + + + + + + + + + + + +```` + +Use the custom attribute `checkedButton` to specify the RadioButton's id which is checked by default. Don't forget to set the `android:checked` attribute as `true`for that RadioButton. + +You can see more details about the FlexboxLayout UI params (alignContent, alignItems, flexWrap, ...) to customize the appearence of the FlexRadioGroup and his content. + +![FlexRadioGroup in action](/assets/screenshot.png)