Hi guys,
I will try to explain my issue as simply as possible...
I'm using a CustomView called "TopPanel" as a... TopPanel!
Inside I have 6 Labels and 1 button.
5 of these labels have the BasePanel as parent, and 2 of them have "click" events set.
I'm also using a second CustomView, called "InputPanel" as a... InputPanel!
It starts as not visible, and when one of the clickable labels is clicked, it takes a snapshot of the activity (it's Parent) and blurs it, using the code from the blur snippet.
My issue is, one of these clickable labels, lets call it Label14, when clicked, resizes itself to the same size as the other label, Label15, BUT if Label15 is the one clicked, all is good, sizes remain unchanged!
I have searched the code up and down, left and right, and I can't figure why!
Another "question" is, why does the blur snippet need the log statement to work!?
(if i take it out, it doesn't)
To help you guys help me, I exported my current project as is, that will show you what I mean.
Thank you in advance!
[Solved]
I was using the same colordrawable to set the aspect of those labels, and by doing so, they kind of inherited from each other, altering the way they looked.
Creating individual colordrawables solved my issue!
I will try to explain my issue as simply as possible...
I'm using a CustomView called "TopPanel" as a... TopPanel!
Inside I have 6 Labels and 1 button.
5 of these labels have the BasePanel as parent, and 2 of them have "click" events set.
I'm also using a second CustomView, called "InputPanel" as a... InputPanel!
It starts as not visible, and when one of the clickable labels is clicked, it takes a snapshot of the activity (it's Parent) and blurs it, using the code from the blur snippet.
My issue is, one of these clickable labels, lets call it Label14, when clicked, resizes itself to the same size as the other label, Label15, BUT if Label15 is the one clicked, all is good, sizes remain unchanged!
I have searched the code up and down, left and right, and I can't figure why!
Another "question" is, why does the blur snippet need the log statement to work!?
(if i take it out, it doesn't)
To help you guys help me, I exported my current project as is, that will show you what I mean.
Thank you in advance!
[Solved]
I was using the same colordrawable to set the aspect of those labels, and by doing so, they kind of inherited from each other, altering the way they looked.
Creating individual colordrawables solved my issue!
Attachments
Last edited: