0

Im looking for something like this.

String mainActivityLayoutAsString = ReadResourceAsString(R.layout.activity_main)

Simple!

0

1 Answer 1

1

No. The layout files aren't kept as raw XML. They're preprocessed to a form easier to parse at runtime.

Sign up to request clarification or add additional context in comments.

3 Comments

it indeed only works for raw resources ...as the name might already suggest.
So there is no possible way to access it? at all?
@uzu Nope, its just not in there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.