1. Are you ready for the Galaxy S20? Here is everything we know so far!

API problems with GridLayout

Discussion in 'Android Development' started by jonman_t, Jan 14, 2013.

  1. jonman_t

    jonman_t Lurker
    Thread Starter

    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.

  2. jungajuice

    jungajuice Newbie

    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

Share This Page