From 9d989fe1ce6917ccea427b2c3a04a0df4f7e0b8c Mon Sep 17 00:00:00 2001 From: Rey Pham Date: Thu, 14 May 2015 16:22:48 +0700 Subject: [PATCH] Fix NPE bug in setOnClickListener(). Add Material.Widget.FloatingActionButton.Mini style. --- .idea/gradle.xml | 4 +- Material.iml | 4 +- app/app.iml | 6 +- .../com/rey/material/demo/ButtonFragment.java | 62 ++-- .../rey/material/demo/DialogsFragment.java | 46 +-- .../rey/material/demo/SnackbarFragment.java | 2 +- .../rey/material/demo/SpinnersFragment.java | 2 +- lib/lib.iml | 6 +- .../rey/material/app/DatePickerDialog.java | 63 ++++ .../java/com/rey/material/app/Dialog.java | 316 +++++++++++++++++- .../com/rey/material/app/DialogFragment.java | 3 + .../com/rey/material/app/SimpleDialog.java | 77 +++++ .../rey/material/app/TimePickerDialog.java | 35 ++ .../com/rey/material/app/ToolbarManager.java | 36 ++ .../java/com/rey/material/widget/Button.java | 30 +- .../com/rey/material/widget/CheckBox.java | 4 + .../rey/material/widget/CheckedTextView.java | 44 ++- .../widget/CircleCheckedTextView.java | 6 +- .../rey/material/widget/CompoundButton.java | 30 +- .../com/rey/material/widget/DatePicker.java | 51 +++ .../com/rey/material/widget/EditText.java | 132 +++++--- .../material/widget/FloatingActionButton.java | 113 +++++-- .../com/rey/material/widget/ImageButton.java | 46 ++- .../com/rey/material/widget/ProgressView.java | 32 +- .../com/rey/material/widget/RadioButton.java | 4 + .../rey/material/widget/RippleManager.java | 16 +- .../java/com/rey/material/widget/Slider.java | 64 +++- .../com/rey/material/widget/SnackBar.java | 2 - .../java/com/rey/material/widget/Spinner.java | 193 +++++++++-- .../java/com/rey/material/widget/Switch.java | 52 ++- .../rey/material/widget/TabPageIndicator.java | 33 +- .../com/rey/material/widget/TextView.java | 44 ++- .../com/rey/material/widget/TimePicker.java | 50 +++ .../com/rey/material/widget/YearPicker.java | 28 ++ lib/src/main/res/values/styles.xml | 16 + 35 files changed, 1383 insertions(+), 269 deletions(-) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 5517f324..e5b8a7a4 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -6,6 +6,7 @@