StikkyHeader


Source link: https://github.com/carlonzo/StikkyHeader

StikkyHeader

This is a very simple library for Android that allows you to stick an header to a ListView and easily apply animation to it

Usage

To use the StikkyHeader library, you just need 3 lines:

  StikkyHeaderBuilder.stickTo(mListView)
  .setHeader(R.id.header, containerLayout)
  .minHeightHeader(250)
  .build();

that's all, folks!

Header Animator

Using the StikkyHeader you can create easly some nice animations extending the HeaderStikkyAnimator and using the utility AnimatorBuilder. The animations available are Translation, Scale and Fade and can be combined to build an animation during the translation of the StikkyHeader.

Example:

public class IconAnimator extends HeaderStikkyAnimator {

@Override
  public AnimatorBuilder getAnimatorBuilder() {

 View viewToAnimate = getHeader().findViewById(R.id.icon);

Point point = new Point(50,100) // translate to the point with coordinate (50,100);


float scaleX = 0.5f //scale to the 50%

float scaleY = 0.5f //scale to the 50%

float fade = 0.2f // 20% fade

 AnimatorBuilder animatorBuilder = AnimatorBuilder.create()

 .applyScale(viewToAnimate, scaleX, scaleY)

 .applyTranslation(viewToAnimate, point)

 .applyFade(viewToAnimate, fade);

 return animatorBuilder;
  
}
 
}

and then set the animator to the StikkyHeader:

  StikkyHeaderBuilder.stickTo(mListView)
  .setHeader(R.id.header, containerLayout)
  .minHeightHeader(250)
  .animator(new IconAnimator())
  .build();

ViewGroups supported

The StikkyHeader supports:

  • ListView
  • RecyclerView
  • ScrollView

How to integrate

Grab via Gradle:

repositories {

maven {
 url "https://oss.sonatype.org/content/repositories/snapshots/" 
}
 
}
 dependencies {

compile 'com.github.carlonzo.stikkyheader:core:0.0.3-SNAPSHOT' 
}

or via Maven:

<dependency>
<groupId>com.github.carlonzo.stikkyheader</groupId>
<artifactId>core</artifactId>
<version>0.0.3-SNAPSHOT</version> </dependency>

Video

Demo

here the [link][1] to the emulator to try few examples. [1]: https://appetize.io/embed/urptay0fdprc9dp3xzk6e41g70?screenOnly=false&scale=75

Resources

The gradle plugin to add proguard snippets to your proguard setting file quickly.

This plugin pulls the proguard information from the krschultz/android-proguard-snippets.
If you wanna add the snippets, PR to android-proguard-snippets!

Android UI logger library.

Main features:

  • Always on the screen, even if app is paused. It can be destroyed after direct command call.
  • You can drag it to the any place of the screen.
  • Font and background colors can be changed by double tap.
  • You can re-size main log window by dragging down right corner * of the log window.
  • Clear the screen by clicking on the right upper corner.
  • Easy use. Only three API methods.
  • Easy link with Gradle.

Wizard encapsulates navigation operations between fragments of an activity using BackStack.

ExceptionWear is very simple library to solve problem of not passing exceptions from Android Wear devices to the phone. So if you release an app for smart-watches to Google Play and it will crash (and it will) you won't get any information about it.

ASignature is a library for drawing smooth signatures. It uses variable width Bézier curve interpolation based on Smoother Signatures. It works from API 8+ and doesn't depend on any external libraries.

QuickScroll is a library aimed at creating similar scrolling experiences to the native Contacts app's People view. It has the same scrolling capabilities as the ListView's native fast-scroll, but comes with a much a much more customizable design, two indicator styles and an always visible scrollbar. The two most common modes are popup and indicator. Works seamlessly with ListView and ExpandableListView.

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