From e409b9031c462b5926f3677494c0b1290af172d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96=E7=90=AA?= Date: Thu, 8 Aug 2019 18:09:49 +0800 Subject: [PATCH] update to add the version of androidx --- .idea/gradle.xml | 2 + androidx/.gitignore | 1 + androidx/build.gradle | 51 + androidx/proguard-rules.pro | 21 + .../androidx/ExampleInstrumentedTest.java | 26 + androidx/src/main/AndroidManifest.xml | 18 + .../com/noober/androidx/MainActivity.java | 107 +++ .../src/main/res/layout/activity_main.xml | 359 +++++++ .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4569 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7098 bytes .../src/main/res/mipmap-xhdpi/rg_select.png | Bin 0 -> 818 bytes .../src/main/res/mipmap-xhdpi/rg_unselect.png | Bin 0 -> 702 bytes androidx/src/main/res/values/colors.xml | 8 + androidx/src/main/res/values/strings.xml | 3 + androidx/src/main/res/values/styles.xml | 28 + .../com/noober/androidx/ExampleUnitTest.java | 17 + app/build.gradle | 9 - .../noober/backgroudlibrary/MainActivity.java | 2 + build.gradle | 2 +- gradle.properties | 2 +- libraryx/.gitignore | 1 + libraryx/background-proguard-rules.pro | 24 + libraryx/build.gradle | 47 + .../background/ExampleInstrumentedTest.java | 26 + libraryx/src/main/AndroidManifest.xml | 12 + .../BLActivityLifecycleRegister.java | 42 + .../background/BackgroundContentProvider.java | 49 + .../noober/background/BackgroundFactory.java | 335 +++++++ .../noober/background/BackgroundLibrary.java | 90 ++ .../background/common/MultiSelector.java | 44 + .../background/common/ResourceUtils.java | 45 + .../drawable/AnimationDrawableCreator.java | 72 ++ .../drawable/ButtonDrawableCreator.java | 61 ++ .../drawable/ColorStateCreator.java | 73 ++ .../background/drawable/DrawableCreator.java | 886 ++++++++++++++++++ .../background/drawable/DrawableFactory.java | 56 ++ .../drawable/GradientDrawableCreator.java | 339 +++++++ .../drawable/ICreateColorState.java | 11 + .../background/drawable/ICreateDrawable.java | 11 + .../MultiSelectorDrawableCreator.java | 98 ++ .../MultiTextColorSelectorColorCreator.java | 86 ++ .../drawable/PressDrawableCreator.java | 41 + .../drawable/SelectorDrawableCreator.java | 88 ++ .../com/noober/background/view/BLButton.java | 28 + .../noober/background/view/BLCheckBox.java | 27 + .../background/view/BLConstraintLayout.java | 28 + .../noober/background/view/BLEditText.java | 27 + .../noober/background/view/BLFrameLayout.java | 27 + .../noober/background/view/BLGridLayout.java | 27 + .../noober/background/view/BLGridView.java | 27 + .../noober/background/view/BLImageButton.java | 27 + .../noober/background/view/BLImageView.java | 27 + .../background/view/BLLinearLayout.java | 27 + .../noober/background/view/BLListView.java | 27 + .../noober/background/view/BLRadioButton.java | 27 + .../noober/background/view/BLRadioGroup.java | 22 + .../background/view/BLRelativeLayout.java | 27 + .../noober/background/view/BLScrollView.java | 27 + .../noober/background/view/BLTextView.java | 27 + .../com/noober/background/view/BLView.java | 27 + .../com/noober/background/view/Const.java | 24 + libraryx/src/main/res/values/attrs.xml | 247 +++++ .../META-INF/proguard/background_library.pro | 24 + .../noober/background/ExampleUnitTest.java | 17 + settings.gradle | 2 +- 65 files changed, 3951 insertions(+), 12 deletions(-) create mode 100644 androidx/.gitignore create mode 100644 androidx/build.gradle create mode 100644 androidx/proguard-rules.pro create mode 100644 androidx/src/androidTest/java/com/noober/androidx/ExampleInstrumentedTest.java create mode 100644 androidx/src/main/AndroidManifest.xml create mode 100644 androidx/src/main/java/com/noober/androidx/MainActivity.java create mode 100644 androidx/src/main/res/layout/activity_main.xml create mode 100644 androidx/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 androidx/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100755 androidx/src/main/res/mipmap-xhdpi/rg_select.png create mode 100755 androidx/src/main/res/mipmap-xhdpi/rg_unselect.png create mode 100644 androidx/src/main/res/values/colors.xml create mode 100644 androidx/src/main/res/values/strings.xml create mode 100644 androidx/src/main/res/values/styles.xml create mode 100644 androidx/src/test/java/com/noober/androidx/ExampleUnitTest.java create mode 100644 libraryx/.gitignore create mode 100644 libraryx/background-proguard-rules.pro create mode 100644 libraryx/build.gradle create mode 100644 libraryx/src/androidTest/java/com/noober/background/ExampleInstrumentedTest.java create mode 100644 libraryx/src/main/AndroidManifest.xml create mode 100644 libraryx/src/main/java/com/noober/background/BLActivityLifecycleRegister.java create mode 100644 libraryx/src/main/java/com/noober/background/BackgroundContentProvider.java create mode 100644 libraryx/src/main/java/com/noober/background/BackgroundFactory.java create mode 100644 libraryx/src/main/java/com/noober/background/BackgroundLibrary.java create mode 100644 libraryx/src/main/java/com/noober/background/common/MultiSelector.java create mode 100644 libraryx/src/main/java/com/noober/background/common/ResourceUtils.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/AnimationDrawableCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/ButtonDrawableCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/ColorStateCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/DrawableCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/DrawableFactory.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/GradientDrawableCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/ICreateColorState.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/ICreateDrawable.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/MultiSelectorDrawableCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/MultiTextColorSelectorColorCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/PressDrawableCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/drawable/SelectorDrawableCreator.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLButton.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLCheckBox.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLConstraintLayout.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLEditText.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLFrameLayout.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLGridLayout.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLGridView.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLImageButton.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLImageView.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLLinearLayout.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLListView.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLRadioButton.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLRadioGroup.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLRelativeLayout.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLScrollView.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLTextView.java create mode 100644 libraryx/src/main/java/com/noober/background/view/BLView.java create mode 100644 libraryx/src/main/java/com/noober/background/view/Const.java create mode 100644 libraryx/src/main/res/values/attrs.xml create mode 100644 libraryx/src/main/resources/META-INF/proguard/background_library.pro create mode 100644 libraryx/src/test/java/com/noober/background/ExampleUnitTest.java diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 66e2f6f..880cd0c 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -8,8 +8,10 @@