From 03e6857306e267a7b78d5de18c84fde5dd55782d Mon Sep 17 00:00:00 2001 From: Filip Kis Date: Mon, 10 Feb 2014 18:34:50 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f6ddcf7..87f22fa 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ public static int getDrawable(Context context, String name) } ``` -and then in your *view class*, you have a component you want to pass the image to (for instance [ImageView](http://developer.android.com/reference/android/widget/ImageView.html)) and you do: +and then in your **view class**, you have a component you want to pass the image to (for instance [ImageView](http://developer.android.com/reference/android/widget/ImageView.html)) and you do: ```Java ImageView img = //You either create new or find from layout @@ -26,4 +26,4 @@ int drawableResId = DinnerPlannerApplication.getDrawable(view.getContext(),"draw img.setImageResource(drawableResId); ``` -*Note:* be sure to not have extension in the drawable name. If you are using the `getImage()` from the [DinnerModel](https://github.com/kth-csc-iprog/dinnerplanner-android/tree/master/src/se/kth/csc/iprog/dinnerplanner/model) this will give you the image name with `.jpg` extension. So either modify the model, or be sure to remove the extension before you pass it to the `getDrawable()` method. +**Note:** be sure to not have extension in the drawable name. If you are using the `getImage()` from the [DinnerModel](https://github.com/kth-csc-iprog/dinnerplanner-android/tree/master/src/se/kth/csc/iprog/dinnerplanner/model) this will give you the image name with `.jpg` extension. So either modify the model, or be sure to remove the extension before you pass it to the `getDrawable()` method.