<RelativeLayout
android:id="@+id/RelativeLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:adjustViewBounds="true"
android:src="@drawable/icon" />
<TextView
android:id="@+id/fullnameTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/wayimageView"
android:textColor="@color/list_text_color"
android:textSize="16dp"
android:singleLine="false"
/>
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:adjustViewBounds="true"
android:src="@drawable/icon" />
</RelativeLayout>
Я хочу установить имя справа от imageView.Это хорошо, но есть одна проблема.Когда имя слишком длинное, оно попадает под второе изображение.Есть ли способ указать максимальное количество символов в строке в textView (например, 10), когда размер символов равен 10, он автоматически переходит ко второй строке.