544
Views
8
Comments
Solved
how do i add effect when list are clicked
Question

hi i'm Deddy

i use outsytems to creating android mobile. i got screen and list inside it. i want add effect like colour changed when the list clicked. i've tried on forum : https://www.outsystems.com/forums/discussion/42762/is-there-anyway-to-disable-the-list-item-on-clicked-visual-effect/

but it not work for my app


how do i solved it ?

regards

2023-03-09 07-10-59
Vipasha Sharma
Solution

Hi Deddy,

Following are the steps that I've performed:

1. Enclose the list item inside the container, use "Style" extend property of the container (as shown below)

2. Use a flag to change the color of the container

3. Assign the value of that flag inside the action which is used for the link

Hope this will help you

Regards,

Vipasha

2020-07-29 19-08-40
Sanjay Kumar Sahu

Hi Deddy,


This is correct way to write or override CSS but if it is not working properly means probably you are overriding wrong CSS class, so my suggestion will be to first find out the correct CSS class in browser by using inspect element feature then overrode that class like above. particularly for list item there is a class 'list-item' which is used to display list item but it is not used for animation I guess.

Thanks,

Sanjay

2019-04-02 11-48-16
Martin Rozeboom

Hello Deddy,


As I see it now, you use a transpara\ent color. Therefor it won't work for you. Try to change "transparent" in the color you want. 

UserImage.jpg
deddy effendi

Martin Rozeboom wrote:

Hello Deddy,


As I see it now, you use a transpara\ent color. Therefor it won't work for you. Try to change "transparent" in the color you want. 

 hi martin

i changed into blue color, but it still wont work.

 

is there any way to solve it ?


Regards


Deddy

2020-07-29 19-08-40
Sanjay Kumar Sahu

Just now read that post, You shall give a try to this CSS:

.scale-animation {     
    background-color: transparent !important;
    visibility: hidden;
}
UserImage.jpg
deddy effendi

Sanjay Kumar Sahu wrote:

Just now read that post, You shall give a try to this CSS:

.scale-animation {     
    background-color: transparent !important;
    visibility: hidden;
}

 hi sanjay

i tried that css, but it wont work either when i run it.

 is there any solution ?


regards


Deddy Effendi

2020-07-29 19-08-40
Sanjay Kumar Sahu

Hi Deddy,


You shall go with my first suggestion to find out exact CSS class to be overridden as it is difficult for us to understand which css class is being used there. There is also a possibility that your CSS may be overwritten again by any other CSS, this can also be verified only in inspect element feature in browser.


Thanks,

Sanjay

2023-03-09 07-10-59
Vipasha Sharma

Hi Deddy 

Please refer the attached OML

Hope this will help you

Regards,

Vipasha

TestUI.oml
2023-03-09 07-10-59
Vipasha Sharma
Solution

Hi Deddy,

Following are the steps that I've performed:

1. Enclose the list item inside the container, use "Style" extend property of the container (as shown below)

2. Use a flag to change the color of the container

3. Assign the value of that flag inside the action which is used for the link

Hope this will help you

Regards,

Vipasha

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.