diff --git a/samples/ApiDemos/res/layout/image_block.xml b/samples/ApiDemos/res/layout/image_block.xml
index b91818c8c..423371740 100644
--- a/samples/ApiDemos/res/layout/image_block.xml
+++ b/samples/ApiDemos/res/layout/image_block.xml
@@ -15,7 +15,7 @@
android:layout_row="0"
android:src="@drawable/ducky"
android:onClick="clicked"
- android:sharedElementName="ducky"
+ android:viewName="ducky"
/>
\ No newline at end of file
diff --git a/samples/ApiDemos/res/layout/image_details.xml b/samples/ApiDemos/res/layout/image_details.xml
index 4db2c1d5c..a176ce524 100644
--- a/samples/ApiDemos/res/layout/image_details.xml
+++ b/samples/ApiDemos/res/layout/image_details.xml
@@ -10,7 +10,7 @@
android:layout_weight="1"
android:layout_width="match_parent"
android:scaleType="centerCrop"
- android:sharedElementName="hero"
+ android:viewName="hero"
android:onClick="clicked"
/>