Reputation: 97
I have a RelativeLayout
that includes a set of buttons. During app execution the order of buttons is changed.
How to find the order of the buttons in onDestroy()
?
Upvotes: 0
Views: 92
Reputation: 4837
for(int i = 0; i < parentLayout.getChildCount(); i++){
View child = parentLayout.getChildAt(i);
// other logic here
}
Upvotes: 1