bundle

How to bundle Angular 2 component css?

落爺英雄遲暮 提交于 2019-12-25 08:17:53
问题 In my application for angular 1 I used to bundle all of the css in library.css and application.css . While this can be done with angular 2 the same way for ordinary css, there is a new feature that allows a "component css". As far as I can see Angular just downloads the css file and then processes it to add some id's to not interfere with each other. Now if I just bundle all of these css'es Angular just won't be able to find them. Is it possible at all to do bundling of component css? Perhaps

How to access custom arraylist in fragment

南楼画角 提交于 2019-12-25 08:03:15
问题 I have tablayout in my app,and i want to set recyclerview in tablayout fragment.if i set static String array it is working fine.but i dont know how can i access custom arraylist in fragment to set data in my recyclerview.following is my code can any one help me with that public class CategoriesActivity extends AppCompatActivity{ private Header myview; private ArrayList<SubcategoryModel> subct; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

How do I pass data between activities when I press back button in Android? [duplicate]

为君一笑 提交于 2019-12-25 07:48:35
问题 This question already has answers here : How to pass data from 2nd activity to 1st activity when pressed back? - android (9 answers) Closed 4 years ago . I'm trying to send data between activities using: on Activity 2 Bundle bloc = new Bundle(); bloc.putString("DataLoc", et1.getText().toString()); Intent intent = new Intent(this, Activity2.class); intent.putExtras(bloc); on Activity 1 Intent iinf = getIntent(); Bundle binf = iinf.getExtras(); if (binf != null) { String data = binf.getString(

Android_ How can I send a Bundle to another activity?

雨燕双飞 提交于 2019-12-25 07:39:53
问题 I am trying to send a bundle from one activity to another. When I load the bundle in the recieving activity all the information seems to be null. Here is some code: BaseActivity.java private final DrawerLayout.DrawerListener mDrawerListener = new DrawerLayout.DrawerListener() { @Override public void onDrawerSlide(View drawerView, float slideOffset) { if (mDrawerToggle != null) mDrawerToggle.onDrawerSlide(drawerView, slideOffset); } @Override public void onDrawerOpened(View drawerView) { if

Error after converting org.pbjar library to OSGi bundle

扶醉桌前 提交于 2019-12-25 07:09:03
问题 I'm trying to convert org.pbjar.jxlayer library to an OSGi bundle, I already succeeded in that but when I try to install it in Karaf container, the container claims that there is a missing requirement needed by this bundle: Unable to resolve 312.0: missing requirement [312.0] osgi.wiring.package; (osgi.wiring.package=com.sun.java.swing) I also put the javax.swing in the bundle import directive but the problem persists I changed the version of JDK (1.5, 1.6, 1.7) but no luck Can you help me

Load ResourceBundle from classpath

此生再无相见时 提交于 2019-12-25 05:34:18
问题 I have two jar files. One of the jars needs to read language pack from another jar. Here is basic structure of both jars jar1 |--com.example.BundleLoader jar2 |--strings |--language.properties |--language_fr.properties Language pack is on the classpath. In order to read language packs by the BundleLoader I am trying to use ResourseBundle in conjunction with ClassLoader. This is how I am attempting to do that <--snipet--> private ResourceBundle englishStrings = null; private ResourceBundle

Bundle install error with “omniauth-oauth2”

三世轮回 提交于 2019-12-25 04:56:08
问题 Running bundle install I get the following error (full trace: http://pastebin.com/Vp4nHc2p): Bundler could not find compatible versions for gem "omniauth-oauth2": In Gemfile: omniauth-facebook (~> 1.2.0) ruby depends on omniauth-oauth2 (~> 1.0.0) ruby omniauth-github (~> 1.0.1) ruby depends on omniauth-oauth2 (1.1.1) To see my Gemfile: http://pastebin.com/vMcHDHa8 Any idea how to solve it? 回答1: Hi you probably need to install omniauth facebook and github versions which accept the same version

bundle cannot load such file bundler-1.17.1/exe/bundle

回眸只為那壹抹淺笑 提交于 2019-12-25 03:49:17
问题 I had a problem with FileUtils and I had to uninstall the gem. After did this, I did gem update --default and some gems have been updated. That fixed my problem with FileUtils but now, bundler is dead. If I try bundle info xxx I get this error: Traceback (most recent call last): 1: from /Users/robin/.gem/ruby/2.5.1/bin/bundle:23:in `<main>' /Users/robin/.gem/ruby/2.5.1/bin/bundle:23:in `load': cannot load such file -- /Users/robin/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe

How to install a Symfony 2.0 Bundle from Zip file

限于喜欢 提交于 2019-12-25 02:41:05
问题 I tried installing the FixturesBundle as described in http://symfony.com/doc/2.0/bundles/DoctrineFixturesBundle/index.html but my proxy wont let me out. So I went to https://github.com/doctrine/data-fixtures and download a zip from the latest commit. I unzipped into the vendor directory and renamed it to doctrine-fixures . I edited the autoload.php and AppKernel.php files as described in the tutorial. When I run: php app\console doctrine:fixtures:load I get the following message: PHP Fatal

bundle in fragment is null [duplicate]

给你一囗甜甜゛ 提交于 2019-12-24 19:26:08
问题 This question already has answers here : pass value from activity to fragment using bundle in tabbed activity (2 answers) Closed 18 days ago . I am trying to send data from MainActivity to SunFragment (the main fragment) as: MainActivity public class MainActivity extends AppCompatActivity { private FusedLocationProviderClient mFusedLocationClient; private static FragmentManager fragmentManager; // protected Location mLastLocation; private LocationRequest mLocationRequest; private