Home
last modified time | relevance | path

Searched refs:Item (Results 1 – 23 of 23) sorted by relevance

/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.activityscenetransitionbasic/
DItem.java23 public class Item { class
28 public static Item[] ITEMS = new Item[] {
29 new Item("Flying in the Light", "Romain Guy", "flying_in_the_light.jpg"),
30 new Item("Caterpillar", "Romain Guy", "caterpillar.jpg"),
31 new Item("Look Me in the Eye", "Romain Guy", "look_me_in_the_eye.jpg"),
32 new Item("Flamingo", "Romain Guy", "flamingo.jpg"),
33 new Item("Rainbow", "Romain Guy", "rainbow.jpg"),
34 new Item("Over there", "Romain Guy", "over_there.jpg"),
35 new Item("Jelly Fish 2", "Romain Guy", "jelly_fish_2.jpg"),
36 new Item("Lone Pine Sunset", "Romain Guy", "lone_pine_sunset.jpg"),
[all …]
DMainActivity.java63 Item item = (Item) adapterView.getItemAtPosition(position); in onItemClick()
97 return Item.ITEMS.length; in getCount()
101 public Item getItem(int position) { in getItem()
102 return Item.ITEMS[position]; in getItem()
116 final Item item = getItem(position); in getView()
DDetailActivity.java47 private Item mItem;
55 mItem = Item.getItem(getIntent().getIntExtra(EXTRA_PARAM_ID, 0)); in onCreate()
/development/samples/Support7Demos/src/com/example/android/supportv7/util/
DSortedListActivity.java51 new Item("buy milk"), new Item("wash the car"), in onCreate()
52 new Item("wash the dishes")); in onCreate()
63 mAdapter.addItem(new Item(text)); in onCreate()
74 SortedList<Item> mData;
76 public SortedListAdapter(LayoutInflater layoutInflater, Item... items) { in SortedListAdapter()
78 mData = new SortedList<Item>(Item.class, new SortedListAdapterCallback<Item>(this) { in SortedListAdapter()
80 public int compare(Item t0, Item t1) { in SortedListAdapter()
97 public boolean areContentsTheSame(Item oldItem, in SortedListAdapter()
98 Item newItem) { in SortedListAdapter()
103 public boolean areItemsTheSame(Item item1, Item item2) { in SortedListAdapter()
[all …]
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java40 private class Item { class in RecipeListAdapter
47 private List<Item> mItems = new ArrayList<Item>();
59 List<Item> items = parseJson(jsonObject); in loadRecipeList()
64 private List<Item> parseJson(JSONObject json) { in parseJson()
65 List<Item> result = new ArrayList<Item>(); in parseJson()
70 Item parsed = new Item(); in parseJson()
86 private void appendItemsToList(List<Item> items) { in appendItemsToList()
120 Item item = (Item) getItem(position); in getView()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBrowseAnimationFragment.java40 static class Item { class in BrowseAnimationFragment
44 Item(String text, OnItemViewClickedListener action) { in Item() method in BrowseAnimationFragment.Item
87 Item createRandomItem() { in createRandomItem()
91 return new Item("Remove Item before", new OnItemViewClickedListener() { in createRandomItem()
106 return new Item("Remove Item after", new OnItemViewClickedListener() { in createRandomItem()
121 return new Item("Remove Item", new OnItemViewClickedListener() { in createRandomItem()
134 return new Item("Remove all Items", new OnItemViewClickedListener() { in createRandomItem()
144 return new Item("add item before", new OnItemViewClickedListener() { in createRandomItem()
157 return new Item("add item after", new OnItemViewClickedListener() { in createRandomItem()
170 return new Item("add random items before", in createRandomItem()
[all …]
/development/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DTabLayoutPreselectedUsage.java140 final Item item = (Item) object; in getItemPosition()
154 Item item = new Item(); in instantiateItem()
162 final Item item = (Item) object; in isViewFromObject()
173 final Item item = (Item) object; in destroyItem()
177 private static class Item { class in TabLayoutPreselectedUsage.CheesePagerAdapter
DTabLayoutUsage.java159 final Item item = (Item) object; in getItemPosition()
173 Item item = new Item(); in instantiateItem()
181 final Item item = (Item) object; in isViewFromObject()
192 final Item item = (Item) object; in destroyItem()
196 private static class Item { class in TabLayoutUsage.CheesePagerAdapter
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicRetriever.java42 List<Item> mItems = new ArrayList<Item>();
91 mItems.add(new Item( in prepare()
107 public Item getRandomItem() { in getRandomItem()
112 public static class Item { class in MusicRetriever
119 public Item(long id, String artist, String title, String album, long duration) { in Item() method in MusicRetriever.Item
DMusicService.java407 MusicRetriever.Item playingItem = null; in playNextSong()
415 playingItem = new MusicRetriever.Item(0, null, manualUrl, null, 0); in playNextSong()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DExternalStorage.java52 static class Item { class in ExternalStorage
58 Item mExternalStoragePublicPicture;
59 Item mExternalStoragePrivatePicture;
60 Item mExternalStoragePrivateFile;
358 Item createStorageControls(CharSequence label, File path, in createStorageControls()
362 Item item = new Item(); in createStorageControls()
DClipboardSample.java146 ClipData.Item item = clip.getItemAt(0); in updateClipData()
164 ClipData.Item item = clip.getItemAt(0); in updateClipData()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java341 private final SparseArray<Item> mDataItems = new SparseArray<Item>();
342 private final ArrayList<Item> mVisibleItems = new ArrayList<Item>();
430 public Item getItem(int position) { in getItem()
444 private static abstract class Item { class in GameControllerInput.SummaryAdapter
449 public Item(int itemId, int layoutResourceId) { in Item() method in GameControllerInput.SummaryAdapter.Item
476 private static class Heading extends Item {
491 private static class TextColumn extends Item {
DDraggableDot.java250 ClipData.Item item = data.getItemAt(i); in processDrop()
/development/samples/browseable/BasicMediaRouter/
D_index.jd9 content on a secondary display.\n\nUse the "Media Route Action Item" in the ActionBar
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DMyRssReader.java82 public boolean onOptionsItemSelected(Menu.Item item){ in onOptionsItemSelected()
DMyRssReader3.java99 public boolean onOptionsItemSelected(Menu.Item item){ in onOptionsItemSelected()
DMyRssReader2.java116 public boolean onOptionsItemSelected(Menu.Item item){ in onOptionsItemSelected()
DMyRssReader4.java109 public boolean onOptionsItemSelected(Menu.Item item){ in onOptionsItemSelected()
DMyRssReader5.java141 public boolean onOptionsItemSelected(Menu.Item item){ in onOptionsItemSelected()
/development/samples/ApiDemos/src/com/example/android/apis/media/
DVideoViewDemo.java62 ClipData.Item item = clipData.getItemAt(0);
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DContentFragment.java22 import android.content.ClipData.Item;
244 Item item = data.getItemAt(0); in processDrop()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java473 ClipData.Item item = clip.getItemAt(0); in performPaste()