Questions tagged [imageview]

Android widget that displays an arbitrary image or drawable, such as an icon.

9865 questions
2
votes
1 answer

android: TextView text color based on image;

I've a TextView on top of an ImageView. The image is loaded from server. Image may have light/dark areas. So I want to change the text color according to the image. So I tried color palatte…
Drunken Daddy
  • 7,326
  • 14
  • 70
  • 104
2
votes
7 answers

Play video via Glide

I want to play video via Glide by load image from URL to image view. , I try to refresh the image by calling to the same URL with the following code: Glide.with(context) .load(imageUrl) .apply(RequestOptions.skipMemoryCacheOf(true)) …
Moti
  • 462
  • 2
  • 6
  • 18
2
votes
2 answers

Icons not showing in Image View

I am trying to show the items into Recycler View in Grid Layout Manager. My list item xml file is
2
votes
0 answers

Get RGB pixel value on mouse click event on ImageView

I am displaying the image in ImageView by preserving aspect ratio of image. I want to pick the color of pixel whenever user clicks on one. Here is what I am doing right now: @FXML private ImageView chosenImage; Color color =…
Hashir Baig
  • 2,162
  • 15
  • 23
2
votes
1 answer
2
votes
2 answers

android - How to simulate button pressed by greying out an ImageView?

I want to create a control panel at the bottom of my screen that looks something like this. Here is the image And I want to simulate button press by having the clicked on item be blacked, and everything that isn't clicked be greyed out. As shown…
Chao Li
  • 391
  • 1
  • 2
  • 13
2
votes
1 answer

How to fit an ImageView to a GridPane child node

I'm using SceneBuilder to create the View of my program. I need to have images inside GridPane nodes (cells), but the problem is that they should be fitted to the cell. In other words, as soon as I resize the application window, the gridPade…
Luca
  • 21
  • 2
2
votes
2 answers

Animate image along path on Android?

Possible Duplicate: Android, move bitmap along a path? Is there a way to animate an ImageView's position along a path on the Android as with a CGPath on the iPhone? I have scoured the web for a solution to this, but no one has even seemed to ask…
Jacob
  • 926
  • 1
  • 14
  • 25
2
votes
3 answers

ImageView bitmap scale dimensions

I have a Bitmap that is larger than the ImageView that I'm putting it in. I have the ScaleType set to center_inside. How do I get the dimensions of the scaled down image?
Jay
  • 323
  • 1
  • 3
  • 13
2
votes
0 answers

Android: returned value of getX() and getY() when the ImageView is rotated

I have a FrameLayout for example like this:
TJ1
  • 7,578
  • 19
  • 76
  • 119
2
votes
2 answers

Picasso 2.71828 load uri issue

See below codes Picasso.get().load(crop_image_uri.toString()) .placeholder(R.drawable.header_img).into(app_bar_image); It will not load image, but if using below code app_bar_image.setImageURI(crop_image_uri); it will be fine and load image…
Leon
  • 307
  • 3
  • 16
2
votes
0 answers

Android: Animate a View to move up based on value

I have a CollapsingToolbarLayout and AppBarLayout and I have computed the percentage of how much the user scrolls and perform certain animations by this code: appBarLayout.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() { …
Dale Julian
  • 1,560
  • 18
  • 35
2
votes
0 answers

How should I set the scaleType of an ImageView, when I use Glide

I use Glide for image loading. Now I want to set the scaleType of an image to centerCrop. There are 2 ways of which I know of doing it: 1. By setting the scaleType attribute of the ImageView to centerCrop in the layout 2. By using Glide calling…
Locdoc01
  • 723
  • 1
  • 5
  • 19
2
votes
1 answer

javafx imageview heightProperty binding don't work

i am facing problem to developed a demo JavaFX program for image viewing as a newbie. here i have an ImageView in BorderPane center position which is wrapped with a StackPane and VBox. where StackPane is always grow with VBox and i bind ImageView…
Rhidoy
  • 123
  • 1
  • 12
2
votes
2 answers

Remove space at the top of a UIScollView in Swift

I have created a ScrollView and a ImageView: let scrollView: UIScrollView = { let scroll = UIScrollView() scroll.backgroundColor = UIColor.red scroll.contentSize.height = 1234 scroll.translatesAutoresizingMaskIntoConstraints = false …
Nick89
  • 2,948
  • 10
  • 31
  • 50