Java
Need help with android-linear-layout-manager?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
serso

Description

Linear Layout Manager which supports WRAP_CONTENT

414 Stars 97 Forks Other 35 Commits 0 Opened issues

Services available

Need anything else?

Linear Layout Manager

DEPRECATED

RecyclerView supports WRAP_CONTENT starting from Android Support Library 23.2. More details here: http://android-developers.blogspot.se/2016/02/android-support-library-232.html

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:[email protected]'
Maven dependency:
xml

    org.solovyev.android.views
    linear-layout-manager
    0.5
    apklib

License

Library is distributed under Apache 2.0 license, see LICENSE.txt

Applications

The following applications use this library: * Sample app * Say it right!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.