跳到主要內容

發表文章

目前顯示的是 11月, 2014的文章

android Drawselectorontop

大家好,我是奶綠茶 在使用 ListView 時有個 drawselectonTop 的屬性能夠使用 原文: Controls whether the selection highlight drawable should be drawn on top of the item or behind it. 意思是說選取時是否要繪制在物件上 左圖是一般樣式,右圖是指定 drawselectonTop ,這樣選取時就會有 highlight的效果 一般的 ViewGroup 並沒有這樣的功能 謙裡有現成的Library可以使用,祝大家學習愉快。 轉載請註明出處 https://gist.github.com/chrisbanes/9091754