Home
last modified time | relevance | path

Searched refs:recipe (Results 1 – 3 of 3) sorted by relevance

/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipe.java64 Recipe recipe = new Recipe(); in fromJson() local
66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE); in fromJson()
67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY); in fromJson()
69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE); in fromJson()
72 recipe.ingredientsText = ""; in fromJson()
74 recipe.ingredientsText += " - " in fromJson()
86 recipe.recipeSteps.add(recipeStep); in fromJson()
92 return recipe; in fromJson()
112 Recipe recipe = new Recipe(); in fromBundle() local
113 recipe.titleText = bundle.getString(Constants.RECIPE_FIELD_TITLE); in fromBundle()
[all …]
DRecipeActivity.java61 setContentView(R.layout.recipe); in onCreate()
96 private void displayRecipe(Recipe recipe) { in displayRecipe() argument
99 mTitleTextView.setText(recipe.titleText); in displayRecipe()
100 mSummaryTextView.setText(recipe.summaryText); in displayRecipe()
101 if (recipe.recipeImage != null) { in displayRecipe()
103 Bitmap recipeImage = AssetUtils.loadBitmapAsset(this, recipe.recipeImage); in displayRecipe()
106 mIngredientsTextView.setText(recipe.ingredientsText); in displayRecipe()
117 for (Recipe.RecipeStep step : recipe.recipeSteps) { in displayRecipe()
/development/samples/browseable/RecipeAssistant/
D_index.jd8 This phone application uses the enhanced notifications API to display recipe
10 … from a short list of recipes and select one to view. Each recipe is broken down into a number of
13 page for each step in the recipe.