Skip to content

CheckedTextView

ZieIony edited this page Jul 14, 2017 · 1 revision

Extends carbon.widget.TextView. See JavaDoc

Styles

<style name="carbon_CheckedTextView" parent="carbon_TextView">
    <item name="android:paddingRight">12dp</item>
    <item name="android:paddingEnd" tools:targetApi="jelly_bean_mr1">12dp</item>
    <item name="carbon_rippleColor">@null</item>
    <item name="android:textAppearance">?attr/carbon_textAppearanceBody1</item>
    <item name="android:drawablePadding">12dp</item>
    <item name="carbon_tint">@color/carbon_defaultIconColorPrimary</item>
    <item name="android:background">@null</item>
</style>

<style name="carbon_CheckedTextView.IconButton">
    <item name="carbon_rippleColor">?attr/carbon_rippleColor</item>
    <item name="carbon_rippleStyle">borderless</item>
    <item name="android:scaleType">center</item>
    <item name="android:clickable">true</item>
    <item name="android:layout_width">@dimen/carbon_toolbarItemSize</item>
    <item name="android:layout_height">@dimen/carbon_toolbarItemSize</item>
    <item name="android:paddingRight">@null</item>
    <item name="android:paddingEnd" tools:targetApi="jelly_bean_mr1">@null</item>
    <item name="android:padding">@dimen/carbon_toolbarItemPadding</item>
    <item name="android:drawablePadding">0dp</item>
</style>

<style name="carbon_CheckedTextView.IconButton.Inverse">
    <item name="carbon_rippleColor">?attr/carbon_rippleColorInverse</item>
</style>
Clone this wiki locally