android - Two Parallel multilined TextViews not lining up -



android - Two Parallel multilined TextViews not lining up -

i have 2 textviews each different language lined side side using weight_sum. verse (it's bilingual parallel bible) longer in 1 language other. offsets whole chapter. there way tell textview (it getting info string) not start next verse (specifically line i'm skipping 2 lines using \n\n in each verse) until both finished? thinking maybe utilize if statement using x-axis.

note: each language of chapter in 1 string

go here see image of output https://drive.google.com/file/d/0b1mkuwcpu8hkoxbyzjlzn20tlwm/view?usp=sharing

you'll notice output alignment isn't correct

if split each verse 2 textviews within layout layout can stacked accomplish desired functionality.

------------------------ <linearlayout> | verse 1 | verse 1b | <text view/>, <textview/> | | | | | | | | | | | | | | ------------------------ </linearlayout> ------------------------ <linearlayout> * verse 2 * verse 2b * <text view/>, <textview/> * * | * etc...

this method works if take set these layout listview able scroll through verses efficiently

android textview multiline

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -