What is the main purpose of setTag() getTag() methods of View?
What is the main purpose of such methods as setTag() and getTag() of View type objects? Am I right in thinking that I can associate any number of objects with a single View? 7 Answers 7
What is the main purpose of such methods as setTag() and getTag() of View type objects? Am I right in thinking that I can associate any number of objects with a single View? 7 Answers 7
I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the tab for the drawer up, so it sits atop the keyboard. I actually want it to remain at the bottom of the screen, becoming hidden when the keyboard is shown. Anyone else run into this … Read more
What is the difference between a View’s Margin and Padding? 15 s 15 To help me remember the meaning of padding, I think of a big coat with lots of thick cotton padding. I’m inside my coat, but me and my padded coat are together. We’re a unit. But to remember margin, I think of, … Read more
I know how to get the root view with View.getRootView(). I am also able to get the view from a button’s onClick event where the argument is a View. But how can I get the view in an activity? 12 s 12 If you need root view of your activity (so you can add your … Read more