Android get layout name where string is used -


is there way layout string used. example: "submit" string used in registration layout. how can know it?

you've asked half question i'm making assumptions

  • that talking in code , ide - not runtime
  • that correctly store strings in strings.xml
  • that using android studio (and windows)

open strings.xml, click key (name) part of resource , press alt + f7 find usages.

alternatively if need full text search press ctrl + shift + f7 search whole project find in path

edit address comment

to find view "submit" text using espresso can use either of these lines

onview(withtext("submit")); onview(withtext(r.string.submit)); 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -