Well, I don't know how it's raised by levels, but I can tell you that when you give an item to a pokemon outside battle, if the pokemon get close to the screen, that means that he like you. And if the pokemon desn't move at all, that means he's not very happy.