question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Image inside CardView gets grayscaled

See original GitHub issue

Source

<Card:CardView class="card">
    <GridLayout rows="auto" columns="auto,*" class="convos-list-wrapper" tap="{{ onItemTap }}">
        <Image row="0" col="0" imageSource="{{ item.image }}" />
        <StackLayout row="0" col="1" orientation="vertical">
            <Label class="h4" text="{{ item.name }}" />
        </StackLayout>
    </GridLayout>
</Card:CardView>

WITH CardView

WITH CardView

WITHOUT CardView

WITH CardView

Info - Core (not ng2)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Component        β”‚ Current version            β”‚ Latest version β”‚ Information β”‚
β”‚ nativescript     β”‚ 2.4.0-2016-09-18-6687      β”‚ 2.3.0          β”‚ Up to date  β”‚
β”‚ tns-core-modules β”‚ 2.3.0                      β”‚ 2.3.0          β”‚ Up to date  β”‚
β”‚ tns-android      β”‚ 2.4.0-next-2016-09-29-1186 β”‚ 2.3.0          β”‚ Up to date  β”‚
β”‚ tns-ios          β”‚ 2.4.0-2016-9-28-1          β”‚ 2.3.0          β”‚ Up to date  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Nothing comes up in the adb logcat either. I wish there was more info I could provide ya 😞

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
bradmartincommented, Dec 8, 2016

I’ve used this today with an image inside the cardview and it’s not being distorted in any way. Closing for now. If still and issue please let me know. Thanks!

0reactions
roblav96commented, Dec 8, 2016

@bradmartin sorry, forgot to check :X

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Cards View Gray Color - Stack Overflow
My problem is that when i try to change the radius of the cardView i get this in the Image below: any help...
Read more >
Gallery view – Notion Help Center
Click on Gallery in the grayscale menu provided. ... In galleries, properties add important context to the images displayed. You can add as...
Read more >
Jetpack Compose Part 2 How to create Card layout
Let's work on the profile picture composable first by editing the ProfilePictureComposable function and adding an Image composable inside. Image ...
Read more >
How to set an imageview in the corner of card view
Use two RelativeLayout to achieve. First is for whole layout, and the second is for CardView.
Read more >
Convert Image to Black and White in Android Studio - YouTube
Video shows you how to get colored image from resources and convert it to black and white in Android.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found