Beispiel #1
0
 public CommonFont xmlvmGetUIFont(float pointSize) {
   String family =
       mFamilyName == null
           ? CommonDeviceAPIFinder.instance()
               .getFontFactory()
               .systemFontOfSize(pointSize)
               .familyName()
           : mFamilyName;
   String type = "";
   if ((mStyle & Typeface.BOLD) > 0) {
     type += "Bold";
   }
   if ((mStyle & Typeface.ITALIC) > 0) {
     type += "Italic";
   }
   return CommonDeviceAPIFinder.instance()
       .getFontFactory()
       .fontWithNameSize(family + "-" + type, pointSize);
 }
Beispiel #2
0
 public SharedPreferences(int mode) {
   // TODO what to do with mode?
   preferences = CommonDeviceAPIFinder.instance().getPreferences();
 }