Is it possible to place the TextView
in som开发者_如何学编程e position which I calculate within my code.
TextView
in that position.
How can i implement it?
Please Help.Thanks,
SenThe below code may help you:
TextView widget = new TextView(screenContext);
widget.setText("Label"+widgetCount);
widget.setLayoutParams(new AbsoluteLayout.LayoutParams(width,height, calculatedX,calculatedY));
This works only when you are using absolute layout, I assume, you are using it.
Yup, I could place TextView
s along a curved line.
I just used Absolute layouts. I think that was the only possible method.
精彩评论