开发者

How to know the position of StackView in Android 3.0..OnItemClick is returning 0 everytime

开发者 https://www.devze.com 2023-03-31 10:52 出处:网络
I m tring to get 开发者_JS百科the position of My views when i click on them in StackView but its always returning zero unlike other ViewGroups like Gallery,ListView and GridView.OnSelectedListener als

I m tring to get 开发者_JS百科the position of My views when i click on them in StackView but its always returning zero unlike other ViewGroups like Gallery,ListView and GridView.OnSelectedListener also not working ..can anyone help plz???


yes i got the answer...there is a method called getDisplayedChild() which returns the index of the current view like in other ViewGroups

0

精彩评论

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