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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -