Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot use GridLayout even though support lib was imported with ActionBarSherlock

I have an Android project in which I am using ActionBarSherlock, which I have imported in the workspace as a separate project that also contains the Android Support Library.

I would like now to use GridLayout and I was assuming that, given the presence of the support library, it would be recognized and available, but it is not. Eclipse tells me that I need to set the minimum API for my project to 14, while I'm forced to leave it at 8. Is there a way I can fix this?

I hope this was clear enough. Thanks for help.

like image 662
Silvia Bordin Avatar asked Feb 22 '26 12:02

Silvia Bordin


1 Answers

GridLayout was back ported to API 7+ only and is available as a library project in your SDK folder. You can find it at SDK/extras/android/support/v7.

It is not a part of ABS nor the v4 support library jar.

like image 79
Jake Wharton Avatar answered Feb 25 '26 02:02

Jake Wharton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!