Style Text Android Wear Card Fragment -


for android wear application have few card fragments in fragmentgridpageradapter. font size title , text in cards small.

is possible style title , text in card fragment using different font types , font sizes? if so, how go doing this?

cheers.

you can change content of card fragment , change textsize in layout of fragment :

<android.support.wearable.view.cardframe     android:layout_height="wrap_content"     android:layout_width="fill_parent">      <linearlayout         android:layout_height="wrap_content"         android:layout_width="match_parent"         android:orientation="vertical"         android:paddingleft="5dp">          <textview             android:fontfamily="sans-serif-light"             android:layout_height="wrap_content"             android:layout_width="match_parent"             android:text="@string/custom_card"             android:textcolor="@color/black"             android:textsize="20sp"/>          <textview             android:fontfamily="sans-serif-light"             android:layout_height="wrap_content"             android:layout_width="match_parent"             android:text="@string/description"             android:textcolor="@color/black"             android:textsize="14sp"/>      </linearlayout>  </android.support.wearable.view.cardframe> 

show the documentation here.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -