简体   繁体   中英

Android layout manager for equal sized grid

For learning Android I'd like to write a tiny calculator application. At the bottom (of a vertical screen) I want to show a grid of buttons, at least 4 equal-wide rows and 5 equal-high columns. The application should run on Android 2.3 ("Gingerbread") or later. Is there a layout manager that could be used for that, especially down to 2.3 - or should I write my own one?

You can use android.widget.GridView which was added in Added in API level 1 and will meet your expectations. Just FYI https://www.raywenderlich.com/127544/android-gridview-getting-started

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM