Skip to content Skip to sidebar Skip to footer

Unable To Set Visibility Of Constraintlayout To Gone If String Is Null

I have paths in my sqlite database that i transform them in picture with glide library ..the imageviews are grouped in constraintlayout ..i want to set that constraintlayout to inv

Solution 1:

try

ConstraintLayout constraintLayout=(ConstraintLayout) view.getParent()

instead of

ConstraintLayout constraintLayout=(ConstraintLayout) findViewById(R.id.gridview);

Reason is You are doing this under case R.id.child2 It means you need to access the parent of this view

Post a Comment for "Unable To Set Visibility Of Constraintlayout To Gone If String Is Null"