Package com.aliucord.utils
Object DimenUtils
-
- All Implemented Interfaces:
public class DimenUtils
-
-
Field Summary
Fields Modifier and Type Field Description private final static Integer
defaultPadding
private final static Integer
defaultCardRadius
private final Integer
dp
public final static DimenUtils
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Integer
dpToPx(Integer dp)
Converts DP to PX. final static Integer
dpToPx(Float dp)
Converts DP to PX. final static Integer
pxToDp(Integer px)
Converts PX to DP. final static Integer
getDefaultPadding()
The default padding for items (16 DP) final static Integer
getDefaultCardRadius()
The default padding for cards (8 DP) final Integer
getDp(Integer $self)
-
-
Method Detail
-
getDefaultPadding
final static Integer getDefaultPadding()
The default padding for items (16 DP)
-
getDefaultCardRadius
final static Integer getDefaultCardRadius()
The default padding for cards (8 DP)
-
-
-
-