mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-29 04:37:58 +03:00
TextView: implement setTextColor
also uncomment Resources.getCachedColorStateList
This commit is contained in:
parent
1e47824a79
commit
897a1e68a4
4 changed files with 31 additions and 5 deletions
|
@ -71,8 +71,13 @@ public class TextView extends View {
|
|||
public native final void native_setText(String text);
|
||||
public native void setTextSize(float size);
|
||||
|
||||
public void setTextColor(int color) {}
|
||||
public void setTextColor(ColorStateList colors) {}
|
||||
public native final void native_setTextColor(int color);
|
||||
public void setTextColor(int color) {
|
||||
native_setTextColor(color);
|
||||
}
|
||||
public void setTextColor(ColorStateList colors) {
|
||||
setTextColor(colors.getDefaultColor()); // TODO: do this properly
|
||||
}
|
||||
public void setTextSize(int unit, float size) {}
|
||||
public void setTypeface(Typeface tf, int style) {}
|
||||
public void setTypeface(Typeface tf) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue