
If the device is small, then the "Conenct and trade apps with people near you" header takes up too much space and we end up not being able to see any nearby people at all, even if they are in the list. As such, this also removes that header for "small" and "ldpi" devices. During testing I found that "small" was not enough, because a 240x400 screen is considered "medium" and there is not enough space. ldpi seems to be a reasonable metric for "that header is going to be taking valuable space and should not be shown then". All larger devices retain the header and seem to look nice. This also pushes the "Can't find what you're looking for?" message and associated buttons right to the bottom of the screen. This is more in line with the original design. Fixes #604.
32 lines
1.1 KiB
XML
32 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="130dp"
|
|
android:layout_alignParentTop="true"
|
|
tools:showIn="@layout/swap_blank">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/swap_start_header" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:padding="20dp"
|
|
android:paddingLeft="30dp"
|
|
android:paddingRight="30dp"
|
|
android:paddingEnd="30dp"
|
|
android:gravity="center"
|
|
android:textAlignment="center"
|
|
android:text="@string/swap_intro"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="18sp"
|
|
tools:ignore="UnusedAttribute" />
|
|
|
|
</RelativeLayout> |