android: getting the id of the views shown on layout that is being shown as an alert box on another layout
I need to show an alert box of some particular layout on which i have used some textviews and imageviews and imagebuttons. Now my problem is this when i get the id of the imageviews and imagebuttons that are to be put on the alertbox it is returned null. How shall i resolve this issue? Can anyone help me over this?
i know the answer already) instead of using
in the onCreate method use
where you inflate your view