OsmAnd/OsmAnd/res/layout/fragment_edit_poi_normal.xml

135 lines
5.3 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-09-11 14:12:16 +02:00
android:layout_height="wrap_content">
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"
osmand:theme="?attr/new_app_theme">
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-31 16:31:25 +02:00
android:text="@string/contact_info"
2015-09-04 18:29:28 +02:00
android:textColor="?android:textColorPrimary"
2015-08-26 19:44:04 +02:00
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"
2015-08-31 16:31:25 +02:00
android:hint="@string/street_name"
2015-10-26 09:37:37 +01:00
android:inputType="textMultiLine"
tools:text="testText"/>
2015-08-14 13:12:59 +02:00
<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"
2015-08-31 16:31:25 +02:00
android:hint="@string/phone"
2015-08-14 13:12:59 +02:00
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"
2015-08-31 16:31:25 +02:00
android:hint="@string/website"
2015-08-14 13:12:59 +02:00
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"
2015-08-31 16:31:25 +02:00
android:hint="@string/description"
2015-08-14 13:12:59 +02:00
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"
2015-08-28 15:33:36 +02:00
android:layout_marginTop="18dp"
2015-08-31 16:31:25 +02:00
android:layout_marginBottom="16dp"
android:text="@string/opening_hours"
2015-09-04 18:29:28 +02:00
android:textColor="?android:textColorPrimary"
2015-08-28 15:33:36 +02:00
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-31 16:31:25 +02:00
android:orientation="vertical"
android:layout_marginBottom="4dp"/>
2015-08-21 12:13:51 +02:00
2015-08-28 15:33:36 +02:00
<ImageView
android:id="@+id/openingHoursImageView"
style="@style/edit_poi_imageview_style"
android:layout_below="@id/openHoursContainer"
android:layout_marginTop="12dp"
tools:src="@drawable/ic_action_time"/>
<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"
2015-08-31 16:31:25 +02:00
android:text="@string/add_opening_hours"
2015-08-28 09:54:30 +02:00
android:textSize="@dimen/default_sub_text_size"
osmand:typeface="@string/font_roboto_medium"/>
<!--XXX due to bug in NestedScrollView-->
<Space
2015-09-11 14:12:16 +02:00
android:id="@+id/screenFiller"
android:layout_width="match_parent"
2015-09-11 14:12:16 +02:00
android:layout_height="match_parent"
tools:visibility="visible"/>
2015-08-14 13:12:59 +02:00
</RelativeLayout>
</android.support.v4.widget.NestedScrollView>