DiscrollView 2


Source link: https://github.com/egek92/DiscrollView2

DiscrollView 2

Updated and revised version of flavienlaurent's DiscrollView.

Compatibilty

API Level 15+

Download

build.gradle(Project)

allprojects {
  repositories {

...
maven {
 url 'https://jitpack.io' 
}
  
}
 
}
 

build.gradle(Module:app)

dependencies {

compile 'com.github.egek92:discrollview2:v1.0' 
}
 

Usage

DiscrollView

<!-- Use DiscrollView as your root view in your layout -->  <us.egek.discrollview2.DiscrollView
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:discrollve="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent">
 <us.egek.discrollview2.DiscrollViewContent

 android:layout_width="match_parent"

 android:layout_height="match_parent">

<!-- put your discrollvable views here -->

  </us.egek.discrollview2.DiscrollViewContent> </us.egek.discrollview2.DiscrollView>  

Discrollvable views

  • alpha
discrollve:discrollve_alpha="true 
  • scale
discrollve:discrollve_scaleX="true" discrollve:discrollve_scaleY="true" 
  • translation
discrollve:discrollve_translation="fromLeft" discrollve:discrollve_translation="fromRight" discrollve:discrollve_translation="fromBottom" discrollve:discrollve_translation="fromTop" 

you can also combine:

discrollve:discrollve_translation="fromRight | fromBottom" 
  • background color

from cyan to pink:

discrollve:discrollve_fromBgColor="#00b8d4" discrollve:discrollve_toBgColor="#c51162" 

See DiscrollView 2 in action:

Sample Code:

 <?xml version="1.0" encoding="utf-8"?> <us.egek.discrollview2.DiscrollView
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:discrollve="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent">
 <us.egek.discrollview2.DiscrollViewContent

 android:layout_width="match_parent"

 android:layout_height="match_parent">

<TextView

android:layout_width="match_parent"

android:layout_height="600dp"

android:background="@android:color/white"

android:textColor="@android:color/black"

android:padding="25dp"

android:textSize="72sp"

android:gravity="center"

android:text="Welcome to DiscrollView 2" />

<View

android:layout_width="match_parent"

android:layout_height="200dp"

android:background="@color/colorPrimaryDark"

discrollve:discrollve_alpha="true"

discrollve:discrollve_threshold="0.3" />

<ImageView

android:layout_width="200dp"

android:layout_height="120dp"

discrollve:discrollve_alpha="true"

discrollve:discrollve_translation="fromRight|fromBottom"

android:src="@android:drawable/ic_dialog_alert" />

<View

android:layout_width="match_parent"

android:layout_height="200dp"

discrollve:discrollve_fromBgColor="@color/colorPrimary"

discrollve:discrollve_toBgColor="@color/colorAccent" />

<ImageView

android:layout_width="220dp"

android:layout_height="110dp"

android:layout_gravity="end"

android:src="@android:drawable/ic_btn_speak_now"

discrollve:discrollve_translation="fromRight" />

<TextView

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:padding="20dp"

android:gravity="center"

android:text="Fancy layout"

android:textSize="18sp"

discrollve:discrollve_alpha="true"

discrollve:discrollve_translation="fromTop" />

<ImageView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_margin="20dp"

android:layout_gravity="center"

android:src="@android:drawable/ic_delete"

discrollve:discrollve_scaleX="true"

discrollve:discrollve_scaleY="true"  />
 </us.egek.discrollview2.DiscrollViewContent> </us.egek.discrollview2.DiscrollView>  

Resources

Add views to a FlowLayout and each view is put to the right of the previous one and wraps to a new row when the current row is full.

The Android implementation of Replace. The content of the layout can be any view, such as ListView, RecyclerView, ScrollView, etc.

ShareLoginLib is a tool to help Android developers to share content (image, text or music) to WeChat, Weibo and QQ.

A nice tab to navigate between the different pages of a ViewPager. It supports badge, blur, and cross-fade effect.

How much time do you spend each day waiting for Gradle? Now you know!

Features:

  • Sortable bar chart summaries
  • CSV output
  • Daily and total summary

Do you like waiting? Godot is for passionate thumb-twiddlers of the quantified-self-era. A Gradle plugin to help you keep track of how much time you spend waiting for builds to finish.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes