Can I save the state of the view when it is touched?
-
I want to save the state of a view when it is touched. For example when I touch a view and after that I touched the another view in an activity I should be able to change the color of both the textviews at once. For this I need to save the state of the view which is touched at first. Is it possible?
-
Answer:
What do you mean "save state"? For your purpose you need save only id of first view and get it later by calling findViewById(savedId).
Sohaib Rahman at Stack Overflow Visit the source
Related Q & A:
- How can I save an Icollection in an object?Best solution by Stack Overflow
- Where can I save the image?Best solution by Stack Overflow
- How can I save photo attachments to Yahoo! Photos in mail beta?Best solution by ph.answers.yahoo.com
- How can I save my computer desktop's background as an image/pic?Best solution by Yahoo! Answers
- How can I save money when I shopping at walmart?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.