How to set property of a view in layout XML file in Android? -
for example, using android.support.v4.view.pagertabstrip
, want call settabindicatorcolor
choice of color. how in layout xml file?
best thing can consult documentation. pagertabstrip
here.
there's summary section can check xml attributes defined class. in case, can see there attributes inherited viewgroup
, view
. none of them sets tab indicator color.
this means need set in code.
let's @ example there attribute, e.g. orientation linearlayout
. there's entry android:orientation
attribute tells how set in xml.
Comments
Post a Comment