Android-ScrollBarPanel allows to attach a View to a scroll indicator like it's done in Path 2.0

Overview

Path 2.0 like ScrollBarPanel for Android

Screenshot

Android-ScrollBarPanel allows to attach a View to a scroll indicator like it's done in Path 2.0.

Features

  • Supports custom View as ScrollBarPanel.

Repository at https://github.com/rno/Android-ScrollBarPanel.

Usage

Layout

<!--
  The ExtendedListView replaces a standard ListView widget
  and provides the ScrollBarPanel capability.
-->
<com.dafruits.android.library.widgets.ExtendedListView
    xmlns:dafruits="http://schemas.android.com/apk/res/YOUR_APP_PACKAGE_NAME"
    android:id="@android:id/list"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"
    dafruits:scrollBarPanel="@layout/YOUR_SCROLLBARPANEL_LAYOUT"
    dafruits:scrollBarPanelInAnimation="@anim/YOUR_ANIMATION"
    dafruits:scrollBarPanelOutAnimation="@anim/YOUR_ANIMATION" />

Activity

// Set your scrollBarPanel
ExtendedListView listView = (ExtendedListView) findViewById(android.R.id.list);

// Attach a position changed listener on the listview and play with your scrollBarPanel
// when you need to update its content
mListView.setOnPositionChangedListener(new OnPositionChangedListener() {

	@Override
	public void onPositionChanged(ExtendedListView listView, int firstVisiblePosition, View scrollBarPanel) {
		((TextView) scrollBarPanel).setText("Position " + firstVisiblePosition);
	}
});

Pull Requests

I will gladly accept pull requests for fixes and feature enhancements but please do them in the dev branch. The master branch is for the latest stable code, dev is where I try things out before releasing them as stable. Any pull requests that are against master from now on will be closed asking for you to do another pull against dev.

Changelog

0.1.0

  • first commit :-)

0.1.1

  • added scrollBarPanel attribute to ExtendedListView

0.1.2

  • Optimisations

0.1.3

  • More precision regarding scrollBarPanel fade in and fade out (Thanks Cyril Mottier for the tip!)

0.1.4

  • Use the position the scrollbar thumb is on instead of the firstVisibleItem position.

0.1.5

  • Fix NPE (Thanks to Chris Banes)
  • Added attributes to ExtendedListView to customize in / out animation of scrollBarPanel

Acknowledgments

License

Licensed under the Apache License, Version 2.0

Comments
  • Explain better the role of this widget

    Explain better the role of this widget

    I am sure that this is a very nice widget. However, at the moment, your sole description is that it is "like Path", which will only make sense to people who use that app. Not everybody uses Path. For example, I do not use Path. Hence, I have no idea what your widget does that is not already handled by SectionIndexer in the SDK.

    IMHO, adding a few sentences to the README explaining the widget's behavior and its use cases will make it easier for developers to determine whether or not your widget meets their particular needs.

    opened by commonsguy 4
  • Dev

    Dev

    I merge the library with the custom panel I created. Please tell me if the format of the commit log is good and what I should changes for next tries. Hope you will enjoy that panel look ^^

    opened by DarkUD 2
  • First commit lol ^^

    First commit lol ^^

    • All project can be found on scrollviewAdvisor folder
    • Since the work was well done on extendlistview I did nothing there yet I didnt need it
    • Created a widget DafruitsPanel to work along with the listview and provide visual info about our position
    • commented a bit :p was hard to read the code of listview

    Signed-off-by: Gnassounou Boris [email protected]

    opened by DarkUD 2
  • Optimisations

    Optimisations

    Here's i've moved the OnScrollListener onto the ListView itself, should be a bit quicker.

    I've also added a new type of Listener that doesn't fire every scroll event.

    opened by chrisbanes 1
  • Optimisations

    Optimisations

    Some optimisations I've added:

    • Added a new listener called OnPositionChangedListener, instead of use OnScrollListener. onPositionChanged(...) is called only when the first visible item has changed
    • Other small optimisations
    • Added a .gitignore (same as the one I use on PtR).
    opened by chrisbanes 0
Owner
Arnaud Vallat
Android engineer @Microsoft. Formerly lead Android at Sunrise.
Arnaud Vallat
Android view with both path from constructed path or from svg.

android-pathview You want to animate svg or normal Paths?<br> Change the color, pathWidth or add svg.<br> Animate the "procentage" property to make th

Georgi Eftimov 2.9k Dec 27, 2022
TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing.

This project isn't maintained anymore. It is now recommended to use https://github.com/peterLaurence/MapView. MapView is maintained by Peter, one of o

Mike Dunn 1.5k Dec 29, 2022
Step by step,just use HorizontalStepView,VerticalStepView. step indicator,flow indicator,timeline,order process,express status

StepView Step by step. Step indicator. Flow indicator。 snapshot like this:HorizontalStepView like this also like this:VerticalStepView Yeah,I am not w

baoyachi. Aka Rust Hairy crabs 4.1k Dec 30, 2022
Modern GTD(Get Things Done) Android App

Neo Flow A modern GTD Android App to improve your workflow Explore the docs » View Demo · Report Bug · Request Feature Table of Contents About The Pro

Grinding... 2 Dec 15, 2021
Path like scrollbar panel with clock.

ScrollBarPanelWithClock Path 2.0 like scrollbar with clock widget for Android. This is an open source library which uses the scroll bar library. I hav

learnNcode 170 Feb 20, 2021
Android library implementing a poppy view on scroll, similar to the one found in the Google Plus app

PoppyView PoppyView is a library which implements view on the bottom which come and go relative to the user scroll. It can be seen in the Google plus

Flavien Laurent 409 Nov 23, 2022
An Android application which visualizes some of the famous Algorithms for finding path from Source to Destination in a 2D grid.

Pathfinding-Visualizer An Android application which visualizes some of the famous Algorithms for finding path from Source to destination in a 2D grid.

Pranjal Mishra 37 Aug 8, 2022
Android view that allows the user to create drawings. Customize settings like color, width or tools. Undo or redo actions. Zoom into DrawView and add a background.

DrawView Android view that allows the user to create drawings. Draw anything you like in your Android device from simple view. Customize draw settings

Oscar Gilberto Medina Cruz 839 Dec 28, 2022
Android View that displays different content based on its state

MultiStateView Android View that displays different content based on its state. Based off of MeetMe/MultiStateView The four different states the view

Kenny 1.2k Dec 16, 2022
Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial data.

Android-ProgressFragment Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the init

Evgeny Shishkin 813 Nov 11, 2022
Step indicator with titles/labels and tons of customizations.

PageStepIndicator was built from existing StepIndicator library developed by Layerlre . I needed a page indicator that can display title and at the sa

OGx09 27 Apr 17, 2022
Scrollbar Indicator usign compose

Carousel Carousel is a scroll indicator for ScrollableState composes. Carousel can be vertial or horizontal indicator based on the size provided using

null 58 Oct 19, 2022
A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content.

Swipecards Travis master: A Tinder-like cards effect as of August 2014. You can swipe left or right to like or dislike the content. The library create

Dionysis Lorentzos 2.3k Dec 9, 2022
Created a Tinder like Card Deck & Captain Train like Toolbar

TinderView Created A Simple and Beautiful Tinder like card deck & Captain Train like toolbar. This is heavily based on AndroidSwipeableCardStack, wenc

Aradh Pillai 328 Jun 18, 2022
A view that allows to paint and saves the result as a bitmap

Android Drawable View Sample app: An Android view that allows to paint with a finger in the screen and saves the result as a Bitmap. Importing to your

Christian Panadero 581 Dec 13, 2022
This is a android custom view , like a scratch card effect!

ScratchView This is a android custom view , like a scratch card effect! Last Update 采纳DearZack童鞋的优化思路,把计算擦除面积比例的操作放在手指离开屏幕时,以降低对CPU的占用。 Articles Scrat

D_clock爱吃葱花 316 Nov 29, 2022
An Android custom view to display digits rendered as dots in a grid, with a style like a 1970s LED clock.

#DotMatrixView This is an Android library project providing a custom view that can display things on a grid of dots. When the displayed value changes,

Mark Roberts 48 Apr 21, 2022
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc.

The article on how this library was created is now published. You can read it on this link here. →. ?? EasyFlipView Built with ❤︎ by Wajahat Karim and

Wajahat Karim 1.3k Dec 14, 2022
Android View for displaying and selecting values in a circle-shaped View, with animations and touch gestures.

CircleDisplay Android View for displaying and selecting (by touch) values / percentages in a circle-shaped View, with animations. Features Core featur

Philipp Jahoda 287 Nov 18, 2022