mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-02 04:07:42 +08:00
fix textview's properties
This commit is contained in:
parent
0f5b812e1d
commit
50023ae212
@ -278,9 +278,10 @@ TextView::TextView(Context*ctx,const AttributeSet& attrs)
|
||||
TextAppearanceAttributes attributes;
|
||||
const std::string appearance=attrs.getString("textAppearance");
|
||||
if(appearance.empty()==false){
|
||||
AttributeSet tmp =attrs;
|
||||
AttributeSet attrs2=ctx->obtainStyledAttributes(appearance);
|
||||
attrs2.inherit(attrs);
|
||||
attributes.readTextAppearance(ctx,attrs2);
|
||||
tmp.inherit(attrs2);
|
||||
attributes.readTextAppearance(ctx,tmp);
|
||||
}else{
|
||||
attributes.readTextAppearance(ctx,attrs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user