Cardview Width Percent

Is both for parent cardview?

Yes.

First tell me what you are trying to do.

A progress bar with increasing value or fixed value?

I want to increase value. But for testing i doing with fixed value. Value reading from database and converting in percentage…

For increasing value

For fixed value

Remember your 60% width is 100% progress.
Convert your progress for 60% width

Use math blocks for this.

Can you show me blocks? I am beginner

Really? :grin::joy:

Send your aia.

Statics is correct. But not learnt any logics​:grinning:

Delete your aia.
I dont know where to attach that block.
I will tell you do it in your project.

How much progress you want to show?

You have used wrong block.

Use width percent block

50% in yello card view

Set width to 30% from blocks

And also

Any change in block? is it fixed by changing to set width percent instead of width?

Only width block is for width in pixels and width percent block is for width in percentage.

You have to use width in percent block in both cardview.

Yes. Just try it.

Tried. It also not working. Then percentage will be 300? :thinking:

Show whats u have made changes and result.

Then percentage will be 300? :thinking:

No. 30%

You said that you want to show 50% progress.

So your default width is 60% that means 60% width is 100% progress. Then 30% width will be 50% progress.

But it shows 30% of screen.

First you clear that what you want to show and when to show?

There are 2 cardviews. Parent and child(yellow ). I have set width pertcentage of parent cardview as 60%. And I want to set width percentage of child cardview as 50% of parent cardview

Then according to the logic, your child card view width will be 30%.

Then why it is not working.

Show me the results.