Skip to content

Commit d3ef36c

Browse files
author
Iain Connor
committed
Added option to force remeasure
1 parent ab7e95e commit d3ef36c

File tree

1 file changed

+6
-0
lines changed
  • library/src/main/java/com/tippingcanoe/dewey

1 file changed

+6
-0
lines changed

library/src/main/java/com/tippingcanoe/dewey/Dewey.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,10 @@ public void setStripOffset(@DimenRes int stripOffset) {
238238
public static interface OnFocusedPositionChangedListener {
239239
void onFocusedPositionChanged ( int previousFocusedPosition, int newFocusedPosition );
240240
}
241+
242+
public void remeasureItemWidth() {
243+
((DeweyLayoutManager) getLayoutManager()).updateForcedCellWidth();
244+
forceLayout();
245+
requestLayout();
246+
}
241247
}

0 commit comments

Comments
 (0)