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

Cassowary layout does not support rtl #4

Open
rammuralidhar opened this issue Oct 20, 2016 · 5 comments
Open

Cassowary layout does not support rtl #4

rammuralidhar opened this issue Oct 20, 2016 · 5 comments

Comments

@rammuralidhar
Copy link

Is there a easy way to support rtl..

@alexbirkett
Copy link
Owner

How would you like it to behave?

@rammuralidhar
Copy link
Author

It should be exactly mirror replica of the current layout.. Say you are creating constraint, a.left == 0.. Then b.right == 0. In normal case, a is placed at the left and b is at the right. When we switch to rtl, a should be at the right and b should be at the left.. In relative layout terms instead of using left and right, can we have start and end for the layout constraints.. Based on the language, it should adapt appropriately.

@yongsunCN
Copy link

@rammuralidhar Inside Node.java add leading and trailing properties to Node, then modify String getCanonicalName(String name) to map them to either left or right based on your localization.

@alexbirkett
Copy link
Owner

Thanks for input @yongsunCN

@alexbirkett
Copy link
Owner

This is definitely doable if somebody wants to send a pull request.

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

3 participants