This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| <style name="carbon_Theme.Light" parent="Theme.MaterialComponents.Light"> | |
| <item name="carbon_imageViewStyle">@style/carbon_ImageView</item> | |
| </style> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| <style name="carbon_ImageView"> | |
| <item name="carbon_rippleColor">@null</item> | |
| <item name="carbon_rippleHotspot">false</item> | |
| <item name="android:menu">@menu/main</item> | |
| </style> | |
| // extend the default style of the view's parent class if there is one | |
| <style name="carbon_Button" parent="@android:style/Widget.Button"/> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| // style reference for use in themes | |
| <attr name="carbon_imageViewStyle" format="reference"/> | |
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| // declaration | |
| <attr name="carbon_rippleColor" format="color"/> | |
| <declare-styleable name="ImageView"> | |
| // usage | |
| <attr name="carbon_rippleColor"/> | |
| // declaration and usage in one line | |
| <attr name="carbon_rippleHotspot" format="boolean"/> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <layout> | |
| <TextView | |
| android:layout_width="120dp" | |
| android:layout_height="32dp" | |
| guide_htmlText="Select Dates" | |
| android:textColor="?android:attr/textColorPrimary" | |
| android:textAppearance="@style/TextAppearance.Body1" /> | |
| </layout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <LinearLayout> | |
| <ImageView | |
| style="@style/ImageView.Icon" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| app:srcCompat="@drawable/ic_airplanemode_on_24px" /> | |
| </LinearLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TextView extends android.widget.TextView { | |
| public TextView(Context context) { | |
| super(context); | |
| initTextView(null, android.R.attr.textViewStyle); | |
| } | |
| public TextView(Context context, String text) { | |
| super(context); | |
| initTextView(null, android.R.attr.textViewStyle); | |
| setText(text); | |
| } |