Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serso/android-linear-layout-manager
Linear Layout Manager which supports WRAP_CONTENT
https://github.com/serso/android-linear-layout-manager
Last synced: 3 days ago
JSON representation
Linear Layout Manager which supports WRAP_CONTENT
- Host: GitHub
- URL: https://github.com/serso/android-linear-layout-manager
- Owner: serso
- License: other
- Created: 2015-04-11T16:54:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-12T09:42:58.000Z (about 8 years ago)
- Last Synced: 2024-11-10T13:16:32.364Z (10 days ago)
- Language: Java
- Size: 139 KB
- Stars: 418
- Watchers: 14
- Forks: 96
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-android-ui - https://github.com/serso/android-linear-layout-manager
- awesome-android-ui - https://github.com/serso/android-linear-layout-manager
README
# 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](https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager.html) 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.5@aar'
Maven dependency:
```xmlorg.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](https://oss.sonatype.org/content/repositories/releases/org/solovyev/android/views/linear-layout-manager-app/)
* [Say it right!](https://play.google.com/store/apps/details?id=org.solovyev.android.dictionary.forvo)