Saturday, July 16, 2022

[FIXED] How to find a specific warning in the whole project

Issue

Is there a way to search a specific warning in the whole project?

e.g. I have this warning in one of my LinearLayouts:

Set android:baselineAligned="false" on this element for better performance

and I want to check if there are any similar warnings in other LinearLayouts in my XMLs. I know about Analyze -> Inspect Code but it doesn't help me in this situation and in this kind of problem.

How can I find them?


Solution

There is no filters but you can select custom scope in your case is xml folder as file[app]:src/main/res/layout/*

Or you can Run Inspection by Name ... and this should be -> Missing baselineAligned attribute



Answered By - Stanislav Bondar
Answer Checked By - David Marino (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.