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

how to support custom TextView #81

Open
catfishuang opened this issue Sep 20, 2018 · 0 comments
Open

how to support custom TextView #81

catfishuang opened this issue Sep 20, 2018 · 0 comments

Comments

@catfishuang
Copy link

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");

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