-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial Tour UI, which could still use some work. Also cleaned …
…up code in several places. The Tour UI still needs a landscape layout (coming in a later commit). We also need to insert a MapFragment with all of the places on the tour marked in the large empty space above the tour details. PlaceListAdapter renamed to PlaceCursorAdapter to reflect that it now uses Cursors instead of Lists.
- Loading branch information
Showing
29 changed files
with
691 additions
and
167 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,10 +1,101 @@ | ||
[ | ||
{ | ||
"id" : 1, | ||
"name" : "Recommended", | ||
"name" : "Test Tour 1", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [1, 8, 3, 9], | ||
"distance" : "0.7 miles" | ||
"iconPath" : "" | ||
} | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 2, | ||
"name" : "Test Tour 2", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [2, 4, 3, 5], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 3, | ||
"name" : "Test Tour 3", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 4, | ||
"name" : "Test Tour 4", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 5, | ||
"name" : "Test Tour 5", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 6, | ||
"name" : "Test Tour 6", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 7, | ||
"name" : "Test Tour 7", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 8, | ||
"name" : "Test Tour 8", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 9, | ||
"name" : "Test Tour 9", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 10, | ||
"name" : "Test Tour 10", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
{ | ||
"id" : 11, | ||
"name" : "Test Tour 11", | ||
"timeRequired" : "1 hour", | ||
"placesOnTour" : [6, 1, 7], | ||
"description" : "Description for this tour", | ||
"distance" : "0.7 miles", | ||
"iconPath" : "tour_placeholder" | ||
}, | ||
] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,72 @@ | ||
<?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:orientation="vertical" > | ||
|
||
<LinearLayout | ||
android:id="@+id/tour_detail_map_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="40" | ||
android:orientation="vertical" /> | ||
|
||
<ScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="35" > | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:id="@+id/tour_detail_tour_name_tv" | ||
style="@style/detail_name_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Tour name" /> | ||
|
||
<TextView | ||
android:id="@+id/tour_detail_tour_desc_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Description: " /> | ||
|
||
<include layout="@layout/horizontal_line" /> | ||
|
||
<TextView | ||
android:id="@+id/tour_detail_tour_time_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Time required: " /> | ||
|
||
<TextView | ||
android:id="@+id/tour_detail_tour_distance_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Distance: " /> | ||
</LinearLayout> | ||
</ScrollView> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="25" | ||
android:orientation="vertical" > | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Places on the tour:" | ||
android:textSize="14sp" | ||
android:textStyle="bold" /> | ||
|
||
<ListView | ||
android:id="@+id/tour_detail_place_list" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<View xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="2dp" | ||
android:layout_marginBottom="1dp" | ||
android:layout_marginTop="1dp" | ||
android:background="@android:color/darker_gray" /> |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<item | ||
android:id="@+id/menu_add_tour_to_agenda" | ||
android:title="@string/menu_add_agenda" | ||
android:icon="@drawable/content_new" | ||
android:showAsAction="ifRoom|withText"/> | ||
|
||
</menu> |
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,9 @@ | ||
<resources xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<style name="AppTheme" parent="@android:style/Theme.Holo.Light" > | ||
|
||
<style name="AppTheme" parent="@android:style/Theme.Holo.Light" /> | ||
<style name="detail_name_text"> | ||
<item name="android:textSize">20sp</item> | ||
<item name="android:textStyle">bold</item> | ||
</style> | ||
|
||
</resources> |
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
Oops, something went wrong.