summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/welcome_page_2.xml
blob: d82f53224b72af01b09170b6b7d391f7a10f833a (plain)
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright Txus Ballesteros 2016 (@txusballesteros)
This file is part of some open source application.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
Contact: Txus Ballesteros <txus.ballesteros@gmail.com>
-->
<com.redbooth.WelcomePageLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    style="@style/welcome_page"
    tools:background="@color/page2">

    <RelativeLayout
        android:id="@+id/card1_page2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toLeftOf="@+id/avatar1_page2"
        android:layout_marginTop="16dp"
        android:visibility="gone"
        android:translationX="-500dp">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/bubble_finished"/>

        <ImageView
            android:id="@+id/decorator_finished"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/finished"
            android:layout_marginTop="16dp"
            android:layout_marginLeft="30dp"/>

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/decorator_finished"
            android:src="@drawable/file"
            android:layout_marginTop="16dp"
            android:layout_marginLeft="30dp"/>

    </RelativeLayout>


    <ImageView
        android:id="@+id/avatar1_page2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_marginRight="16dp"
        android:layout_marginTop="16dp"
        android:scaleX="0"
        android:scaleY="0"
        android:src="@drawable/avatar_jack2"/>

    <RelativeLayout
        android:id="@+id/card2_page2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:layout_below="@+id/card1_page2"
        android:layout_toRightOf="@+id/avatar2_page2"
        android:visibility="invisible"
        android:translationX="500dp">

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/bubble_excellent"/>

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/excellent"
            android:layout_marginTop="25dp"
            android:layout_marginLeft="25dp"/>

    </RelativeLayout>

    <FrameLayout
        android:id="@+id/star"
        android:layout_width="44dp"
        android:layout_height="44dp"
        android:layout_alignRight="@+id/card2_page2"
        android:layout_alignTop="@+id/card2_page2"
        android:layout_marginTop="10dp"
        android:layout_marginRight="20dp"
        android:visibility="invisible"
        app:view_behavior="com.mapbox.mapboxsdk.testapp.activity.maplayout.demo.AnimationFlightTo"
        app:destiny="@+id/android_destiny">

        <ImageView
            android:id="@+id/star_shadow"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:tint="#000000"
            android:layout_marginLeft="6dp"
            android:layout_marginTop="6dp"
            android:alpha="0"
            android:src="@drawable/star_large_no_shadow" />

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginRight="6dp"
            android:layout_marginBottom="6dp"
            android:src="@drawable/star_large_no_shadow" />

    </FrameLayout>

    <ImageView
        android:id="@+id/avatar2_page2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/card1_page2"
        android:layout_marginLeft="16dp"
        android:layout_marginTop="20dp"
        android:scaleX="0"
        android:scaleY="0"
        android:src="@drawable/avatar_maggie2"/>

    <TextView
        style="@style/text_title"
        android:id="@+id/title"
        android:layout_above="@+id/subtitle"
        android:text="Foo Bar"
        app:view_behavior="com.mapbox.mapboxsdk.testapp.activity.maplayout.demo.ParallaxTitleBehaviour" />

    <TextView
        style="@style/text_subtitle"
        android:id="@+id/subtitle"
        android:layout_alignParentBottom="true"
        android:text="Lorem ipsum,\nfoo bar bar foo."
        app:view_behavior="com.mapbox.mapboxsdk.testapp.activity.maplayout.demo.ParallaxSubtitleBehaviour" />

</com.redbooth.WelcomePageLayout>