8000 LP
のように見えるようにtextviewをデザインすることが可能かどうかを知りたいと思っています(上部と下部の境界も同様です)。私はそれを見てみましたが、私が見つけることができるのは、人々がテキスト上のアウトライン/シャドーボーダーをどのようにしたいかです。可能であれば私のレイアウトにテーブルを作成したくないのですが、必要ならば私のコードフォーマットに合わせた例を挙げてください。Androidのtextview - 各文字を境界線にすることが可能
Heresは私が何を意味するかの例です...それはその四角の境界で区切られた各番号を持っています。
Heres my xml(関連情報のみが短縮されています)。
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/default_background_obelisk"
android:scaleType="centerCrop"
android:padding="16dp">
<TextView
android:id="@+id/playerTwo_LP"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
android:textSize="40dp"
android:textColor="#ffffff"
android:text="8000 LP"
android:textAppearance="?android:attr/textAppearanceLarge"
android:rotation="180"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toRightOf="@+id/playerTwo_addLP"
app:layout_constraintRight_toLeftOf="@+id/playerTwo_loseLP"
app:layout_constraintBottom_toBottomOf="@+id/playerTwo_toolKit"
android:textIsSelectable="true"/>
* * *
<TextView
android:id="@+id/playerOne_LP"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
android:text="8000 LP"
android:textAppearance="?android:attr/textAppearanceLarge"
app:layout_constraintTop_toTopOf="@+id/playerOne_toolKit"
app:layout_constraintLeft_toRightOf="@+id/playerOne_toolKit"
app:layout_constraintRight_toLeftOf="@+id/playerOne_CardLibrary"
app:layout_constraintBottom_toBottomOf="parent"/>
文字の間にいくつか入れたり、文字列をchar配列に変更してください。 – Xenolion
@ Xenolionでは、これがどのように行われるかの例を投稿できますか? –
よろしいですか。私にやらせて! – Xenolion