java - MigLayout: how to change default “related” and “unrelated” gap values? -


it nice feature use “related” , “unrelated” gap values in miglayout container, change default values. how that? don’t use explicit numbers, e.g. “wrap 15px”. “wrap related” more flexible , readable.

have @ class platformdefaults: has api customize (nearly) semantically known unitvalues, f.i. set unrelated gap both x/y

unitvalue mygap = new unitvalue(15, unitvalue.lpx, null); platformdefaults.setunrelatedgap(mygap, mygap); 

beware, though: default values per-os guidelines require, if change them ui violate guidelines!


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -