disapp/app/src/main/res/layout/activity_welcome.xml

87 lines
3.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.WelcomeActivity">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_margin="@dimen/fab_margin">
<TextView
android:id="@+id/WelcomeTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:gravity="center"
android:text="@string/WelcomeTitle"
android:textSize="25sp"
/>
<TextView
android:id="@+id/WelcomeInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:text="@string/WelcomeInfo"
tools:ignore="MissingConstraints" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin">
<ImageButton
android:id="@+id/fDroidBtn"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="start"
android:foreground="@drawable/ic_f_droid"
android:contentDescription="@string/fDroid" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/fDroidBtn"
android:text="@string/fDroid"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:layout_toRightOf="@+id/fDroidBtn"
android:layout_toEndOf="@+id/fDroidBtn">
<ImageButton
android:id="@+id/homeBtn"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="@color/bg_primary_blue"
android:foreground="@drawable/ic_home"
android:contentDescription="@string/app_name" /></LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:layout_toEndOf="@+id/fDroidBtn"
android:layout_below="@id/fDroidBtn"
android:layout_toRightOf="@+id/fDroidBtn">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:gravity="end"
android:layout_marginBottom="@dimen/extra_margin"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
</ScrollView>