Skip to content

Commit 7dbd1b6

Browse files
committed
updated and added new font to test android:theme
1 parent c39479f commit 7dbd1b6

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

CalligraphySample/src/main/assets/fonts/Roboto-Bold.ttf

100755100644
-18.1 KB
Binary file not shown.
-12.7 KB
Binary file not shown.
-25.2 KB
Binary file not shown.
Binary file not shown.

CalligraphySample/src/main/res/layout/stub.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<TextView
2+
23
xmlns:android="http://schemas.android.com/apk/res/android"
34
android:layout_width="wrap_content"
45
android:layout_height="wrap_content"

CalligraphySample/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<resources>
33

44
<string name="app_name">Calligraphy</string>
5+
<string name="defined_gtw">\nThis is text set by the gtw style.\n</string>
56
<string name="default_theme">\nThis is text set by the default theme fontPath.\n</string>
67
<string name="defined_fontpath_view">\nThis has a font path set to Roboto Bold, on the View.\n</string>
78
<string name="defined_incorrect">\nThis has a fontPath set to a font file that does not exist, it goes back to the default.\n</string>

CalligraphySample/src/main/res/values/styles.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
<style name="AppTheme.Widget"/>
2525

26+
<style name="TextViewNoStyleParent">
27+
<item name="android:textColor">@android:color/holo_blue_dark</item>
28+
<item name="fontPath">fonts/gtw.ttf</item>
29+
</style>
30+
2631
<style name="AppTheme.Widget.TextView" parent="android:Widget.Holo.Light.TextView">
2732
<!-- Custom Attr-->
2833
<item name="fontPath">fonts/RobotoCondensed-Regular.ttf</item>

0 commit comments

Comments
 (0)