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 parent = "@ android: style / TextAppearance">
In the new style, set font to 45 pixels, with black monospaced font:
With relative positioning
Reply:
I also get two minutes, finally get. .
/ / Create a new thread
Handler mHandler = new Handler ();
mHandler.post (new Runnable () {
public void run () {
/ / Sv for the outer scrollview, view my dynamically generated controls
if (sv == null | | view == null) {
return;
}
/ / Num is incremented each generate a 1
int offset = view.getMeasuredHeight () * num;
if (offset <0) {
offset = 0;
}
sv.scrollTo (0, offset);
}
});
Reply:
I used to get the absoluteLayout
No comments:
Post a Comment