From cf3b0d37b7df1845620ec1886f76a588e6cf4d21 Mon Sep 17 00:00:00 2001 From: Aaron Huttner Date: Fri, 12 Aug 2016 11:56:27 -0400 Subject: [PATCH] Move Name to New Registrant screen, move email and phone to Additional Info fix keyboard scrolling bug update api endpoints --- .idea/gradle.xml | 2 +- app/build.gradle | 1 + .../grommet/data/ApiEndpoints.java | 2 +- app/src/main/AndroidManifest.xml | 1 + .../grommet/data/api/ApiModule.java | 2 +- .../grommet/ui/misc/BetterSpinner.java | 72 ++++++++ .../ui/misc/BetterSpinnerValidator.java | 15 ++ .../grommet/ui/misc/BottomBarBehavior.java | 4 +- .../grommet/ui/misc/ObservableValidator.java | 1 + .../registration/AdditionalInfoFragment.java | 159 +++++++++++++++--- .../DatePickerDialogFragment.java | 3 +- .../registration/NewRegistrantFragment.java | 77 +++------ .../ui/registration/PersonalInfoFragment.java | 122 ++------------ .../ui/registration/RegistrationActivity.java | 10 +- .../grommet/ui/views/AddressView.java | 65 +++---- .../grommet/ui/views/NameView.java | 48 ++---- .../grommet/util/EmailOrEmpty.java | 19 +++ .../grommet/util/EmailOrEmptyRule.java | 20 +++ .../grommet/util/KeyboardUtil.java | 51 ++++++ .../grommet/util/PhoneOrEmpty.java | 19 +++ .../grommet/util/PhoneOrEmptyRule.java | 29 ++++ app/src/main/res/drawable/drop_down_arrow.xml | 11 ++ .../main/res/layout/activity_registration.xml | 8 +- .../res/layout/fragment_additional_info.xml | 152 ++++++++++++----- .../res/layout/fragment_new_registrant.xml | 71 ++++---- .../res/layout/fragment_personal_info.xml | 112 +++--------- .../res/layout/fragment_registration_base.xml | 4 +- app/src/main/res/layout/view_address.xml | 42 +---- app/src/main/res/layout/view_name.xml | 35 +--- app/src/main/res/values/dimens.xml | 2 + app/src/main/res/values/ids.xml | 4 + app/src/main/res/values/strings.xml | 3 +- app/src/main/res/values/styles.xml | 5 - build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 +- 35 files changed, 667 insertions(+), 510 deletions(-) create mode 100644 app/src/main/java/com/rockthevote/grommet/ui/misc/BetterSpinner.java create mode 100644 app/src/main/java/com/rockthevote/grommet/ui/misc/BetterSpinnerValidator.java create mode 100644 app/src/main/java/com/rockthevote/grommet/util/EmailOrEmpty.java create mode 100644 app/src/main/java/com/rockthevote/grommet/util/EmailOrEmptyRule.java create mode 100644 app/src/main/java/com/rockthevote/grommet/util/KeyboardUtil.java create mode 100644 app/src/main/java/com/rockthevote/grommet/util/PhoneOrEmpty.java create mode 100644 app/src/main/java/com/rockthevote/grommet/util/PhoneOrEmptyRule.java create mode 100644 app/src/main/res/drawable/drop_down_arrow.xml create mode 100644 app/src/main/res/values/ids.xml diff --git a/.idea/gradle.xml b/.idea/gradle.xml index cfe43151..0e23f8ed 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -5,7 +5,7 @@