Android: How to Declare Styleable in R.java?
<p>I'm trying to use this <code>ViewPager</code> <a href="https://github.com/astuetz/ViewPagerExtensions" rel="nofollow">extension</a>. This plugin helps me using <code>SwipeyTab</code>. I succeed to run example as a single application. So I want to integrate extension in to my application.Then I coppied the java files and changed package names, everything is fine. But I've got some errors on these lines: </p>

<pre><code>mTextColorCenter = a.getColor(R.styleable.ViewPagerExtensions_textColorSelected, mTextColorCenter);
mLineColorCenter = a.getColor(R.styleable.ViewPagerExtensions_lineColorSelected, mLineColorCenter);
mLineHeightSelected = a.getDimensionPixelSize(R.styleable.ViewPagerExtensions_lineHeightSelected, mLineHeightSelected);
</code></pre>

<p>Eclipse says: <code>Styleable cannot be resolved or is not a field</code>. Other lines which contains styleable also gives the same errors too. If I try to click solve this problem nothing changes.</p>

<p>When I have looked at extension's R.java file, I saw these lines:</p>

<pre><code>public static final class styleable {
    public static final int[] ViewPagerExtensions = {
        0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003,
        0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007,
        0x7f010008, 0x7f010009, 0x7f01000a
    };

    public static final int ViewPagerExtensions_dividerColor = 7;

    // there is more 
}
</code></pre>

<p>I know it's not possible to edit R.java. How could I define styleable in R.java for this extension? Any suggestions?</p>
