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
Post a Comment