Skip to content Skip to sidebar Skip to footer

Spinner Within Child Of Activitygroup Doesn't Work

I have a problem with spinner inside activity , that child of Activity group . when I clicked on spinner , that isn't expanded and 'Force Close' window appears I was checked Logc

Solution 1:

this works fine.

View viewToLoad = LayoutInflater.from(this.getParent()).inflate(
                    R.layout.marketlist, null);
            this.setContentView(viewToLoad);

Solution 2:

If you are using context anywhere then you have to pass getParent() context because you are in a child of activity group.

Post a Comment for "Spinner Within Child Of Activitygroup Doesn't Work"