Loopbar:tap Bar with unlimited scrolling

Source: Internet
Author: User

Meet the toolbar-tab bar with unlimited scrolling for Android by Cleveroad

At Cleveroad we recently realized that navigation panels are boring and trivial by using any one of the application categories. That's why our designers are armed and we've introduced you to Android-based apps, our new component-Loopbar. The idea was to get the navigation menu on the fingerprint, in the tab bar. It is more important to think that there are some specific features that make it stand out from a similar crowd. So try the Loopbar library in your application and you'll see the difference.

If you are trying to create an unusual look and navigation app, you are welcome to use the revolving lawyer library. It's really easy to integrate and can add spice to the app!

If you need more details on how to use the component, what are the benefits it offers, please read our blog post: Case study:loop Bar for Android

Installing and using the installation

by Gradle this:

dependencies {    "com.cleveroad:loopbar:1.0.0"
}

Or just download the zip and import module "toolbars, widgets" to be able to modify the source code

Characteristics

Viewing is made up of two parts:

    • You can select an unlimited list of groups
    • The selected view

The list of groups will be infinite if all the project adapters do not fit on the screen in other cases, this will be a static list. The view selected by request can be placed on the screen, which places the overlay layout. Widgets have horizontal and vertical layouts, and start or end gravity of the selected view.

You are allowed to use any Recyclerview adapter that you want. The logic of infinite rolling of concrete is completely incapsulated

Support for Android Studio Layout Preview.


Usage

    <com

Android : id="@+id/endlessview" 

Android : layout_width="match_parent" 

Android : layout_height="wrap_content" 

app : Enls_placeholderid="@id/placeholder" 

app : enls_orientation="horizontal" 

app : enls_selectiongravity="start" 

app : enls_selectionmargin="10dp" 

app : enls_overlaysize="5dp" 

app : enls_selectioninanimation="@animator/enls_scale_restore" 

app : enls_selectionoutanimation="@animator/enls_scale_small" 

app : enls_selectionbackground="@android: Color/holo_blue_dark" 

/>

Enls_overlaysize & Enls_placeholderid for overlay functions.

attribute name Description
Enls_overlaysize A size of selected view overlaying
Enls_placeholderid An ID of view in which you should use Layout:above or other attributes of relativelayouts, because Loopbarview would have I ncreased height in this case. See more in Sample
Enls_selectiongravity A gravity of selection view. Can be vertical or horizontal. Default Horizontal
Enls_selectionmargin A margin of selectionview from bounds of view. Default 5DP
Enls_selectioninanimation An animation of appearing an icon inside selection view
Enls_selectionoutanimation An animation of hiding an icon inside selection view
Enls_selectionbackground Selection background. Default #ff0099cc
Android:background View has yellow background by default. Use Standart android:background attribute-to-change it. Default #ffc829

To initialize the widget and work item with it, you should install the adapter and add the item click Listener:

Loopbarview Loopbarview = Findviewbyid (..); Categoriesadapter = new Simplecategoriesadapter (Mockeditemsfactory.getcategoryitemsuniq ()); Loopbarview.setcategoriesadapter (Categoriesadapter); Loopbarview.addonitemclicklistener (this);

Here Simplecategoriesadapter uses this collection of Icategoryitem objects (to draw the default view of icons and text). And you are free to use your own adapter with customer projects.

Control wrapped Recyclerview Animations You can use Getwrappedrecyclerview ().

Support

If you have any other questions about using this library, please contact us at the support request for [email protected] (message subject: "Ring Bar". ") also pulled the welcome of the request.

Github:https://github.com/cleveroad/loopbar


Loopbar:tap Bar with unlimited scrolling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.