Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XYPlot 与 AAPT2 #78

Open
alwaystest opened this issue Jun 4, 2018 · 0 comments
Open

XYPlot 与 AAPT2 #78

alwaystest opened this issue Jun 4, 2018 · 0 comments

Comments

@alwaystest
Copy link
Owner

XYPlot 与 AAPT2

标签(空格分隔): Android


XYPlot旧版不支持AAPT2的原因是AAPT2把AAPT没有转换的资源ID也转换了。导致XYPlot中获取资源对应值的方法失效。

AAPT

<com.androidplot.xy.XYPlot
    android:id="@ref/0x7f110189"
    android:layout_width="-1"
    android:layout_height="-1"
    androidPlot.backgroundPaint.color="@color/chart_background_color"
    androidPlot.borderPaint.color="@color/chart_background_color"
    androidPlot.domainLabel="@string/0xe"
    androidPlot.graphWidget.backgroundPaint.color="@color/chart_background_color"
    androidPlot.rangeLabel="@string/0xe"
    androidPlot.title="@string/0xe" />

AAPT2

<com.androidplot.xy.XYPlot
    android:id="@ref/0x7f0a0117"
    android:layout_width="-1"
    android:layout_height="-1"
    androidPlot.backgroundPaint.color="@ref/0x7f060044"
    androidPlot.borderPaint.color="@ref/0x7f060044"
    androidPlot.domainLabel="@string/0xc"
    androidPlot.graphWidget.backgroundPaint.color="@ref/0x7f060044"
    androidPlot.rangeLabel="@string/0xc"
    androidPlot.title="@string/0xc" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant