diff options
author | Dmitry Yunitsky <yunik@mapswithme.com> | 2014-08-01 18:57:24 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:22:51 +0300 |
commit | 6c4020391d2f30248f87dce641fb507d6312f9e5 (patch) | |
tree | a2f937236153132818eb4c558355523c370458a4 /android/res/layout-land | |
parent | 6e78763840c6743bf1417ad50e7fb361a805a0fa (diff) |
New PP and toolbar UI.
Diffstat (limited to 'android/res/layout-land')
-rw-r--r-- | android/res/layout-land/info_box.xml | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/android/res/layout-land/info_box.xml b/android/res/layout-land/info_box.xml new file mode 100644 index 0000000000..088fddf6db --- /dev/null +++ b/android/res/layout-land/info_box.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + android:id="@+id/info_box_root" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <RelativeLayout + android:id="@+id/preview" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/bg_top_panels" + android:padding="@dimen/margin_small" + android:visibility="gone"> + + <LinearLayout + android:id="@+id/ll_preview" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/margin_small" + android:orientation="horizontal"> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1"> + + <TextView + android:id="@+id/info_subtitle" + style="@style/Holo.TextAppearance.Medium.Light" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_marginRight="@dimen/margin_large" + android:layout_marginTop="@dimen/margin_micro" + android:fontFamily="@string/robotoLight" + android:paddingRight="5dp" + android:textColor="@color/text_info_box"/> + + <TextView + android:id="@+id/info_title" + style="@style/Holo.TextAppearance.Large.Light" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/margin_micro" + android:fontFamily="@string/robotoLight" + android:paddingRight="@dimen/margin_large" + android:textColor="@color/text_info_box"/> + + <ImageButton + android:id="@+id/btn_edit_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="-32dp" + android:layout_toRightOf="@id/info_title" + android:alpha="@dimen/alpha_edit_button" + android:background="@android:color/transparent" + android:src="@drawable/ic_place_page_edit_button"/> + + <Button + android:id="@+id/btn_route_from" + style="@style/Holo.TextAppearance.Medium.Light" + android:layout_width="200dp" + android:layout_height="wrap_content" + android:layout_below="@id/info_title" + android:text="@string/choose_starting_point"/> + + <Button + android:id="@+id/btn_route_to" + style="@style/Holo.TextAppearance.Medium.Light" + android:layout_width="200dp" + android:layout_height="wrap_content" + android:layout_alignLeft="@id/btn_route_from" + android:layout_below="@id/btn_route_from" + android:text="@string/choose_destination"/> + </RelativeLayout> + + <CheckBox + android:id="@+id/info_box_is_bookmarked" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:button="@drawable/ic_bookmarks_selector" + android:padding="8dp"/> + </LinearLayout> + + <ImageView + android:id="@+id/iv_arrow" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/ll_preview" + android:src="@drawable/ic_arrow"/> + + </RelativeLayout> + + <LinearLayout + android:id="@+id/place_page" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/preview" + android:background="@color/bg_top_panels" + android:orientation="vertical" + android:visibility="gone"> + + <View + style="@style/drawerSeparator" + android:layout_weight="0"/> + + <ScrollView + android:id="@+id/place_page_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/margin_small" + android:layout_marginRight="@dimen/margin_small" + android:layout_weight="1"> + </ScrollView> + </LinearLayout> + +</RelativeLayout> |