新しい InfoWindow (google maps api v2) を構築しており、レイアウトを完璧にしようとしています。そのレイアウトの一部は次のとおりです。
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/txtInfoWindowName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:singleLine="true"
android:textColor="#ff000000"
android:textSize="14dp"
android:textStyle="bold"/>
<TextView
android:id="@+id/txtInfoWindowObstacles"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLength="32"
android:lines="1"
android:singleLine="true"
android:textColor="#ff7f7f7f"
android:textSize="14dp"/>
さて、問題はandroid:ellipsize="end".
、最後に 3 つのドットを描画する必要がありますが、それを行いません。今、私はこのようなものを得ています:
TextTextTextTextTe
これの代わりに:
TextTextTextTextTe...
layout_width="wrap_content" を使用しているという事実と関係があると思います。しかし、私は LinearLayout を使用しているので、それが必要です