Courtesy: GitHub

OurStreets for Android

Visit StreetView galleries with delightful material design aspects.

Introduction

OurStreets transitions

With OurStreets you can experience beautiful views from around the world in 360 degrees. All of this with a delightful material design approach throughout the whole interface.

OurStreets demonstrates use of shared element transitions throughout the app.

The data for OurStreets is stored in Firebase and retrieved at runtime. This allows for a smaller initial download as well as modifying of data without having to deploy a new apk.

Download the prebuilt sample

Screenshots

Getting started

Clone and build

This project uses gradle as its build system. After cloning, enter the top level directory and run ./gradlew tasks to get an overview of all the tasks available for this project. Probably you'll just want to run

./gradlew installDebug

to get OurStreets running on your local device.

Add a maps api key

To add a Google Maps API key, follow the instructions on the developers console. Copy the API key you've created and paste it into the gradle.properties file.

Support

If you've found an error in this sample, please file an issue:

https://github.com/googlesamples/android-ourstreets/issues

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.

License

Copyright 2016 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for
additional information regarding copyright ownership. The ASF licenses this
file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.

compileSdkVersion 24

applicationId "com.google.samples.apps.ourstreets"

minSdkVersion 21

targetSdkVersion 24

versionCode 1

versionName "1.0"

compile "com.android.support:appcompat-v7:${appCompatVersion}"

compile "com.android.support:cardview-v7:${appCompatVersion}"

compile "com.android.support:design:${appCompatVersion}"

compile "com.android.support:recyclerview-v7:${appCompatVersion}"

compile "com.firebase:firebase-client-android:${firebaseVersion}"

compile "com.google.android.gms:play-services-maps:${mapsVersion}"

compile "com.google.maps.android:android-maps-utils:${mapsUtilsVersion}"

testCompile 'junit:junit:4.12'

testCompile "org.hamcrest:hamcrest-core:${hamcrestVersion}"

testCompile "org.hamcrest:hamcrest-library:${hamcrestVersion}"

package com.google.samples.apps.ourstreets

uses-permission

  • android.permission.INTERNET
  • android.permission.ACCESS_NETWORK_STATE
  • android.permission.WRITE_EXTERNAL_STORAGE
  • com.google.android.providers.gsf.permission.READ_GSERVICES
  • android.permission.ACCESS_COARSE_LOCATION
  • android.permission.ACCESS_FINE_LOCATION

MainActivity

The activity hosting all fragments for this application.

@see BackPressAware