OsmAnd/OsmAnd/res/layout/fragment_edit_poi_normal.xml

122 lines
4.7 KiB
XML
Raw Normal View History

2015-08-12 16:42:04 +02:00
<?xml version="1.0" encoding="utf-8"?>
2015-08-14 13:12:59 +02:00
<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
2015-08-26 19:44:04 +02:00
xmlns:osmand="http://schemas.android.com/apk/res-auto"
2015-08-14 13:12:59 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2015-08-18 17:06:20 +02:00
android:layout_height="match_parent">
2015-08-12 16:42:04 +02:00
2015-08-14 13:12:59 +02:00
<RelativeLayout
android:layout_width="match_parent"
2015-08-26 19:44:04 +02:00
android:layout_height="wrap_content"
android:theme="@style/OsmandLightTheme.NewAppTheme">
2015-08-14 13:12:59 +02:00
2015-08-26 19:44:04 +02:00
<net.osmand.plus.widgets.TextViewEx
2015-08-14 13:12:59 +02:00
android:id="@+id/contactInfoTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
2015-08-26 19:44:04 +02:00
android:layout_marginTop="18dp"
2015-08-14 13:12:59 +02:00
android:text="Contact info"
2015-08-26 19:44:04 +02:00
android:textColor="@color/color_black"
osmand:typeface="@string/font_roboto_medium"/>
2015-08-14 13:12:59 +02:00
<ImageView
android:id="@+id/streetImageView"
style="@style/edit_poi_imageview_style"
android:layout_below="@id/contactInfoTextView"
tools:src="@drawable/ic_action_street_name"/>
<EditText
android:id="@+id/streetEditText"
style="@style/create_poi_text_field"
android:layout_below="@id/contactInfoTextView"
android:hint="Street"
android:inputType="text"/>
<ImageView
android:id="@+id/houseNumberImageView"
style="@style/edit_poi_imageview_style"
android:layout_below="@id/streetEditText"
tools:src="@drawable/ic_action_building_number"/>
<EditText
android:id="@+id/houseNumberEditText"
style="@style/create_poi_text_field"
android:layout_below="@id/streetEditText"
2015-08-26 19:44:04 +02:00
android:hint="@string/building_number"
2015-08-14 13:12:59 +02:00
android:inputType="text"/>
<ImageView
android:id="@+id/phoneImageView"
style="@style/edit_poi_imageview_style"
android:layout_below="@id/houseNumberEditText"
tools:src="@drawable/ic_action_call_dark"/>
<EditText
android:id="@+id/phoneEditText"
style="@style/create_poi_text_field"
android:layout_below="@id/houseNumberEditText"
android:hint="Phone"
android:inputType="phone"/>
<ImageView
android:id="@+id/webSiteImageView"
style="@style/edit_poi_imageview_style"
android:layout_below="@id/phoneEditText"
tools:src="@drawable/ic_world_globe_dark"/>
<EditText
android:id="@+id/webSiteEditText"
style="@style/create_poi_text_field"
android:layout_below="@id/phoneEditText"
android:hint="Web site"
android:inputType="textUri"/>
<ImageView
android:id="@+id/descriptionImageView"
style="@style/edit_poi_imageview_style"
android:layout_below="@id/webSiteEditText"
tools:src="@drawable/ic_action_description"/>
<EditText
android:id="@+id/descriptionEditText"
style="@style/create_poi_text_field"
android:layout_width="match_parent"
android:layout_below="@id/webSiteEditText"
android:hint="Description"
android:inputType="textMultiLine"/>
2015-08-21 12:13:51 +02:00
2015-08-26 19:44:04 +02:00
<net.osmand.plus.widgets.TextViewEx
2015-08-18 17:06:20 +02:00
android:id="@+id/openHoursTextView"
2015-08-14 13:12:59 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-08-18 17:06:20 +02:00
android:layout_below="@id/descriptionEditText"
android:layout_marginLeft="16dp"
android:text="Open hours"
2015-08-26 19:44:04 +02:00
android:textColor="@color/color_black"
osmand:typeface="@string/font_roboto_medium" />
2015-08-21 12:13:51 +02:00
2015-08-25 14:21:53 +02:00
<LinearLayout
android:id="@+id/openHoursContainer"
2015-08-21 12:13:51 +02:00
android:layout_width="match_parent"
2015-08-25 14:21:53 +02:00
android:layout_height="wrap_content"
2015-08-21 12:13:51 +02:00
android:layout_below="@id/openHoursTextView"
2015-08-25 14:21:53 +02:00
android:orientation="vertical"/>
2015-08-21 12:13:51 +02:00
<net.osmand.plus.widgets.ButtonEx
2015-08-25 14:21:53 +02:00
android:id="@+id/addOpeningHoursButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/openHoursContainer"
android:layout_marginLeft="72dp"
android:text="Add opening hours"
android:textSize="12sp"
osmand:typeface="@string/font_roboto_medium"/>
<!--XXX due to bug in NestedScroolView-->
<Space
android:layout_width="match_parent"
android:layout_height="500dp"/>
2015-08-14 13:12:59 +02:00
</RelativeLayout>
</android.support.v4.widget.NestedScrollView>