Tuesday, January 28, 2014

Android development on how to specify the location of the control in the view?


            
As the title:
Recently pondering such an interface is to use Button clicks trigger a view display (view I chose viewStub), is in the position to change the view displayed when encountered difficulties, and hope expert advice.
In fact, I had absolutely layout here have common sense, scrollTo, view.layout (), to no avail. Thanks!
Supplement under:
Position of the control in the code can be given coordinates to change ~
Reply:
Wait for the master ~ ~
Reply:
Yes ah! Master Come see ~ ~
Reply:
Dynamically add controls. Do layout via XML
Reply:
Thanks for the reply, 3rd Floor, my side of the question is, when adding controls dynamically, and no way to control this new specified coordinates.
Reply:
PopupWindow?
Reply:
There should be ways to set draw, try it ~
Reply:
PopupWindow, I try, thank you for your help - 5th Floor
Reply:
Posts sinking, their top, expect more help! TKS
Reply:
im not used
Reply:
it's best
to keep your resources separate and place the styles in a styles.xml file
Reply:
Make a custom view, it's offset method override, you can specify where the view is displayed on the screen.
Reply:
Thank you for your reply and help, and finally with a PopupWindow way to do a DEMO, said another 11 F, rewritten offset method, I will try, first thank you! First of what scores, thank you for your support.
Reply:
Like with css plus