Hide to one pixel

pull/209/head
M66B 2 years ago
parent 75f1af1c98
commit aea038afc7

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

Loading…
Cancel
Save