Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

View not showing on samsung phones #44

Open
LukasAnda opened this issue Dec 31, 2018 · 3 comments
Open

View not showing on samsung phones #44

LukasAnda opened this issue Dec 31, 2018 · 3 comments

Comments

@LukasAnda
Copy link

LukasAnda commented Dec 31, 2018

Hello, I am trying to use your library to draw a simple path. Here is my vector:

<path
    android:name="path_outer"
    android:fillAlpha="0"
    android:fillColor="#00000000"
    android:fillType="evenOdd"
    android:pathData="M 6.025 16.311 C 6.748 16.988 7.511 17.713 8.281 18.496 L 8.281 18.5 C 8.282 18.499 8.282 18.499 8.283 18.498 C 8.283 18.499 8.284 18.499 8.285 18.5 L 8.285 18.496 C 11.138 15.598 13.869 13.494 14.957 11.702 C 18.104 6.511 14.144 0.503 8.285 0.5 L 8.285 0.5 C 8.284 0.5 8.283 0.5 8.283 0.5 C 8.282 0.5 8.282 0.5 8.281 0.5 L 8.281 0.5 C 2.423 0.503 -1.537 6.511 1.61 11.701 C 2.144 12.581 3.075 13.537 4.222 14.625"
    android:strokeWidth="1"
    android:strokeAlpha="0.2"
    android:strokeColor="#ffffff"
    android:strokeLineCap="round"
    android:strokeLineJoin="round" />
<path
    android:name="path_middle"
    android:fillColor="#00000000"
    android:pathData="M 12.301 6.847 C 12.433 7.256 12.503 7.69 12.503 8.143 C 12.503 10.472 10.615 12.363 8.285 12.363 C 5.955 12.363 4.066 10.472 4.066 8.143 C 4.066 5.813 5.955 3.923 8.285 3.923 C 9.568 3.923 10.718 4.497 11.492 5.401"
    android:strokeWidth="1"
    android:strokeAlpha="0.2"
    android:strokeColor="#f0f0f0"
    android:strokeLineCap="round"
    android:strokeLineJoin="round" />
<path
    android:name="path_inner"
    android:fillColor="#00000000"
    android:pathData="M 9.833 8.143 C 9.833 8.415 9.761 8.682 9.625 8.917 C 9.49 9.153 9.294 9.349 9.059 9.484 C 8.823 9.62 8.556 9.692 8.284 9.692 C 8.012 9.692 7.745 9.62 7.51 9.484 C 7.274 9.349 7.078 9.153 6.943 8.917 C 6.807 8.682 6.735 8.415 6.735 8.143 C 6.735 7.732 6.898 7.338 7.189 7.048 C 7.479 6.757 7.873 6.594 8.284 6.594 C 8.695 6.594 9.089 6.757 9.379 7.048 C 9.67 7.338 9.833 7.732 9.833 8.143 Z"
    android:strokeWidth="1"
    android:strokeAlpha="0.2"
    android:strokeColor="#f0f0f0"
    android:strokeLineCap="round"
    android:strokeLineJoin="round" />

<path
    android:name="path_outer"
    android:fillAlpha="0"
    android:fillColor="#00000000"
    android:fillType="evenOdd"
    android:pathData="M 6.025 16.311 C 6.748 16.988 7.511 17.713 8.281 18.496 L 8.281 18.5 C 8.282 18.499 8.282 18.499 8.283 18.498 C 8.283 18.499 8.284 18.499 8.285 18.5 L 8.285 18.496 C 11.138 15.598 13.869 13.494 14.957 11.702 C 18.104 6.511 14.144 0.503 8.285 0.5 L 8.285 0.5 C 8.284 0.5 8.283 0.5 8.283 0.5 C 8.282 0.5 8.282 0.5 8.281 0.5 L 8.281 0.5 C 2.423 0.503 -1.537 6.511 1.61 11.701 C 2.144 12.581 3.075 13.537 4.222 14.625"
    android:strokeWidth="1"
    android:strokeAlpha="0"
    android:strokeColor="#ffffff"
    android:strokeLineCap="round"
    android:strokeLineJoin="round"
    android:trimPathEnd="1" />
<path
    android:name="path_middle"
    android:fillColor="#00000000"
    android:pathData="M 12.301 6.847 C 12.433 7.256 12.503 7.69 12.503 8.143 C 12.503 10.472 10.615 12.363 8.285 12.363 C 5.955 12.363 4.066 10.472 4.066 8.143 C 4.066 5.813 5.955 3.923 8.285 3.923 C 9.568 3.923 10.718 4.497 11.492 5.401"
    android:strokeWidth="1"
    android:strokeAlpha="0"
    android:strokeColor="#f0f0f0"
    android:strokeLineCap="round"
    android:strokeLineJoin="round"
    android:trimPathEnd="1" />
<path
    android:name="path_inner"
    android:fillColor="#00000000"
    android:pathData="M 9.833 8.143 C 9.833 8.415 9.761 8.682 9.625 8.917 C 9.49 9.153 9.294 9.349 9.059 9.484 C 8.823 9.62 8.556 9.692 8.284 9.692 C 8.012 9.692 7.745 9.62 7.51 9.484 C 7.274 9.349 7.078 9.153 6.943 8.917 C 6.807 8.682 6.735 8.415 6.735 8.143 C 6.735 7.732 6.898 7.338 7.189 7.048 C 7.479 6.757 7.873 6.594 8.284 6.594 C 8.695 6.594 9.089 6.757 9.379 7.048 C 9.67 7.338 9.833 7.732 9.833 8.143 Z"
    android:strokeWidth="1"
    android:strokeAlpha="0"
    android:strokeColor="#f0f0f0"
    android:strokeLineCap="round"
    android:strokeLineJoin="round"
    android:trimPathEnd="1" />

everything works fine, except when using on samsung phones. I've tried Samsung Galaxy A5 2016 and Samsung Galaxy Note 9, no image

@LukasAnda
Copy link
Author

I found that the issue is Hardware acceleration disabeled, for some reason, some phones tend to not display this view with hardware acceleration disabeled

@goforbg
Copy link

goforbg commented Aug 1, 2020

Woah! Can you confirm if it still exists or if there is a fix? I'm trying to roll out my app to the playstore and this part is integral for me!

@alefaga
Copy link

alefaga commented Mar 22, 2021

In my case, I had to disable hardware acceleration for the app to work on a motorola G6 play cell phone.

In the G7 and G7 play models it works well with the acceleration activated!.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants