title: How to get resource identifier of styles.xml file?
body: <p>I want resource id of style file at runtime because I can able to access current package of application</p>
  
  <p>here is styles.xml file</p>
  
  <pre><code>&lt;style name="CustomDigitsTheme" parent="android:Theme.Material.Light"&gt;
      &lt;item name="android:textColorPrimary"&gt;@android:color/black&lt;/item&gt;
      &lt;item name="android:textColorSecondary"&gt;@android:color/darker_gray&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@android:color/white&lt;/item&gt;
      &lt;item name="android:textColorLink"&gt;#ff398622&lt;/item&gt;
      &lt;item name="android:colorAccent"&gt;#ff398622&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>and fro with this code snippet I am trying to fetch my customtheme</p>
  
  <pre><code>int styleId = getActivity().getResources().getIdentifier("CustomDigitsTheme", "styles",getActivity().getPackageName());
  </code></pre>
  
  <p>but it returns 0. So is there any other way to get style resource .</p>
  
  <p>I need runtime resource because I am making cordova plugin.</p>