TextView content not wrapping or scrolling
I have a simple TextView that displays some text that I've scraped of the web. 开发者_运维技巧 Despite the fact that the text I want to display is much longer than the width of the screen, it neither wraps nor gives me a scroll bar. It just stops.
My layout is configured as follows:
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/displayFighterVerse"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
android:width="0dip"
android:inputType="textMultiLine"
android:text="Welcome to Fighter Verses. Please wait while we download the latest verse."
/>
Can anyone help me figure out why this isn't displaying properly? What really simple thing am I missing?
take a Editetext instead.. set background color to transarent and setEditable false it will wrap as well as scroll and will look like a textView
Place your TextView inside a ScrollView
Place the TextView inside a LinearLayout inside a ScrollView.
精彩评论