Alexander Pavlov

Greenhorn
+ Follow
since Mar 30, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alexander Pavlov

I have fixed the problem. There was too much code in my OnTouchListener that I didn't need. Thanks for your help, Steve!

11 years ago
Thanks for your reply, Steve. I've added a call for OnTouchListener in my onCreate method right after button.SetOnClickListener. So that way if I touch anywhere on the LinearLayout, it should call "buttonOnTouchListener" and execute all the code in it. However, I still can't get the button to turn visible.

11 years ago
I've done everything that I was advised to do and this is my updated code:



However, the button still doesn't turn visible when I touch anywhere on the screen. I know the problem is somewhere in my OnTouchListener method but as I'm very new to programming I just can't figure out what it is.
11 years ago
I have a button that disappears 3 seconds after I press on it. I would like to make it visible again by touching the screen.



I am able to hide the button after 3 seconds but I cannot make it visible again.

I've asked the same question on another forum and got told that I need to get a reference to the parent container view, call setClickable(true) on it. Then, attach another click handler to that view, and in that click handler, call button.setVisibility(View.VISIBLE);

I am a bit struggling with this part and I'm not sure how I can implement it as I'm very new to Android.

Thank you.
11 years ago
I am developing an accessible android application where people would be using Explore by Touch and TalkBack accessibility services to use my application.

This is my Android XML code:

strings.xml

TextView displays the title "Forename" and EditText allows me to enter some details in the form field. The problem I have is that when I drag my finger across the screen by using Explore by Touch, TalkBack picks up the title of the TextView and announces it aloud as "Forename". I want the TextView to only display text and not provide any audible feedback.

I have set contentDescription to @null as you can see from the code above, but TalkBack still announces "Forename" when my finger is located over the TextView.

I have also tried setting contentDescription in my Java class:

However, I still get the same problem. Is there any other way to set contentDescription to null/empty and prevent TalkBack from announcing it aloud?
11 years ago