[英]Textview not showing complete text on Phone.linear layout
我有线性layout.inside有textview。哪些一些包含大量信息。 在PC上,如果使用模拟器运行应用程序,则可以正常运行,但在电话上不会显示整个文本。 左侧的文本不见了,只显示了1行。 我认为文字换行不起作用。
android:scrollHorizontally="true"
android:ellipsize =“ end” android:ellipsize =“ marquee”
我累了,但没有工作
请紧急帮助
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
android:id="@+id/Text1"
/>
</LinearLayout>
尝试这个...
使用此代码时,无需滚动屏幕。
只需将TextView放在ScollView中即可:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
<ScrollView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical">
<TextView android:id="@+id/about_detail"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:padding="2dp"
android:textSize="16dp"
android:textColor="@android:color/black"
android:background="@color/white"/>
</ScrollView>
</LinearLayout>
希望这行得通\\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.