1
私はtextviewに複数の行を持ち、親のサイズでカットしようとしています。定義された幅を指定しないTextView singleLine = "false"
<TableLayout android:layout_height="wrap_content"
android:layout_width="fill_parent">
<TableRow android:gravity="left">
<TextView android:id="@+id/deal_title"
android:paddingLeft="5dp" android:layout_height="wrap_content" android:singleLine="false"
android:layout_width="fill_parent" style="@style/dealrowtitle" />
</TableRow>
</TableLayout>
これは、このビューの幅だけである必要はありません。テキストが画面から消えます。
テキストビューは、ピクセル数を指定すると強制的に表示されます。
TextViewにはどのような種類のViewGroupがありますか? – Pikaling
あなたはスタイルと完全なxmlを私たちに教えてください –