本文整理汇总了Java中com.joanzapata.iconify.Iconify类的典型用法代码示例。如果您正苦于以下问题:Java Iconify类的具体用法?Java Iconify怎么用?Java Iconify使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Iconify类属于com.joanzapata.iconify包,在下文中一共展示了Iconify类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
public void onCreate()
{
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this))
{
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
setupGraph();
Iconify.with(new FontAwesomeModule());
if (!BuildConfig.DEBUG)
Bugsnag.init(this);
else
LeakCanary.install(this);
// Empty string while RxSocialConnect's disk cache is not working
RxSocialConnect.register(this, "")
.using(new GsonSpeaker());
NavigationDrawerBuilder.initialiseMaterialDrawerImageLoader();
}
示例2: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
public void onCreate() {
super.onCreate();
Iconify.with(new FontAwesomeModule());
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/bariol_regular-webfont.ttf")
.setFontAttrId(R.attr.fontPath)
.build());
Configuration dbConfiguration = new Configuration.Builder(this)
.setDatabaseName("storage.db")
.addModelClass(NewsModel.class)
.create();
ActiveAndroid.initialize(dbConfiguration);
}
示例3: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Iconify.with(new FontAwesomeModule());
LocaleHelper.onCreate(this, "en");
setContentView(R.layout.activity_main);
menuButton = (ImageButton) findViewById(R.id.overview_menuButton);
menuButton.setOnClickListener(this);
checkEula();
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1) {
askForPermission(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE}, CASE_STORAGE);
}
askForBatteryOptimizationPermission();
checkUpgradeToProfileTarget();
if (Config.logFunctionCalls)
log.debug("onCreate");
onStatusEvent(new EventSetWakeLock(SP.getBoolean("lockscreen", false)));
registerBus();
setUpTabs(false);
}
示例4: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_debug);
Iconify.with(new FontAwesomeModule());
lstDebug = (ListView) findViewById(R.id.listView);
swipe = (SwipeRefreshLayout) findViewById(R.id.activity_main_swipe_refresh_layout);
debugs = new ArrayList<Debug>();
debugListAdapter = new DebugListAdapter(DebugActivity.this, R.layout.item_debug, debugs, DebugActivity.this);
lstDebug.setAdapter(debugListAdapter);
loadMoreData();
swipe.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
debugs = new ArrayList<Debug>();
loadMoreData();
}
});
}
示例5: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
// crashlytics
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}
// picasso
Picasso.Builder builder = new Picasso.Builder(this);
builder.downloader(new OkHttpDownloader(this, Integer.MAX_VALUE));
Picasso picasso = builder.build();
Picasso.setSingletonInstance(picasso);
Iconify.with(new FontAwesomeModule());
// realm (added by T. Kopp on 2/2/16)
RealmConfiguration config = new RealmConfiguration.Builder(this)
.name(Constants.REALM_FILE_NAME)
.schemaVersion(Constants.SCHEMA_VERSION)
.deleteRealmIfMigrationNeeded()
.build();
Realm.setDefaultConfiguration(config);
}
示例6: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Iconify.with(new FontAwesomeModule());
File dir = new File(getExternalCacheDir(), STACKTRACE_DIR);
GlobalExceptionHandler.register(dir);
// configure logger
int minLogLevel = 1;
File logFile = new File(getExternalCacheDir(), "log.txt");
if(!logFile.exists()){
logFile.mkdirs();
}
Logger.configure(logFile, Logger.Level.getLevel(minLogLevel));
}
示例7: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
DaggerApplicationComponent
.builder()
.application(this)
.build()
.inject(this);
//Stetho initialization
if (BuildConfig.DEBUG) {
Stetho.initializeWithDefaults(this);
}
//Timber initialization
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
}
//Calligraphy initialization
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/NeologyDecoW01-Regular.ttf")
.setFontAttrId(R.attr.fontPath)
.build()
);
//Iconify Initialization
Iconify
.with(new IoniconsModule())
.with(new MaterialModule());
}
示例8: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
if(getSupportActionBar() != null) getSupportActionBar().setSubtitle("Not connected");
consoleLogger = ConsoleLoggerListner.getInstance();
machineStatus = MachineStatusListner.getInstance();
machineStatus.setJogging(sharedPref.getDouble(getString(R.string.jogging_step_size), 1.0), sharedPref.getDouble(getString(R.string.jogging_feed_rate), 2400.0), sharedPref.getBoolean(getString(R.string.jogging_in_inches), false));
machineStatus.setVerboseOutput(sharedPref.getBoolean(getString(R.string.console_verbose_mode), false));
binding.setMachineStatus(machineStatus);
CardView viewLastToast = findViewById(R.id.view_last_toast);
viewLastToast.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
if(lastToastMessage != null) grblToast(lastToastMessage);
return true;
}
});
Iconify.with(new FontAwesomeModule());
this.setupTabLayout();
}
示例9: initIcons
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
private void initIcons() {
if (ICONS.size() > 0) {
final Iconify.IconifyInitializer initializer = Iconify.with(ICONS.get(0));
for (int i = 1; i < ICONS.size(); i++) {
initializer.with(ICONS.get(i));
}
}
}
示例10: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override public void onCreate() {
setStrictModeConfiguration();
super.onCreate();
setStrictModeConfigurationWorkaround();
Iconify.with(new FontAwesomeModule());
gson = new Gson();
database = new Database(this, gson);
httpClient = new OkHttpClient.Builder()
.build();
Picasso.setSingletonInstance(new Picasso.Builder(this)
.listener(new Listener() {
@Override public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {
Log.d("Picasso", "Image failed loading: " + exception);
}
})
.build());
if (Constants.isBaseApiUrlDefined() && !FORCE_MOCK) {
Retrofit retrofit = new Builder()
.baseUrl(Constants.API_BASE_URL)
.addConverterFactory(GsonConverterFactory.create(gson))
.client(httpClient)
.build();
api = retrofit.create(VespappApi.class);
}
}
示例11: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Fresco.initialize(this);
LeakCanary.install(this);
JPushInterface.setDebugMode(BuildConfig.DEBUG);
JPushInterface.init(this);
initializeInjector();
initializeInjectorApi();
Iconify.with(new FontAwesomeModule());
}
示例12: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics.Builder().core(new CrashlyticsCore.Builder()
.disabled(BuildConfig.DEBUG)
.build()).build());
Iconify.with(new FontAwesomeModule()).with((new MaterialModule()));
JodaTimeAndroid.init(this);
}
示例13: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.i(TAG,"onCreate");
setContentView(R.layout.activity_main);
Iconify.with(new FontAwesomeModule());
// Specify that tabs should be displayed in the action bar.
toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
//getSupportActionBar().setDisplayHomeAsUpEnabled(true);
viewPager = (ViewPager) findViewById(R.id.viewpager);
setupViewPager(viewPager);
// Set Table Layout and Pager with fragments
tabLayout = (TabLayout) findViewById(R.id.tabs);
tabLayout.setupWithViewPager(viewPager);
changeTabsFont();
//TODO DEBUG for density
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
Log.i(TAG, "Density:" + metrics.densityDpi);
Log.i(TAG, "WidthPixels:" + metrics.widthPixels);
//Save the fragment's instance
//if(savedInstanceState!=null) {
/*Fragment secondFragment = getSupportFragmentManager().getFragment(savedInstanceState,"account_fragment");
setupViewPager(viewPager, secondFragment);*/
//viewPager.setCurrentItem(savedInstanceState.getInt("viewPager_CurrentItem"));
//}
}
示例14: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_detail);
Iconify.with(new FontAwesomeModule());
progress = (ProgressBar) findViewById(R.id.progress);
//clear variables
replies = new ArrayList<Message>();
answers = new ArrayList<Message>();
// message view component for answer message
answerMessageView = (MessageView)findViewById(R.id.answerMessageView);
// recyclerview on replies Messages
recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
final it.eternitywall.eternitywall.components.LinearLayoutManager layoutManager = new it.eternitywall.eternitywall.components.LinearLayoutManager(this, it.eternitywall.eternitywall.components.LinearLayoutManager.VERTICAL, false);
recyclerView.setLayoutManager(layoutManager);
final LruCache<String, Bitmap> bitmapCache = ((EWApplication) getApplication()).getBitmapCache();
recyclerView.setAdapter(new MessageRecyclerViewAdapter(replies, 0, null,bitmapCache));
try {
hash = getIntent().getStringExtra("hash");
} catch (Exception e) {
//succhia!
Toast.makeText(DetailActivity.this, getString(R.string.err_check_internet), Toast.LENGTH_SHORT).show();
}
//load messages at startup
loadMessage();
}
示例15: ReactIconifyPackage
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
public ReactIconifyPackage() {
Iconify.with(new FontAwesomeModule())
.with(new EntypoModule())
.with(new TypiconsModule())
.with(new MaterialModule())
.with(new MeteoconsModule())
.with(new WeathericonsModule())
.with(new SimpleLineIconsModule())
.with(new IoniconsModule());
}