I want to show the user all the levels and user can choose any level but first he has to win that level to unlock it that's why I want to show lock signal or symbol to it
please help
You need a method to update the shown image of the levels with a conditional image drawing of the lock image/symbol onto the image of the shown level. This may not necessarily be true, as you provided no information on how you are working this into your scenario and how to do what you want would depend on several things.