215 lines
6.3 KiB
XML
215 lines
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.joinmastodon.android.ui.views.SizeListenerFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:clipToPadding="false"
|
|
android:theme="@style/Theme.Mastodon.Dark.SplashFragment">
|
|
|
|
<View
|
|
android:id="@+id/blue_fill"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_gravity="top"
|
|
android:transformPivotY="0px"
|
|
android:background="#50D5ED"/>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/art_container"
|
|
android:layout_width="360dp"
|
|
android:layout_height="640dp"
|
|
android:layout_gravity="center"
|
|
tools:ignore="rtlHardcoded">
|
|
|
|
<ImageView
|
|
android:id="@+id/art_clouds"
|
|
android:layout_width="414dp"
|
|
android:layout_height="541dp"
|
|
android:layout_marginTop="37dp"
|
|
android:layout_marginLeft="-27dp"
|
|
android:layout_gravity="top|left"
|
|
android:alpha="0.3"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/splash_art_layer0"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/art_plane_elephant"
|
|
android:layout_width="245.64dp"
|
|
android:layout_height="72.65dp"
|
|
android:layout_marginLeft="-50.775dp"
|
|
android:layout_marginTop="184.12dp"
|
|
android:layout_gravity="left|top"
|
|
android:alpha="0.3"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/splash_art_layer4"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/art_right_hill"
|
|
android:layout_width="150.84dp"
|
|
android:layout_height="176.44dp"
|
|
android:layout_gravity="top|left"
|
|
android:layout_marginLeft="278dp"
|
|
android:layout_marginTop="244dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/splash_art_layer1"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/art_left_hill"
|
|
android:layout_width="197.2dp"
|
|
android:layout_height="153.61dp"
|
|
android:layout_gravity="top|left"
|
|
android:layout_marginTop="252dp"
|
|
android:layout_marginLeft="-44dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/splash_art_layer2"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/art_center_hill"
|
|
android:layout_width="400dp"
|
|
android:layout_height="346dp"
|
|
android:layout_gravity="top|left"
|
|
android:layout_marginTop="240dp"
|
|
android:layout_marginLeft="-20dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/splash_art_layer3"/>
|
|
|
|
</FrameLayout>
|
|
|
|
<View
|
|
android:id="@+id/green_fill"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:layout_gravity="bottom"
|
|
android:transformPivotY="1px"
|
|
android:background="#478E6A"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="300dp"
|
|
android:layout_height="78dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="32dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/splash_logo"/>
|
|
|
|
<Space
|
|
android:layout_width="1px"
|
|
android:layout_height="0px"
|
|
android:layout_weight="1"/>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<org.joinmastodon.android.ui.views.ProgressBarButton
|
|
android:id="@+id/btn_join_default_server"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
style="@style/Widget.Mastodon.M3.Button.Filled"
|
|
tools:text="@string/join_default_server"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/action_progress"
|
|
style="?android:progressBarStyleSmall"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:elevation="10dp"
|
|
android:indeterminate="true"
|
|
android:outlineProvider="none"
|
|
android:indeterminateTint="#FFF"
|
|
android:visibility="gone" />
|
|
|
|
</FrameLayout>
|
|
|
|
<Button
|
|
android:id="@+id/btn_get_started"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:textColor="#FFF"
|
|
style="@style/Widget.Mastodon.M3.Button.Outlined"
|
|
android:background="@drawable/bg_button_m3_outlined_white"
|
|
android:text="@string/pick_server"/>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="#B2FFFFFF"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="20dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:textAllCaps="true"
|
|
android:textAppearance="@style/m3_label_large"
|
|
android:textColor="#B2FFFFFF"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/signup_or_login"/>
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="#B2FFFFFF"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp">
|
|
|
|
<Button
|
|
android:id="@+id/btn_learn_more"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:layout_weight="1"
|
|
android:textColor="#FFF"
|
|
style="@style/Widget.Mastodon.M3.Button.Text"
|
|
android:background="@drawable/bg_button_m3_text_white"
|
|
android:text="@string/learn_more"/>
|
|
|
|
<Button
|
|
android:id="@+id/btn_log_in"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:layout_weight="1"
|
|
android:textColor="#FFF"
|
|
style="@style/Widget.Mastodon.M3.Button.Text"
|
|
android:background="@drawable/bg_button_m3_text_white"
|
|
android:text="@string/log_in"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</org.joinmastodon.android.ui.views.SizeListenerFrameLayout> |