Hide to one pixel

This commit is contained in:
M66B 2022-11-04 13:14:42 +01:00
parent 75f1af1c98
commit aea038afc7
1 changed files with 2 additions and 2 deletions

View File

@ -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);