Home
last modified time | relevance | path

Searched refs:PhotoItem (Results 1 – 15 of 15) sorted by relevance

/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPhotoItem.java19 public class PhotoItem implements Parcelable { class
25 public PhotoItem(String title, int imageResourceId) { in PhotoItem() method in PhotoItem
29 public PhotoItem(String title, String content, int imageResourceId) { in PhotoItem() method in PhotoItem
63 public static final Parcelable.Creator<PhotoItem> CREATOR
64 = new Parcelable.Creator<PhotoItem>() {
66 public PhotoItem createFromParcel(Parcel in) {
67 return new PhotoItem(in);
71 public PhotoItem[] newArray(int size) {
72 return new PhotoItem[size];
76 private PhotoItem(Parcel in) { in PhotoItem() method in PhotoItem
DBrowseFragment.java88 } else if (item instanceof PhotoItem) { in onCreate()
90 getActivity(), ((PhotoItem) item).getImageResourceId()); in onCreate()
143 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
146 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
150 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
154 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
157 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
160 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
164 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
168 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
[all …]
DBrowseSupportFragment.java90 } else if (item instanceof PhotoItem) { in onCreate()
92 getActivity(), ((PhotoItem) item).getImageResourceId()); in onCreate()
145 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
148 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
152 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
156 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
159 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
162 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
166 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
170 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
[all …]
DRowsFragment.java89 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
90 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setupRows()
91 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setupRows()
92 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
93 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
94 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6)); in setupRows()
95 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7)); in setupRows()
96 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8)); in setupRows()
109 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item); in onItemClicked()
DRowsSupportFragment.java91 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
92 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setupRows()
93 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setupRows()
94 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
95 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
96 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6)); in setupRows()
97 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7)); in setupRows()
98 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8)); in setupRows()
111 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item); in onItemClicked()
DNewDetailsSupportFragment.java51 private PhotoItem mPhotoItem;
139 PhotoItem item = (PhotoItem) (savedInstanceState != null ? in onCreate()
150 if (item instanceof PhotoItem){ in onCreate()
152 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item); in onCreate()
193 public void setItem(PhotoItem photoItem) { in setItem()
201 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setItem()
202 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setItem()
203 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setItem()
204 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setItem()
231 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setItem()
[all …]
DNewDetailsFragment.java49 private PhotoItem mPhotoItem;
137 PhotoItem item = (PhotoItem) (savedInstanceState != null ? in onCreate()
148 if (item instanceof PhotoItem){ in onCreate()
150 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item); in onCreate()
191 public void setItem(PhotoItem photoItem) { in setItem()
199 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setItem()
200 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setItem()
201 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setItem()
202 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setItem()
229 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setItem()
[all …]
DDetailsSupportFragment.java49 private PhotoItem mPhotoItem;
123 PhotoItem item = (PhotoItem) (savedInstanceState != null ? in onCreate()
134 if (item instanceof PhotoItem){ in onCreate()
136 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item); in onCreate()
172 public void setItem(PhotoItem photoItem) { in setItem()
194 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setItem()
195 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setItem()
196 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setItem()
197 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setItem()
DDetailsFragment.java47 private PhotoItem mPhotoItem;
121 PhotoItem item = (PhotoItem) (savedInstanceState != null ? in onCreate()
132 if (item instanceof PhotoItem){ in onCreate()
134 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item); in onCreate()
170 public void setItem(PhotoItem photoItem) { in setItem()
192 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setItem()
193 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setItem()
194 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setItem()
195 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setItem()
DDetailsSupportActivity.java42 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM)); in onCreate()
45 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM)); in onCreate()
DDetailsActivity.java40 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM)); in onCreate()
43 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM)); in onCreate()
DSearchSupportFragment.java76 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in loadRows()
77 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in loadRows()
95 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item); in onItemClicked()
DSearchFragment.java74 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in loadRows()
75 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in loadRows()
93 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item); in onItemClicked()
DMainActivity.java69 new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in onCreateActions()
72 new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in onCreateActions()
76 new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in onCreateActions()
80 new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in onCreateActions()
DCardPresenter.java106 PhotoItem photoItem = (PhotoItem) item; in onBindViewHolder()