Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

5 votes
3 answers
15k views

If a binding adapter provides the getter, check that the adapter is annotated correctly and that the parameter type matches

I have a little problem with databindig in Android. I want to set an ImageView's visibility through databindig, and I think I have done everything that can be found on Android blogs in connection with ...
pedro's user avatar
  • 83
0 votes
2 answers
402 views

Making Imageview disappear After Animation

I have a method that creates an animation for an ImageView object with specified parameters: public void animateMove(float x, float y, int milsecs) { float origX = view.getX(); float origY = ...
questions's user avatar
  • 473
1 vote
2 answers
5k views

setVisibility(View.VISIBLE) to imageView is not working

I have set the visibility of imageView as gone by default. Now, I want to make it visible when the the below(my code) condition goes true.I have checked that the condition goes true and my code ...
mdadil2019's user avatar
1 vote
2 answers
685 views

Android Studio, setting text visibility based on int value from another activity

I'm trying to set TextView visibility in one activity based on an integer value from another activity. Ideally, I am trying to set the value of imgID as an int, and depending on the integer value, ...
Matt's user avatar
  • 81
3 votes
2 answers
3k views

Change an icon in an Android ListView entry when pressed

I am currently trying to implement a ListView in Android that features rows with an icon and a describing text. When the user presses a row, the background color should change and the icon should be ...
gtRfnkN's user avatar
  • 489
2 votes
0 answers
6k views

Android - why setVisibility doesn't work?

I have a ToggleButton which when pressed, it hides/shows an ImageView: public void onClick(View v) { View view = (View) v.getTag(); ImageView messageStatusImageView = (ImageView) view....
Jorge Gil's user avatar
  • 4,325
1 vote
1 answer
1k views

How to hide part of Layout on tap / click

How do I achieve a result similar to one you see in the Facebook app when viewing an Image in fullscreen? (See attached images) I make use of the PhotoView Library by Chris Banes for multi-touch zoom ...
SSL's user avatar
  • 278
1 vote
1 answer
7k views

Android: Changing Visibility of an item inside all listview rows

I have a ListView in my application which can, after user requests it, be re-arrangeable via the drag of an imageview at the start of each listview's row. I present the user with the listview in a ...
daniel_c05's user avatar
  • 11.5k
2 votes
3 answers
5k views

Android - Make ImageView Visible When ListItem is selected

I have a listview and each item has a title, some info, and a couple ImageViews I'm using as edit/delete buttons. I don't want to show these "buttons" unless the user selects the row. I can make the ...
Jeff's user avatar
  • 43