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