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.