Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

Commit

Permalink
Auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
google-automerger committed Feb 9, 2017
1 parent 4a62cfa commit 1d66c72
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .google/packaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ technologies: [Android]
categories: [Notification, Wearable]
languages: [Java]
solutions: [Mobile]
github: android-Wear Notifications
github: android-WearNotifications
level: INTERMEDIATE
icon: screenshots/icon-web.png
apiRefs:
Expand Down
2 changes: 1 addition & 1 deletion Application/src/main/res/values/base-strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-->

<resources>
<string name="app_name">Wear Notifications</string>
<string name="app_name">WearNotifications</string>
<string name="intro_message">
<![CDATA[
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Android Wear Notifications Sample
Android WearNotifications Sample
===================================

Sample demonstrates best practices for using NotificationStyle Notifications (Inbox,
Expand Down Expand Up @@ -68,7 +68,7 @@ Support
- Stack Overflow: http://stackoverflow.com/questions/tagged/android

If you've found an error in this sample, please file an issue:
https://github.com/googlesamples/android-Wear Notifications
https://github.com/googlesamples/android-WearNotifications

Patches are encouraged, and may be submitted by forking this project and
submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
Expand Down
5 changes: 3 additions & 2 deletions Wearable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ dependencies {
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'

provided "com.google.android.wearable:wearable:1.0.0"

compile 'com.google.android.gms:play-services-wearable:10.0.1'
compile 'com.android.support:support-v13:25.0.1'

compile 'com.google.android.support:wearable:2.0.0-alpha3'
provided 'com.google.android.wearable:wearable:2.0.0'

compile 'com.google.android.support:wearable:2.0.0'

}

Expand Down
3 changes: 3 additions & 0 deletions Wearable/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
android:supportsRtl="true"
android:theme="@style/AppThemeOverride">

<!-- Let's Play Store know this app is standalone. -->
<meta-data android:name="com.google.android.wearable.standalone" android:value="true"/>

<!--
Important Note: Usually, you will want to disable bridging if you have a local/native
Android Wear app creating Notifications. In our case, we don't, as our sample shows both
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ protected void onCreate(Bundle savedInstanceState) {
mMainFrameLayout = (FrameLayout) findViewById(R.id.mainFrameLayout);
mWearableRecyclerView = (WearableRecyclerView) findViewById(R.id.recycler_view);

// Aligns the first and last items on the list vertically centered on the screen.
mWearableRecyclerView.setCenterEdgeItems(true);

// Customizes scrolling (zoom) and offsets of WearableRecyclerView's items
ScalingOffsettingHelper scalingOffsettingHelper = new ScalingOffsettingHelper();
mWearableRecyclerView.setOffsettingHelper(scalingOffsettingHelper);
Expand Down

0 comments on commit 1d66c72

Please sign in to comment.