• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps API problems with GridLayout

jonman_t

Lurker
Hi there ,

Fairly new to developing android apps so forgive me if i'm noobing it but im having problems wrapping my head around API levels. I've looked it up and I understand the definition but I am at a loss as for what I should use.

Recently been using a fairly low API (8 if you must know) and my reasoning was that I wanted my application to compatible with many devices. This was all fine and dandy up until I change from linear layout to grid layout and this was throwing up warnings that it needed API 14 to work , and stopped working on my emulator.

So my issue is that... Am I stuck building a crappy looking XML because I cant use spacings... or Do I have to cut out all "Legacy" devices ...or am I going about this all wrong?

Again , I am re-reading this and I am unsure if I am explaining myself correctly so please forgive me if I sound noobish.
 
There's a support library for grid layout you can use, and it's compatible for API 7+. In the SDK, it's in extras/android/support/v7
 
Back
Top Bottom