Skip to content

Fgabz/android-linear-layout-manager

 
 

Repository files navigation

Linear Layout Manager

Description

Implementation of LinearLayoutManager which wraps its contents.

Usage example:

final LinearLayoutManager layoutManager = new org.solovyev.android.views.llm.LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);
final RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recyclerview);
recyclerView.setLayoutManager(layoutManager);
recyclerView.addItemDecoration(new DividerItemDecoration(this, null));
recyclerView.setAdapter(adapter);

Note that if the child views in your RecyclerView have the fixed size LinearLayoutManager#setChildSize should be used to avoid unnecessary measuring.

Installation

Gradle dependency:

compile 'org.solovyev.android.views:linear-layout-manager:0.3@aar'

Maven dependency:

<dependency>
    <groupId>org.solovyev.android.views</groupId>
    <artifactId>linear-layout-manager</artifactId>
    <version>0.3</version>
    <type>apklib</type>
</dependency>

Applications

The following applications use this library:

About

Linear Layout Manager which supports WRAP_CONTENT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%