Fixed
Status Update
Comments
al...@android.com <al...@android.com>
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #2
We are currently using AGP internal task types to flag memory-intensive tasks to enforce a reduced parallelism at execution time. I've raised this separately (with a lot more detail) as a feature request (
Description
Version used: 24.2.0
Theme used: Theme.Design
Devices/Android versions reproduced on: Sony Xperia Z1 Compact
Since TextView (as opposed to AppCompatTextView) does not support ColorStateLists with theme attribute references below API 23 the following code always fails:
TextInputLayout.java:561
mErrorView.setTextAppearance(getContext(), mErrorTextAppearance);
Caused by:
TextInputLayout.java:559
mErrorView = new TextView(getContext());
Suggested fix:
TextInputLayout.java:559
mErrorView = new AppCompatTextView(getContext());
---
Additional resources:
design_error.xml
<selector xmlns:android="
<item android:state_enabled="false" android:color="?android:attr/textColorTertiary"/>
<item android:color="?attr/textColorError"/>
</selector>
values.xml
<style name="TextAppearance.Design.Error" parent="TextAppearance.AppCompat.Caption">
<item name="errorTextAppearance">@style/TextAppearance.Design.Error</item>
...
</style>