当前位置: 首页>>代码示例>>Java>>正文


Java Iconify.with方法代码示例

本文整理汇总了Java中com.joanzapata.iconify.Iconify.with方法的典型用法代码示例。如果您正苦于以下问题:Java Iconify.with方法的具体用法?Java Iconify.with怎么用?Java Iconify.with使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.joanzapata.iconify.Iconify的用法示例。


在下文中一共展示了Iconify.with方法的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();
}
 
开发者ID:jbmlaird,项目名称:DiscogsBrowser,代码行数:23,代码来源:App.java

示例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);
}
 
开发者ID:niranjan94,项目名称:amrita-info-desk,代码行数:17,代码来源:MainApplication.java

示例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);
}
 
开发者ID:MilosKozak,项目名称:AndroidAPS,代码行数:25,代码来源:MainActivity.java

示例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();
        }


    });

}
 
开发者ID:RCasatta,项目名称:EternityWallAndroid,代码行数:27,代码来源:DebugActivity.java

示例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);

}
 
开发者ID:ceaseless-prayer,项目名称:CeaselessAndroid,代码行数:26,代码来源:CeaselessApplication.java

示例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));
}
 
开发者ID:unfoldingWord-dev,项目名称:uw-android,代码行数:17,代码来源:UWApplication.java

示例7: 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();

}
 
开发者ID:zeevy,项目名称:grblcontroller,代码行数:30,代码来源:MainActivity.java

示例8: 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));
        }
    }
}
 
开发者ID:remerber,项目名称:FastEc,代码行数:9,代码来源:Configurator.java

示例9: 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);
    }
}
 
开发者ID:CarlosTenorio,项目名称:vespapp-android,代码行数:29,代码来源:Vespapp.java

示例10: 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());
}
 
开发者ID:CycloneAxe,项目名称:phphub-android,代码行数:14,代码来源:App.java

示例11: 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"));
    //}

}
 
开发者ID:RCasatta,项目名称:EternityWallAndroid,代码行数:37,代码来源:MainActivity.java

示例12: 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();
}
 
开发者ID:RCasatta,项目名称:EternityWallAndroid,代码行数:33,代码来源:DetailActivity.java

示例13: onCreateView

import com.joanzapata.iconify.Iconify; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    //Pongo los iconos para los TextView
    Iconify.with(new FontAwesomeModule());
    View inflatedView =inflater.inflate(R.layout.fragment_usuario, container, false);

    TextView nombreCompleto = (TextView) inflatedView.findViewById(R.id.nombre_completo_usuario);
    TextView status = (TextView) inflatedView.findViewById(R.id.status_usuario);
    TextView web = (TextView) inflatedView.findViewById(R.id.web_usuario);
    TextView biografia = (TextView) inflatedView.findViewById(R.id.biografia_usuario);
    ImageView verficado =(ImageView) inflatedView.findViewById(R.id.verificado);
    TagCloudLinkView areasInteres = (TagCloudLinkView) inflatedView.findViewById(R.id.areas_interes_usuario);
    TagCloudLinkView especialidades = (TagCloudLinkView) inflatedView.findViewById(R.id.especialidades_usuario);
    RecyclerView redesSociales =(RecyclerView) inflatedView.findViewById(R.id.redesSociales);

    //Establezco el recyclerview con las redes sociales
    LinearLayoutManager llm = new LinearLayoutManager(getContext());
    llm.setOrientation(LinearLayoutManager.HORIZONTAL);
    redesSociales.setLayoutManager(llm);
    redesSociales.setAdapter(new AdapterRedesSociales(getContext(),usuario.getMisRedesSociales()));

    //Relleno los campos del usuario
    if(usuario.getApellidos()!=null)
        nombreCompleto.setText(usuario.getNombre()+" "+usuario.getApellidos());
    else
        nombreCompleto.setText(usuario.getNombre());
    status.setText(usuario.getMiStatus().getNombre());

    if(usuario.isVerificado())
        verficado.setVisibility(View.VISIBLE);
    else
        verficado.setVisibility(View.GONE);

    if(usuario.getWeb()!=null && usuario.getWeb().compareTo("")!=0)
        web.setText(usuario.getWeb());
    else
    {
        web.setVisibility(View.GONE);
        inflatedView.findViewById(R.id.text_web).setVisibility(View.GONE);
    }

    if(usuario.getBiografia()!=null && usuario.getBiografia().compareTo("")!=0)
        biografia.setText(usuario.getBiografia());
    else
    {
        biografia.setVisibility(View.GONE);
        inflatedView.findViewById(R.id.text_biografia).setVisibility(View.GONE);
    }
    if(usuario.getMisEspecialidades().size()>0){
    for (Especialidad e : usuario.getMisEspecialidades()) {
        especialidades.add(new Tag(e.getId(), e.getNombre()));
    }
    }else {
        especialidades.setVisibility(View.GONE);
        inflatedView.findViewById(R.id.text_especialidades).setVisibility(View.GONE);
    }
    if(usuario.getMisAreasInteres().size()>0){
        for (Area a : usuario.getMisAreasInteres()) {
            areasInteres.add(new Tag(a.getId(), a.getNombre()));
        }
    }else {
        areasInteres.setVisibility(View.GONE);
        inflatedView.findViewById(R.id.text_areas_interes).setVisibility(View.GONE);
    }

    return inflatedView;
}
 
开发者ID:nen155,项目名称:TFG-SmartU-La-red-social,代码行数:69,代码来源:FragmentUsuario.java

示例14: apply

import com.joanzapata.iconify.Iconify; //导入方法依赖的package包/类
public static void apply(){
    Iconify.with(new FontAwesomeModule());
}
 
开发者ID:marckregio,项目名称:maklib,代码行数:4,代码来源:FontAwesome.java

示例15: onCreate

import com.joanzapata.iconify.Iconify; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    Iconify.with(new MaterialModule());
}
 
开发者ID:AlbinoDrought,项目名称:party-reader,代码行数:6,代码来源:Application.java


注:本文中的com.joanzapata.iconify.Iconify.with方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。