The main activity is launched with a layout that includes a EditText and a custom SurfaceView. Inside the SurfaceView class, how can I access the global EditText object? For example, if I want to set EditText_object=VISIBLE?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should probably just hand the TextView to the SurfaceView in code. In other words, a SurfaceView is something inside the view hierarchy and unrelated to the text view; there is some larger owner of the entire hierarchy (often an activity) that should be responsible for managing the interaction between them.