开发者

Popup bar in Mail application

开发者 https://www.devze.com 2023-01-11 14:08 出处:网络
In the Android Mail application, when you click the checkbox next to an inbox message, a little bar with buttons (mark unread, delete, star) appears at the bottom of the screen.I\'d like to do somethi

In the Android Mail application, when you click the checkbox next to an inbox message, a little bar with buttons (mark unread, delete, star) appears at the bottom of the screen. I'd like to do something similar, but I don't think I'm going about it the right way.

What I've done is add a LinearLayout below my ListView and marked the visibility GONE. When a user clicks a checkbox next to a list item, the LinearLayout's visibility is marked VISIBLE. Unfortunately, checkboxes stop working. By this I mean the skin on the checkbox 开发者_StackOverflow社区does not change from unchecked to checked; and I can't figure out why.

(...or rather, this is the way I HAD it. I removed it once I couldn't fix it and, since trying to add it again, it just crashes, but I digress)

What is the best way to architect what I'm trying to do?


Check out the source of the AndroidMail app that you're referring to. I was able to re-use the CursorAdapter included in MessageList.java with very little modification for one of my apps.

0

精彩评论

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