Workaround constraint layout bug

pull/187/head
M66B 4 years ago
parent bc28423bb7
commit 1bac0b5313

@ -737,11 +737,11 @@ public class Helper {
}
static void hide(View view) {
view.setPadding(0, 0, 0, 0);
view.setPadding(0, 1, 0, 0);
ViewGroup.LayoutParams lparam = view.getLayoutParams();
lparam.width = 0;
lparam.height = 0;
lparam.height = 1;
if (lparam instanceof ConstraintLayout.LayoutParams)
((ConstraintLayout.LayoutParams) lparam).setMargins(0, 0, 0, 0);
view.setLayoutParams(lparam);

Loading…
Cancel
Save