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
Post a Comment