Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Poi dialog design. Work in progress
- Loading branch information
1 parent
c9c3dc7
commit 28385c9
Showing
25 changed files
with
921 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,49 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:background="#00F"> | ||
| <android.support.v4.widget.NestedScrollView | ||
| xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:background="@color/dashboard_background"> | ||
|
|
||
| </LinearLayout> | ||
| <LinearLayout | ||
| xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:orientation="vertical"> | ||
|
|
||
| <LinearLayout | ||
| android:id="@+id/editTagsList" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:orientation="vertical" | ||
| android:saveEnabled="false"/> | ||
|
|
||
| <include layout="@layout/poi_tag_list_item"/> | ||
|
|
||
| <Button | ||
| android:id="@+id/addTagButton" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Add tag"/> | ||
|
|
||
| <android.support.v7.widget.CardView | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <LinearLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <TextView | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:text="Added tags"/> | ||
|
|
||
| <android.support.v7.widget.RecyclerView | ||
| android:id="@+id/added_tags_recycler_view" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"/> | ||
| </LinearLayout> | ||
| </android.support.v7.widget.CardView> | ||
| </LinearLayout> | ||
| </android.support.v4.widget.NestedScrollView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,124 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:background="#0F0"> | ||
| <android.support.v4.widget.NestedScrollView | ||
| xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:background="@color/dashboard_background"> | ||
|
|
||
| </LinearLayout> | ||
| <RelativeLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <TextView | ||
| android:id="@+id/openHoursTextView" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginLeft="16dp" | ||
| android:text="Open hours" | ||
| android:textColor="@color/color_black"/> | ||
|
|
||
| <TextView | ||
| android:id="@+id/contactInfoTextView" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@id/openHoursTextView" | ||
| android:layout_marginLeft="16dp" | ||
| android:text="Contact info" | ||
| android:textColor="@color/color_black"/> | ||
|
|
||
| <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" | ||
| android:hint="35" | ||
| 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"/> | ||
|
|
||
| <View | ||
| android:id="@+id/buttonDivider" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="1dp" | ||
| android:layout_below="@id/descriptionEditText" | ||
| android:background="@color/divider_color"/> | ||
|
|
||
| <Button | ||
| android:id="@+id/saveButton" | ||
| style="?android:attr/borderlessButtonStyle" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentRight="true" | ||
| android:layout_below="@id/buttonDivider" | ||
| tools:text="Save" | ||
| android:textColor="@color/dashboard_general_button_text_light"/> | ||
|
|
||
| <Button | ||
| android:id="@+id/cancelButton" | ||
| style="?android:attr/borderlessButtonStyle" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@id/buttonDivider" | ||
| android:layout_toLeftOf="@id/saveButton" | ||
| android:text="Cancel" | ||
| android:textColor="@color/dashboard_general_button_text_light"/> | ||
|
|
||
| </RelativeLayout> | ||
| </android.support.v4.widget.NestedScrollView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
|
|
||
| <LinearLayout | ||
| xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:orientation="vertical"> | ||
|
|
||
| <LinearLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:orientation="horizontal"> | ||
|
|
||
| <android.support.design.widget.TextInputLayout | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:layout_weight="1"> | ||
|
|
||
| <EditText | ||
| android:id="@+id/tagEditText" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:hint="Tag"/> | ||
|
|
||
| </android.support.design.widget.TextInputLayout> | ||
|
|
||
| <android.support.design.widget.TextInputLayout | ||
| android:layout_width="0dp" | ||
| android:layout_height="wrap_content" | ||
| android:layout_weight="1"> | ||
|
|
||
| <EditText | ||
| android:id="@+id/valueEditText" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:hint="Value"/> | ||
|
|
||
| </android.support.design.widget.TextInputLayout> | ||
|
|
||
| <ImageButton | ||
| android:id="@+id/deleteItemImageButton" | ||
| style="@style/Widget.AppCompat.Button.Borderless" | ||
| android:layout_width="48dp" | ||
| android:layout_height="48dp" | ||
| android:layout_gravity="bottom" | ||
| android:src="@drawable/ic_action_close_dark"/> | ||
|
|
||
| </LinearLayout> | ||
|
|
||
| <View | ||
| android:id="@+id/buttonDivider" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="1dp" | ||
| android:layout_below="@id/descriptionEditText" | ||
| android:background="@color/divider_color"/> | ||
| </LinearLayout> |
Oops, something went wrong.