• Stars
    star
    186
  • Rank 207,316 (Top 5 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A backwards compatible implementation of GridLayout for Android

GridLayout Library

This library provides a version of GridLayout that works across all versions of Android 1.5+. As a side effect, this library also includes the lightweight Space as well.

For an introduction to GridLayout/Space, check out the Android Developers Blog post about the benefits and usage of GridLayout and Space.

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:

<com.gridlayout.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:gridlayout="http://schemas.android.com/apk/res/com.mycompany.myapp"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    gridlayout:alignmentMode="alignBounds"
    gridlayout:columnCount="4"
    gridlayout:columnOrderPreserved="false"
    gridlayout:useDefaultMargins="true" >

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.

More Repositories

1

joda-time-android

Joda-Time library with Android specialization
Java
2,626
star
2

android-architecture-counter-sample

Sample app using Android architecture components
Kotlin
633
star
3

rxjava-multiple-sources-sample

Sample code demonstrating loading multiple data sources via RxJava
Java
471
star
4

android-gfycat

Android application that loads gifs via gfycat for efficiency's sake
Java
359
star
5

android-movies-demo

Sample application demonstrating Android design and animation
Java
358
star
6

android-subscription-leaks

Small sample app demonstrating memory leak solutions when using RxJava
Java
159
star
7

android-hw-layers-sample

Sample project showing how to use hardware layers for great good
Java
65
star
8

aoc-2017

Advent of Code 2017
Kotlin
51
star
9

android-ragefaces

Silly Android application for sharing rage faces with other apps
Java
31
star
10

android-quickmap

Quick contacts list --> directions app
Java
21
star
11

android-download-shortcut

Adds "download" option when sharing files on Android
Java
17
star
12

android-shared-test-module-example

Example of sharing a test module between multiple types of tests/modules
Kotlin
15
star
13

android-utils

My own set of utils for Android applications
Java
15
star
14

android-mvc-demo

Java
14
star
15

android-custom-views-sample

Sample code for the talk "Custom Views for Profit and Pleasure"
Java
13
star
16

wordle-solver

Evaluates the efficacy of Wordle algorithms
Kotlin
12
star
17

aoc-2016

Advent of Code (2016)
Kotlin
12
star
18

android-headset-blocker

Java
11
star
19

android-svg-drawable-test

Testing performance of SVGs vs bitmaps
Java
10
star
20

android-drawable-xml-demo

Java
9
star
21

android-pseudolocalization-sample

A small sample showing off how pseudolocalization works on Android
Java
8
star
22

android-sotm

Sentinels of the Multiverse helper application
Java
6
star
23

kotlin-riddler

Solving riddles using Kotlin
Kotlin
6
star
24

android-whogoesfirst

Simple app for determining who goes first (especially in the context of board gaming)
Java
5
star
25

android-ripple-drawable-demo

Demo of a small problem with RippleDrawable
Java
5
star
26

android-findviewbyid

Aims to figure out if View.findViewById() is really all that bad
Java
5
star
27

android-resistance

Simple app for the Resistance board game
Java
5
star
28

predictit-bot

PredictIt bot
Kotlin
4
star
29

android-mia

Audio tour guide for Minneapolis Institute of Arts
Java
3
star
30

android-dmmrm

Code examples for talk "don't make me repeat myself"
Java
2
star
31

walgreens-scanner

Scans Walgreens for item stock
Kotlin
2
star
32

hpb

Small tool for finding Half-Price Books at local stores
Kotlin
2
star
33

reddit-mods

Python
2
star
34

displate-inventory-extension

Improves information/display for Displate limited editions
HTML
2
star
35

android-images-sample

Sample app that shows off Google image search
Shell
2
star
36

android-bitmap-retained-demo

Small demo app
Java
1
star
37

census-maps

JavaScript
1
star
38

android-ragefaces-tools

A collection of tools used for maintaining the Android app Rage Faces
Python
1
star
39

android-drawable-hotspots-sample

Sample app demonstrating various issues one can have with Drawable hotspots
Java
1
star