MultiLevelListView


Source link: https://github.com/defacto133/MultiLevelExpandableIndentableListView

MultiLevelExpandableIndentableListView

This component is an adapter that can handle hierarchical data (e.g. comments) in a RecyclerView, so that the user can collapse and expand elements inside the hierarchy.

Here's a video of the SampleApp demo

How to import the library in your probject

There are three ways to import the library. The easiest way is this:

  1. Clone the repository

    $ git clone https://github.com/defacto133/MultiLevelExpandableIndentableListView.git

  2. Add these two lines to your settings.gradle file

    include ':multilevelexpindlistview'

    project(':multilevelexpindlistview').projectDir = new File('<path-to-cloned-repo>/MultiLevelExpandableIndentableListView/multilevelexpindlistview')

An alternative way is this :

  1. Clone the repository

    $ git clone https://github.com/defacto133/MultiLevelExpandableIndentableListView.git

  2. In Android Studio open the Module Settings (press F4)

  3. Click on the top left green cross to add a new module

  4. Select "Import Existing Project"

  5. As Source Directory select the directory where you cloned the repository

  6. The module :multilevelexpindlistview contains the library so you have to import this. The module :sampleapp is optional and it's a simple example of how to use the library.

  7. Click Finish

  8. Now in the Modules listing you see a new library module multilevelexpindlistview (and a project module sampleapp if you decided to import that too). In the Modules listing select your project module (usually is called app) and click on Dependencies.

  9. Click on the top right green cross and select Module dependency

  10. Select :multilevelexpindlistview

If you just want to import the aar file:

  1. Clone the repository

    $ git clone https://github.com/defacto133/MultiLevelExpandableIndentableListView.git

  2. cd to the direcotry created

    $ cd MultiLevelExpandableIndentableListView/

  3. Set a variable with the path to the Android SDK

    $ export ANDROID_HOME=<path-to-andoid-sdk>

  4. Build the project

    $ ./gradlew build

    This will make multilevelexpindlistview-release.aar in

    <path-to-cloned-repo>/MultiLevelExpandableIndentableListView/multilevelexpindlistview/build/outputs/aar/

  5. In Android Studio open the Module Settings (press F4)

  6. Click on the top left green arrow to add an new module

  7. Select "Import .JAR or .AAR Package" and select the .aar file from step 4

  8. Now in the Modules listing you see a new module multilevelexpindlistview. In the Modules listing select your project module (usually is called app) and click on Dependencies.

  9. Click on the top right green cross and select Module dependency

  10. Select :multilevelexpindlistview

Usage

You should extend the abstract class MultiLevelExpIndListAdapter (see MyAdapter.java in sampleapp for an example) and then associate your adapter with a RecyclerViw. The data that you pass to your MultiLevelExpIndListAdapter should implement the interface MultiLevelExpIndListAdapter.ExpIndData (see MyComment.java in sampleapp for an example).

Resources

Android library for accessing device call logs.

ImageTransition is a small android library to transition between a circular ImageView from one Activity to a rectangular ImageView in the launched Activity.

Handles the drawable binding and position on View, EditText, ImageView or TextView. Also can change the icon color, alpha and size using a SelectorDrawable.

This is mainly core java project. It solves the problem of valid and meaningful random data generation in code flow itself (rather than parsing some random data file and loading data into some list).

It can use existing class models and generate wide range of preexisting random data to test data intensive application in absence of APIs.

Flare provide the easy implementation of circular indicator with ViewPager. (viewpager indicator)

A custom view that display multiple attributes by a polygon shape.

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