Created
October 17, 2017 09:41
-
-
Save stramek/970534002e103cff238201eaca194c9a to your computer and use it in GitHub Desktop.
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_margin="16dp" | |
android:orientation="vertical"> | |
<TextView | |
android:id="@+id/textXML" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:fontFamily="@font/abril_fatface" | |
android:text="This font was set via XML" | |
android:textSize="30sp" /> | |
<TextView | |
android:id="@+id/textCode" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="This font was set via code" | |
android:textSize="30sp" /> | |
<Button | |
android:id="@+id/changeFontButton" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Change font programmatically" | |
android:layout_gravity="center_horizontal"/> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment