简体   繁体   中英

How to divide TextView into 2 Separate TextView in Android

I have a problem with TextView in Android

I am making an application like Facebook. In m.facebook.com, when I open it I see they do one thing specailly.

(Alice) is writing on (BackStreetBoy1010938920) wall

Because the width of Mobile screen is small so the real message like tha

(Alice) is writing on (BackStreet

Boy10101009393) wall

I guess they use TextView for (BackStreetBoy1010938920) but I can't do like this.

Well if you consider facebook, they open a webview on device, since the screen is small the textbox width gets reduced, if you capture the same URL and open it in browser, it takes the complete width of the browser..................

Now consider the textView, if you make layout_height="wrap_content", it will take the height of the text and the width will be limited to whatever you provided............

Hope it helps a bit...........

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM