本文整理汇总了Java中com.joanzapata.iconify.Iconify类的典型用法代码示例。如果您正苦于以下问题:Java Iconify类的具体用法?Java Iconify怎么用?Java Iconify使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Iconify类属于com.joanzapata.iconify包,在下文中一共展示了Iconify类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
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());
}
开发者ID:vicky7230,项目名称:Paprika,代码行数:34,代码来源:PaprikaApplication.java
示例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();
}
开发者ID:zeevy,项目名称:grblcontroller,代码行数:30,代码来源:MainActivity.java
示例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));
}
}
}
开发者ID:remerber,项目名称:FastEc,代码行数:9,代码来源:Configurator.java
示例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);
}
}
开发者ID:CarlosTenorio,项目名称:vespapp-android,代码行数:29,代码来源:Vespapp.java
示例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());
}
开发者ID:CycloneAxe,项目名称:phphub-android,代码行数:14,代码来源:App.java
示例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);
}
开发者ID:codeforgreenville,项目名称:trolley-tracker-android-client,代码行数:10,代码来源:MyApplication.java
示例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"));
//}
}
开发者ID:RCasatta,项目名称:EternityWallAndroid,代码行数:37,代码来源:MainActivity.java
示例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();
}
开发者ID:RCasatta,项目名称:EternityWallAndroid,代码行数:33,代码来源:DetailActivity.java
示例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());
}
开发者ID:lwhiteley,项目名称:react-native-android-iconify,代码行数:11,代码来源:ReactIconifyPackage.java
示例16: initIcon
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
private void initIcon() {
Iconify
.with(new FontAwesomeModule())
.with(new EntypoModule())
.with(new TypiconsModule())
.with(new MaterialModule())
.with(new MaterialCommunityModule())
.with(new MeteoconsModule())
.with(new WeathericonsModule())
.with(new SimpleLineIconsModule())
.with(new IoniconsModule());
}
开发者ID:vihuela,项目名称:Lay-s,代码行数:13,代码来源:CommonApplication.java
示例17: onCreate
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Obtain the FirebaseAnalytics instance.
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
Iconify.with(new FontAwesomeModule()).with(new MaterialModule());
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
开发者ID:wcomartin,项目名称:PlexPy-Remote,代码行数:11,代码来源:AppBaseActivity.java
示例18: 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
示例19: apply
import com.joanzapata.iconify.Iconify; //导入依赖的package包/类
public static void apply(){
Iconify.with(new FontAwesomeModule());
}
开发者ID:marckregio,项目名称:maklib,代码行数:4,代码来源:FontAwesome.java
示例20: 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类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论