Skip to content

how to support custom TextView  #81

@catfishuang

Description

@catfishuang

com.dianping.picasso.view.PicassoTextView
extend com.dianping.richtext.BaseRichTextView;
extend android.support.v7.widget.AppCompatTextView
extend android.widget.TextView

query("* marked:'a name'"), can not find the element

any way to support the custom TextView ? modify the WILDCARD branch ?

public static UIQueryAST uiQueryFromAst(CommonTree step) {
String stepType = UIQueryParser.tokenNames[step.getType()];
switch (step.getType()) {
case UIQueryParser.QUALIFIED_NAME:
return UIQueryASTClassName.fromQualifiedClassName(step.getText());
case UIQueryParser.NAME:
return UIQueryASTClassName.fromSimpleClassName(step.getText());
case UIQueryParser.WILDCARD:
return UIQueryASTClassName.fromQualifiedClassName("android.view.View");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions