Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
150 lines (124 sloc) 6.24 KB
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Parent Style -->
<style name="UrbanAirship.InAppFullscreen" />
<!-- Default Activity -->
<style name="UrbanAirship.InAppFullscreen.Activity">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowDrawsSystemBarBackgrounds" tools:targetApi="lollipop">true</item>
<item name="android:windowTranslucentStatus" tools:targetApi="kitkat">true</item>
<item name="android:statusBarColor" tools:targetApi="lollipop">@android:color/transparent
</item>
</style>
<!-- Scroll View - wraps the main layout -->
<style name="UrbanAirship.InAppFullscreen.ScrollView">
<item name="android:fadeScrollbars">false</item>
<item name="android:fillViewport">true</item>
</style>
<!-- Main layout - contains the message content -->
<style name="UrbanAirship.InAppFullscreen.Layout">
<item name="android:fitsSystemWindows">true</item>
<item name="android:paddingTop">24dp</item>
</style>
<!-- Layout overrides for HEADER_MEDIA_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.Layout.HeaderMediaBody" />
<!-- Layout overrides for HEADER_BODY_MEDIA templates -->
<style name="UrbanAirship.InAppFullscreen.Layout.HeaderBodyMedia" />
<!-- Layout overrides for MEDIA_HEADER_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.Layout.MediaHeaderBody">
<!-- Remove the top padding -->
<item name="android:paddingTop">0dp</item>
</style>
<!-- Wraps the dismiss button -->
<style name="UrbanAirship.InAppFullscreen.DismissButtonHolder">
<item name="android:fitsSystemWindows">true</item>
<item name="android:layout_gravity">top|end</item>
</style>
<!-- Dismiss button, sits outside of the scroll view -->
<style name="UrbanAirship.InAppFullscreen.DismissButton">
<item name="android:background">@drawable/ua_iam_dismiss_background</item>
<item name="android:src">@drawable/ua_ic_close_white</item>
<item name="android:layout_width">32dp</item>
<item name="android:layout_height">32dp</item>
<item name="android:layout_marginRight">16dp</item>
<item name="android:layout_marginTop">16dp</item>
</style>
<!-- Media -->
<style name="UrbanAirship.InAppFullscreen.MediaView">
<item name="android:layout_marginTop">24dp</item>
</style>
<!-- Media overrides for HEADER_MEDIA_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.MediaView.HeaderMediaBody" />
<!-- Media overrides for HEADER_BODY_MEDIA templates -->
<style name="UrbanAirship.InAppFullscreen.MediaView.HeaderBodyMedia" />
<!-- Media overrides for MEDIA_HEADER_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.MediaView.MediaHeaderBody">
<!-- Remove the top margin -->
<item name="android:layout_marginTop">0dp</item>
</style>
<!-- Heading -->
<style name="UrbanAirship.InAppFullscreen.Heading">
<item name="android:layout_marginLeft">24dp</item>
<item name="android:layout_marginRight">48dp</item>
<item name="android:ellipsize">end</item>
</style>
<!-- Heading overrides for HEADER_MEDIA_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.Heading.HeaderMediaBody" />
<!-- Heading overrides for HEADER_BODY_MEDIA templates -->
<style name="UrbanAirship.InAppFullscreen.Heading.HeaderBodyMedia" />
<!-- Heading overrides for MEDIA_HEADER_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.Heading.MediaHeaderBody">
<!-- Remove right margin since its no longer at the top -->
<item name="android:layout_marginRight">0dp</item>
<item name="android:layout_marginTop">24dp</item>
</style>
<!-- Body -->
<style name="UrbanAirship.InAppFullscreen.Body">
<item name="android:lineSpacingMultiplier">1.2</item>
<item name="android:layout_marginTop">16dp</item>
<item name="android:paddingLeft">24dp</item>
<item name="android:paddingRight">24dp</item>
<item name="android:ellipsize">end</item>
</style>
<!-- Body overrides for HEADER_MEDIA_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.Body.HeaderMediaBody">
<item name="android:layout_marginTop">24dp</item>
</style>
<!-- Body overrides for HEADER_BODY_MEDIA templates -->
<style name="UrbanAirship.InAppFullscreen.Body.HeaderBodyMedia" />
<!-- Body overrides for MEDIA_HEADER_BODY templates -->
<style name="UrbanAirship.InAppFullscreen.Body.MediaHeaderBody" />
<!-- Button Layout -->
<style name="UrbanAirship.InAppFullscreen.ButtonLayout">
<item name="android:layout_marginTop">24dp</item>
<item name="urbanAirshipStackedSpaceHeight">24dp</item>
<item name="urbanAirshipSeparatedSpaceWidth">16dp</item>
<item name="android:paddingLeft">24dp</item>
<item name="android:paddingRight">24dp</item>
<item name="urbanAirshipButtonLayoutResourceId">@layout/ua_iam_fullscreen_button</item>
</style>
<!-- Button -->
<style name="UrbanAirship.InAppFullscreen.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>
</style>
<!-- Footer Holder -->
<style name="UrbanAirship.InAppFullscreen.FooterHolder">
<item name="android:paddingBottom">12dp</item>
<item name="android:paddingTop">12dp</item>
</style>
<!-- Footer -->
<style name="UrbanAirship.InAppFullscreen.Footer">
<item name="android:minHeight">32dp</item>
<item name="android:textAllCaps">false</item>
<item name="android:paddingRight">4dp</item>
<item name="android:paddingLeft">4dp</item>
<item name="android:layout_marginLeft">24dp</item>
<item name="android:layout_marginRight">24dp</item>
<item name="android:layout_gravity">bottom|center_horizontal</item>
</style>
</resources>
You can’t perform that action at this time.