bmahule / YummlyClient

Final project - Android class (Yahoo!)
0 stars 0 forks source link

Android Class Yahoo - Final Project #1

Open bmahule opened 10 years ago

bmahule commented 10 years ago

/cc @nesquena @timothy1ee

Hi Nathan,

This is Bhagyashri Mahule. I have a question regarding this project. I am using Grid view for recipes and smartview to view those images as we used in our imageSearch project.

Here is how it looks like :

screen shot 2014-02-10 at 5 55 06 pm

I want to increase the size of the images. Not sure how do i do that.

https://api.yummly.com/v1/api/recipes?_app_id=3830e3d4&_app_key=da74a7e8a27f10e29bc89e1841b2af41

This is how Yummly returns the search results. I am using "smallImageUrls" for displaying images.

Also, I want to display the name of the recipe on top of the image. How do I do that? Since I am using SmartImageView, I didn't see any example/information online regarding this.

Can you please help me here or point me to right documents?

Thanks, Bhagyashri

nesquena commented 10 years ago

I want to increase the size of the images. Not sure how do i do that.

The largest images given by the API are 90x90 as far as I can tell in that example. You could try to scale the image up but it would probably look distorted. If you want to try anyways, try setting a height and width on the imageview (i.e 150x150) and then set android:scaleType="fitCenter" on the ImageView and see how it looks.

Also, I want to display the name of the recipe on top of the image. How do I do that?

Basically add a textview here to this layout above the smart image view: https://github.com/bmahule/YummlyClient/blob/master/res/layout/item_recipe.xml

Then retrieve the textview here: https://github.com/bmahule/YummlyClient/blob/master/src/com/android/yummlyclient/adapters/RecipesAdapter.java#L56 in getView and set the name of the recipe as the text.