Skip to content

seahl0119/Android-Widgets

 
 

Repository files navigation

Scarlett Android Widgets

A selection of Android widgets (views) to simplify development.

Preview

EasyViewPager EasyRecyclerView FlexTextView
A wrapper library for the ViewPager widget to simplify instantiation. A wrapper library for the RecyclerView widget to simplify instantiation. An adaptive text view widget focused on smooth animations between data changes and configurable truncation modes for long texts.

Getting Started

This library includes the EasyViewPager module, designed to automate implementation of the ViewPagerAdapter, with other functionalities.

Prerequisites

Android development environment with the jcenter repository added in the project's build.gradle file. A target SDK of 14 or higher.

repositories {
        jcenter()
    }

Installation

Add the following dependency in the app's build.gradle file:

dependencies {
    compile 'net.scarlettsystems.android:widget:0.1.12'
}

ProGuard

If you are using ProGuard, add the following options to the module's proguard-rules.pro file:

-dontwarn okhttp3.**
-dontwarn okio.**

EasyViewPager

See more: EasyViewPager Readme

A wrapper library for the ViewPager widget to simplify instantiation.

Benefits

Create paged views quickly without the need to specify a Pager Adapter. A generic instance of the adapter is created and managed internally within the EasyViewPager instance. Adding and removing pages are facilitated by simple method calls on this instance, by passing in Views.

EasyRecyclerView

See more: EasyRecyclerView Readme

A wrapper library for the RecyclerView widget to simplify instantiation.

Benefits

Hides the implementation of the RecyclerView Adapter and simplifies the initialisation process.

FlexTextView

See more: FlexTextView Readme

An adaptive text view widget focused on smooth animations between data changes and configurable truncation modes for long texts.

Benefits

FlexTextView offers different modes to truncate long sequences of texts including

  • Collapsing mode where the view is collapsed to display a set number of lines and expanded by the user,
  • Scrolling mode where the view is sized to display a set number of lines and the user can scroll through.

Versioning

Current version: Download

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache 2.0 License

About

Android libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%