oeffi/oeffi/res/layout/network_picker_content.xml
Andreas Schildbach 9c1ed53bf8 Replace custom shadows by elevation attributes.
This only works on Lollipop and above. KitKat users will not see shadows any more.
2019-11-04 16:33:49 +01:00

72 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/stations_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:elevation="@dimen/elevation_content"
android:orientation="horizontal"
tools:targetApi="21">
<LinearLayout
android:id="@+id/network_picker_list_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<include layout="@layout/action_bar" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/network_picker_firsttime_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/action_bar_appendix"
android:padding="@dimen/list_entry_padding_horizontal_lax"
android:text="@string/network_picker_firsttime_message"
android:textColor="@color/text"
android:textSize="@dimen/font_size_large"
android:textStyle="normal" />
<FrameLayout
android:id="@+id/network_picker_firsttime_message_shadow"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1">
<androidx.recyclerview.widget.RecyclerView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout
android:id="@+id/network_picker_map_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:elevation="@dimen/elevation_map">
<de.schildbach.oeffi.OeffiMapView
android:id="@+id/network_picker_map"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/network_picker_map_disclaimer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:layout_marginBottom="@dimen/list_entry_padding_vertical_lax"
android:layout_marginLeft="@dimen/list_entry_padding_horizontal_lax"
android:textSize="@dimen/font_size_disclaimer" />
</FrameLayout>
</LinearLayout>