I have a TextView. How can I position it by using x and y coordinates?
TextView leftArrow = new TextView(this);
leftArrow.setTypeface(tf);
leftArrow.setText("<");
leftArrow.setTextSize(30);
ll.addView(leftArrow);
you can use view.setX() and view.setY() ,see the following link
http://developer.android.com/reference/android/view/View.html#setX(float)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With