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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -