I’m trying to update two layouts at a time from one single activity class, but its crashing.
Here is what I’m doing:
User can interact with one layout and as soon a s user presses a button a popup comes, this popup is defines via another layout. So I neeed to update the popup layout every time, but while using the findViewById(), it is giving null and I cant modify the view.
What shall I do for this?
– You will need to
inflatethis pop-up layout everytime you press the button.– You will need that inflate
view.findViewById(......);It will be something like below: