-
Notifications
You must be signed in to change notification settings - Fork 123
/
style_iam_banner.xml
106 lines (93 loc) · 4.37 KB
/
style_iam_banner.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Parent Style -->
<style name="UrbanAirship.InAppBanner" />
<!-- Main Layout, contains the content, buttons, and footer-->
<style name="UrbanAirship.InAppBanner.Layout">
<item name="android:layout_marginLeft">24dp</item>
<item name="android:layout_marginRight">24dp</item>
<item name="android:paddingLeft">16dp</item>
<item name="android:paddingRight">16dp</item>
<item name="android:elevation" tools:targetApi="lollipop">8dp</item>
<item name="urbanAirshipMaxWidth">420dp</item>
</style>
<!-- Layout overrides for bottom banner placement -->
<style name="UrbanAirship.InAppBanner.Layout.Bottom">
<item name="android:paddingBottom">8dp</item>
</style>
<!-- Layout overrides for top banner placement -->
<style name="UrbanAirship.InAppBanner.Layout.Top">
<item name="android:paddingTop">8dp</item>
</style>
<!-- Dismiss pull view -->
<style name="UrbanAirship.InAppBanner.Pull">
<item name="android:layout_width">36dp</item>
<item name="android:layout_height">4dp</item>
<item name="android:layout_gravity">center</item>
<item name="android:background">@drawable/ua_iam_banner_pull_background</item>
</style>
<!-- Dismiss pull overrides for top banner placement -->
<style name="UrbanAirship.InAppBanner.Pull.Top">
<item name="android:layout_marginBottom">8dp</item>
<item name="android:layout_marginTop">16dp</item>
</style>
<!-- Dismiss pull overrides for bottom banner placement -->
<style name="UrbanAirship.InAppBanner.Pull.Bottom">
<item name="android:layout_marginTop">8dp</item>
<item name="android:layout_marginBottom">16dp</item>
</style>
<!-- Media -->
<style name="UrbanAirship.InAppBanner.MediaView">
<item name="android:layout_width">120dp</item>
<item name="android:layout_height">240dp</item>
<item name="android:adjustViewBounds">true</item>
<item name="android:maxHeight">120dp</item>
<item name="android:scaleType">fitCenter</item>
<item name="android:layout_gravity">top</item>
<item name="android:layout_marginBottom">8dp</item>
<item name="android:layout_marginTop">8dp</item>
</style>
<!-- Media overrides for RIGHT_MEDIA template -->
<style name="UrbanAirship.InAppBanner.MediaView.Right">
<item name="android:layout_marginLeft">16dp</item>
</style>
<!-- Media overrides for LEFT_MEDIA template -->
<style name="UrbanAirship.InAppBanner.MediaView.Left">
<item name="android:layout_marginRight">16dp</item>
</style>
<!-- Heading -->
<style name="UrbanAirship.InAppBanner.Heading">
<item name="android:padding">0dp</item>
<item name="android:layout_marginBottom">8dp</item>
<item name="android:layout_marginTop">8dp</item>
<item name="android:includeFontPadding">false</item>
<item name="android:gravity">top</item>
<item name="android:ellipsize">end</item>
</style>
<!-- Body -->
<style name="UrbanAirship.InAppBanner.Body">
<item name="android:padding">0dp</item>
<item name="android:lineSpacingMultiplier">1.2</item>
<item name="android:layout_marginBottom">8dp</item>
<item name="android:layout_marginTop">8dp</item>
<item name="android:ellipsize">end</item>
</style>
<!-- Button layout -->
<style name="UrbanAirship.InAppBanner.ButtonLayout">
<item name="android:layout_marginTop">8dp</item>
<item name="android:layout_marginBottom">8dp</item>
<item name="urbanAirshipStackedSpaceHeight">16dp</item>
<item name="urbanAirshipSeparatedSpaceWidth">16dp</item>
<item name="urbanAirshipButtonLayoutResourceId">@layout/ua_iam_banner_button</item>
</style>
<!-- Button -->
<style name="UrbanAirship.InAppBanner.Button">
<item name="android:stateListAnimator" tools:targetApi="lollipop">@null</item>
<item name="android:minHeight">48dp</item>
<item name="android:textAllCaps">false</item>
<item name="android:paddingRight">4dp</item>
<item name="android:paddingLeft">4dp</item>
<item name="android:paddingTop">2dp</item>
<item name="android:paddingBottom">2dp</item>
</style>
</resources>