0
저는 TextView 내에서 줄 바꿈을 피하는 방법을 알아 내려고하고 있습니다.android TextView : 줄 바꿈을 피하는 방법?
선이 TextView 너비에 비해 너무 길면 가로 스크롤 막대가 나타납니다. 안드로이드로 시도한 모든 것 : 스크롤 바 (그리고 계속해서)는 실패했다. 항상 줄 바꿈이있다. 수평으로 스크롤해야
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="de.zpit2u.maingate.MainGate_Logs">
<TextView
android:id="@+id/tvTitle_Logs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="@string/app_logs" />
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/historyRefresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/tvTitle_Logs" >
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dp"
android:fillViewport="false" >
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="de.zpit2u.maingate.MainGate_Logs">
<TextView
android:id="@+id/tvTitle_Logs_Clients"
android:layout_marginTop="20dp"
android:layout_marginStart="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:text="@string/logs_clients" />
<TextView
android:id="@+id/tvText_Logs_Clients"
android:layout_below="@+id/tvTitle_Logs_Clients"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="10dp"
android:textSize="8sp"
android:fontFamily="monospace" />
<ProgressBar
android:id="@+id/progressBarLogs"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true" />
</RelativeLayout>
</ScrollView>
</android.support.v4.widget.SwipeRefreshLayout>
두 번째 텍스트 뷰 (tvText_Logs_Clients)이 RelativeLayout의 내 : 이것은 내 레이아웃 코드입니다.
위대한! 그게 효과가있어! 고마워요! – user3137385