I'm working on on demo of drag and drop. In that I created some dynamic TextView
on FrameLayout
and now I want to move that TextView
on that FrameLayout
. So please please tell me any proper way to that...
Thanks in advance..
Asked
Active
Viewed 347 times
0

Akshay
- 6,029
- 7
- 40
- 59
-
how is your frameLayout moving? – Diffy Feb 21 '14 at 09:51
-
Sorry..I corrected my question.. – Akshay Feb 21 '14 at 09:54
-
So is it not working with setLayoutParams? – Diffy Feb 21 '14 at 10:00
-
can this help? http://stackoverflow.com/questions/5646929/changing-position-of-a-button – Diffy Feb 21 '14 at 10:03
-
Have you tried? post some code... – Vamshi Feb 21 '14 at 10:06
1 Answers
0
try it out
MarginLayoutParams params=(MarginLayoutParams )poi.getLayoutParams();
params.leftMargin=80;
params.topMargin=50;
poi.setLayoutParams(params);

rajshree
- 790
- 5
- 19