android - Why text is not bold when passing the style through custom view attributes? -
suppose have .xml style: <style name="materialpreviewdetailstextsmall"> <item name="android:layout_marginleft">@dimen/material_margin</item> <item name="android:textcolor">@color/material_preview_backgroud</item> <item name="android:textsize">@dimen/material_normal_smal_text</item> <item name="android:textstyle">bold</item> </style> i pass custom view through attributes: <pl.valueadd.ledoc.view.viewpreviewrow ... app:view_title="@string/equipment_overview_id_label" app:view_title_style="@style/materialpreviewdetailstextsmall"/> inside custom view obtain styled attributes , apply textview : public class viewpreviewrow extends relativelayout { textview tvtitle; public viewpreviewrow(context context, attributeset attrs) { super(context, attrs); init...