Android: textView-set y-coordinate dynamically -


i tried using textview.settranslationy(float) change y-coordinate of textview not seem work. textview.settop() seems same function documentation says method meant called layout system , should not called otherwise, because property may changed @ time layout. use textview.gettranslationy() y-coordinate.

how can set y-coordinate of textview? if doing above wrong, kindly suggest alternative way. maybe there method set y-coordinate have not found yet!

my situation: have textview height should change based on value received. if use textview.setheight(int), height increases top bottom. want increase bottom top. change y-coordinate of textview every time set it's height.

cheers,

madhu

screen shot of layout:

my layout

what if change height of textview only? said...

the height increases top bottom

so... in case can align textview @ bottom. instance, if using relativelayout container of textview, can use android:layout_alignparentbottom="true".


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -