From 4b8aa73a1616208c0598274886a0b6a90bba192d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E5=A4=96=E6=A1=83=E6=BA=90?= Date: Tue, 15 Dec 2015 15:03:07 +0800 Subject: [PATCH] update slider to support zoom and zoom out mode zoom and zoom out supports --- .idea/workspace.xml | 848 ++++++++++-------- AppDemo/src/main/AndroidManifest.xml | 3 + .../com/hkm/sliderdemo/BigScreenDemo.java | 21 +- .../java/com/hkm/sliderdemo/MainActivity.java | 11 +- .../java/com/hkm/sliderdemo/NewsArticle.java | 52 ++ .../com/hkm/sliderdemo/ZoomScreenSlider.java | 39 + .../java/com/hkm/sliderdemo/modules/Feed.java | 86 ++ AppDemo/src/main/res/layout/b_slider.xml | 71 ++ .../src/main/res/layout/news_feed_item.xml | 22 + AppDemo/src/main/res/menu/main.xml | 10 + README.md | 8 +- gradle.properties | 6 +- library/build.gradle | 8 +- library/library.iml | 17 +- .../Intents/ZoomablePicassoSwippable.java | 231 +++++ .../java/com/hkm/slider/SliderLayout.java | 36 +- .../slider/SliderTypes/BaseSliderView.java | 6 +- .../SliderTypes/NewsFeedArticleView.java | 66 ++ .../hkm/slider/SliderTypes/ZoomableView.java | 228 +++++ .../src/main/res/drawable/shadow_upward.xml | 11 + .../res/layout/content_zoomable_slide.xml | 54 ++ .../layout/content_zoomble_slider_frame.xml | 11 + library/src/main/res/values/attrs.xml | 4 + library/src/main/res/values/color.xml | 3 + library/src/main/res/values/dimen.xml | 4 + library/src/main/res/values/ids.xml | 6 + library/src/main/res/values/styles.xml | 11 + 27 files changed, 1480 insertions(+), 393 deletions(-) create mode 100644 AppDemo/src/main/java/com/hkm/sliderdemo/NewsArticle.java create mode 100644 AppDemo/src/main/java/com/hkm/sliderdemo/ZoomScreenSlider.java create mode 100644 AppDemo/src/main/java/com/hkm/sliderdemo/modules/Feed.java create mode 100644 AppDemo/src/main/res/layout/b_slider.xml create mode 100644 AppDemo/src/main/res/layout/news_feed_item.xml create mode 100644 library/src/main/java/com/hkm/slider/Intents/ZoomablePicassoSwippable.java create mode 100644 library/src/main/java/com/hkm/slider/SliderTypes/NewsFeedArticleView.java create mode 100644 library/src/main/java/com/hkm/slider/SliderTypes/ZoomableView.java create mode 100644 library/src/main/res/drawable/shadow_upward.xml create mode 100644 library/src/main/res/layout/content_zoomable_slide.xml create mode 100644 library/src/main/res/layout/content_zoomble_slider_frame.xml create mode 100644 library/src/main/res/values/dimen.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4ca7d64..e796be6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -99,11 +99,11 @@ @@ -542,20 +542,50 @@