Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dlew/android-gridlayout
A backwards compatible implementation of GridLayout for Android
https://github.com/dlew/android-gridlayout
Last synced: 17 days ago
JSON representation
A backwards compatible implementation of GridLayout for Android
- Host: GitHub
- URL: https://github.com/dlew/android-gridlayout
- Owner: dlew
- License: apache-2.0
- Created: 2012-01-10T00:05:17.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2020-07-17T15:31:27.000Z (over 4 years ago)
- Last Synced: 2024-12-16T08:15:13.346Z (21 days ago)
- Language: Java
- Homepage:
- Size: 58.6 KB
- Stars: 186
- Watchers: 17
- Forks: 51
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-person - android-gridlayout
- awesome-android-ui - https://github.com/dlew/android-gridlayout
README
GridLayout Library
==================This library provides a version of [GridLayout](http://developer.android.com/reference/android/widget/GridLayout.html) that works across all versions of Android 1.5+. As a side effect, this library also includes the lightweight [Space](http://developer.android.com/reference/android/widget/Space.html) as well.
For an introduction to GridLayout/Space, [check out the Android Developers Blog post about the benefits and usage of GridLayout and Space](http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html).
Compilation
===========Compiling this library requires that the build SDK version be set to 3.0 or above. (It uses some more modern methods if they are available.)
Usage
=====This is a copy of the GridLayout from Android, so its usage is very similar. The only difference is that some attributes you will need to use your project's namespace instead of the android namespace:
Caveats
=======Due to the inability to detect changes in child visibility in older versions of ViewGroup, it is necessary to call `GridLayout.notifyChildVisibilityChanged()` whenever you change the visibility of a child View of a GridLayout.
If you never change the visibility of children, you don't have to worry about this.