Update browseable samples for lmp-docs
Synced to commit df5e5013422b81b4fd05c0ac9fd964b13624847a. Includes new samples for Android Auto. Change-Id: I3fec46e2a6b3f196682a92f1afd91eb682dc2dc1
This commit is contained in:
@@ -65,8 +65,8 @@ public class DetailActivity extends Activity {
|
||||
* This could be done in the layout XML, but exposing it via static variables allows easy
|
||||
* querying from other Activities
|
||||
*/
|
||||
mHeaderImageView.setViewName(VIEW_NAME_HEADER_IMAGE);
|
||||
mHeaderTitle.setViewName(VIEW_NAME_HEADER_TITLE);
|
||||
mHeaderImageView.setTransitionName(VIEW_NAME_HEADER_IMAGE);
|
||||
mHeaderTitle.setTransitionName(VIEW_NAME_HEADER_TITLE);
|
||||
// END_INCLUDE(detail_set_view_name)
|
||||
|
||||
loadItem(item);
|
||||
|
||||
@@ -135,8 +135,8 @@ public class MainActivity extends Activity implements AdapterView.OnItemClickLis
|
||||
* As we're in an adapter we need to set each view's name dynamically, using the
|
||||
* item's ID so that the names are unique.
|
||||
*/
|
||||
image.setViewName("grid:image:" + item.getId());
|
||||
name.setViewName("grid:name:" + item.getId());
|
||||
image.setTransitionName("grid:image:" + item.getId());
|
||||
name.setTransitionName("grid:name:" + item.getId());
|
||||
// END_INCLUDE(grid_set_view_name)
|
||||
|
||||
return view;
|
||||
|
||||
Reference in New Issue
Block a user