0

I want to build a Calculator App, in which I want to format all the required buttons in such a way that, they all appears in a Grid form to me.... The one which I've made is only running on Android 4.0 & above devices...But I want that my calculator app should run on maximum Android devices(Android 2.2 & above) & which have a GridLayout in it..!

Please help me by suggesting me some code or anything else... Thanx!

Saumya Rastogi
  • 13,159
  • 5
  • 42
  • 45

1 Answers1

1

A backwards compatible implementation (for API level 7 and up) of GridLayout is also available as Android library project in the support library. After you've downloaded this add-on, you'll find an Android library project in your local sdk folder located at:

<sdk_folder>\extras\android\compatibility\v7\gridlayout

Set it up as dependency of the project you're working on. After that, you'll need to change the references throughout your project from the level 14 version to this compatibility one in order to support pre-ICS devices. Usage should be similar, if not identical.

See also:

Community
  • 1
  • 1
MH.
  • 45,303
  • 10
  • 103
  • 116
  • I didn't found the gridlayout, in my sdk_folder..Please help what to do now!! – Saumya Rastogi Sep 16 '12 at 06:17
  • @user1563528: Did you make sure you downloaded the support library and/or that it's up to date? Look for 'Android Support' under Extras in the SDK Manager. – MH. Sep 16 '12 at 07:31