android - Dynamically adding a text inside the LinearLayout -
i need place text @ text1 , text2 dynamically , these both text's should not exceed border of image.
for eg:
" welcome " fixed @ text2, in case of "welcome world of android" may not ,how fix within space provided.
my image looks , placed @ center of layout. how place text in respective places should compatible type of devices[tab & handset] , in kind of resolutions.
i have tried creating separate linear layouts dynamically fixed margins , placed these text's each branches, problem it's not fine kind of devices.
here image :
here s layout more explanation
all these 1 whole image holds 1 parent linearlayout , branches(linear1) holds text part dynamic linearlayouts, said text1 , text2 has fixed within section provided.
please post suggestions.
you read gravity , padding property problem solve
Comments
Post a Comment