Wednesday, 30 December 2015

XML : collapsing layout min height is not working

i have a collapse layout that contains an image, this image must stop folding at a certain height. however not matter what I try, it just doesn't seem to have any effects.

I've tried both java code and xml to no avail. any guidance would be greatly appreciated.

   coladdtoolbar = (CollapsingToolbarLayout) findViewById(R.id.coladdtoolbar);      coladdtoolbar.setTitle("jam kardan");  coladdtoolbar.setMinimumHeight(140);     <android.support.design.widget.CollapsingToolbarLayout          android:id="@+id/coladdtoolbar"          android:layout_width="match_parent"          android:layout_height="match_parent"          android:fitsSystemWindows="true"          app:contentScrim="?attr/colorPrimary"          android:minHeight="140dp"          app:expandedTitleMarginEnd="64dp"          app:expandedTitleMarginStart="48dp"          app:layout_scrollFlags="scroll|exitUntilCollapsed">    

No comments:

Post a Comment