この問題の解決策を試してみましたが、役に立ちませんでした。小文字の「d」の末尾など、文字の上部が切り取られています。これが私が現在持っているものです:
コードワイズ:
onClickHandler から.....
文字列 selectedorder = ""; ... if (num_players == 3) { editor.putString("prefPrefp3_name", child.getText().toString()); selectedorder = "3番目";} ... order.setText(Html.fromHtml(selectedorder));
CursorAdapter BindView から.................
TextView tv4 = (TextView) view.findViewById(R.id.dspplyrorder);
tv4.setText(Html.fromHtml(playersCursor.getString(PlayerOrder)));
そして、@ + id / dspplyrorderを取得しようとしているXMLから、上付き文字の「d」の末尾をクリップしないようにします...................
<LinearLayout android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/dsp_id"
android:layout_width="120dip"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/dspplyrname"
android:layout_width="180dip"
android:textColor="#7CFC00"
android:textStyle="italic"
android:layout_marginRight="20dip"
android:layout_marginLeft="20dip"
android:paddingRight="3dp"
android:gravity="left"
android:textSize="25sp"
android:layout_height="wrap_content"/>
<TextView android:id="@+id/dspplyrorder"
android:layout_width="30dip"
android:gravity="left"
android:textColor="#FFFFFF"
android:textSize="16sp"
android:layout_height="wrap_content"/>
<ToggleButton android:id="@+id/button_toggle"
android:text="@string/buttons_1_toggle"
android:textOff="Select"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:onClick="myClickHandler" />
</LinearLayout>
上下の行の行間隔への影響については心配していません。これは、最も頻繁に発生する問題の議論のようです。他の誰もこの問題を抱えていないように見えるので、私は何か本当にダンプをしているに違いありません。助けてください。