[wie zu verschiedenen textsize und andere text farbe und schreiben multiline in text ansicht in unter bild in android?Wie schreibt man Multiline in Layout oder Button?
ist das folgende Design schreiben,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/milk"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:paddingTop="5dp"
tools:context="com.example.hussain.mytype2screen.MainActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="35dp"
android:id="@+id/txt1"
android:background="@color/white"
android:drawableLeft="@drawable/Arrow"
android:drawableRight="@drawable/menu"
android:padding="8dp"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/txt1"
android:id="@+id/line1">
<TextView
android:id="@+id/tx1"
android:textAlignment="center"
android:text="@string/stylish_text"
style="@style/CustomText1"/>
<TextView
android:id="@+id/tx2"
style="@style/CustomText1"
android:layout_toRightOf="@id/tx1" />
<TextView
android:id="@+id/tx3"
style="@style/CustomText1"
android:layout_toRightOf="@id/tx2"/>
<TextView
android:id="@+id/tx4"
style="@style/CustomText1"
android:layout_toRightOf="@id/tx3"/>
<TextView
android:id="@+id/tx5"
style="@style/CustomText1"
android:layout_toRightOf="@id/tx4"/>
<TextView
android:id="@+id/tx6"
style="@style/CustomText2"
android:layout_below="@id/tx1" />
<TextView
android:id="@+id/tx7"
style="@style/CustomText2"
android:layout_below="@id/tx2"
android:layout_toRightOf="@id/tx6"/>
<TextView
android:id="@+id/tx8"
style="@style/CustomText2"
android:layout_below="@id/tx3"
android:layout_toRightOf="@id/tx7"/>
<TextView
android:id="@+id/tx9"
style="@style/CustomText2"
android:layout_below="@id/tx4"
android:layout_toRightOf="@id/tx8"/>
<TextView
android:id="@+id/tx10"
style="@style/CustomText2"
android:layout_below="@id/tx5"
android:layout_toRightOf="@id/tx9"/>
</RelativeLayout>
Sie bitte die Lösung für das obige Bild geben ..
1 für gelbe Farbe und nächste Textfarbe in weiß so unterschiedliche Textgröße und andere Textfarbe in derselben Textansicht .. –
können Sie es nicht so machen. Erstellen Sie nach Ihren Anforderungen eine andere Textansicht und ordnen Sie jeder Textansicht Farbe und Textgröße zu. –