Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot put the Image parent inside a Coordinator layout. #2

Open
iarghadip opened this issue Oct 19, 2020 · 2 comments
Open

Cannot put the Image parent inside a Coordinator layout. #2

iarghadip opened this issue Oct 19, 2020 · 2 comments

Comments

@iarghadip
Copy link

I want to make the image parent (card view) to the center of the app bar, so outside of the app bar I'm creating a coordinator layout the same height as the app bar, but when I do that the animation doesn't work.

@miladsalimiiii
Copy link
Owner

miladsalimiiii commented Oct 19, 2020

Please run the project and see it then for your xml use fragment_transaction.xml file .
As card views use in fragment_transaction.xml file you can set it in center.

@iarghadip
Copy link
Author

Well, it's not about making it center, suppose I have a text view under the image so in that case, I wrap them both with a parent and then make the parent center, but the thing is if I add a parent, the class stops working.

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

No branches or pull requests

2 participants