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 :

enter image description here

here s layout more explanation

enter image description here

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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -