私は両方のテキストビューに同じ背景を与えたいだけです。2種類のTextViewに同じ背景色を与える方法は?
私のコードは次のとおりです。
<TextView
android:layout_width="200dp"
android:background="#f3f3f3"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="192.00 $"
android:paddingLeft="4dp"
android:textSize="36sp"
android:id="@+id/textView"
android:layout_marginTop="50dp"
android:layout_below="@+id/imageView"
android:layout_centerHorizontal="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Recharge Limit"
android:id="@+id/textView2"
android:layout_below="@+id/textView"
android:layout_centerHorizontal="true" />
あなたの質問はちょっと – Nikhil
詳しく説明しない明確な試み、応答 に感謝私の質問は、私は2つの異なるのTextViewを持っているです私は別のものの下で私はちょうど同じようにそれらを与えるbgの色を1つのように見えるようにしたい – Champandorid
アンドロイドを使用して:background = "#f3f3f3"同様に2番目のtextview? – kgandroid