Example #1
0
 public static DimenHolder fromDp(int dp) {
   DimenHolder dimenHolder = new DimenHolder();
   dimenHolder.mDp = dp;
   return dimenHolder;
 }
Example #2
0
 public static DimenHolder fromResource(@DimenRes int resource) {
   DimenHolder dimenHolder = new DimenHolder();
   dimenHolder.mResource = resource;
   return dimenHolder;
 }
Example #3
0
 public static DimenHolder fromPixel(int pixel) {
   DimenHolder dimenHolder = new DimenHolder();
   dimenHolder.mPixel = pixel;
   return dimenHolder;
 }