开发者

How to Have multiple buttons inside Android SlidingDrawer Control

开发者 https://www.devze.com 2023-02-09 16:46 出处:网络
I am making a quiz application in which i am planning to use the SlidingDrawer control for displaying different question numbers. Clicking on a number will allow the user to jump to a specific questio

I am making a quiz application in which i am planning to use the SlidingDrawer control for displaying different question numbers. Clicking on a number will allow the user to jump to a specific question.

I have implemented the sliding drawer control but it is able to display only 6-7 buttons inside it depending on the screen size. Trying to add more buttons to it gives an exception. I tried using a GridView inside the Slidi开发者_StackOverflow中文版ngDrawer but i keep getting an error.

Is there anyway i can have around 20-30 buttons inside the SlidingDrawer control arranged in a grid like manner ?

Please give suggestions on any other way i can implement similar functionality in a way that doesn't take up much screen space ?


Yes, it's possible, as a matter of fact previous Android versions (1.6 if I'm not wrong) implemented the application Launcher that way.

Search the source for that version and you'll have a working sample.

0

精彩评论

暂无评论...
验证码 换一张
取 消