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

Support ConstraintLayout in Anko #210

Closed
yanex opened this Issue Jun 14, 2016 · 14 comments

Comments

Projects
None yet
@yanex
Contributor

yanex commented Jun 14, 2016

No description provided.

@yanex yanex added this to the Anko 0.9.1 milestone Jun 14, 2016

@seaskyways

This comment has been minimized.

Show comment
Hide comment
@seaskyways

seaskyways Feb 9, 2017

What is the progress of this ?

What is the progress of this ?

@rostopira

This comment has been minimized.

Show comment
Hide comment
@rostopira

rostopira Apr 1, 2017

Since PercentLayout is deprecated now, will ConstraintLayout be supported soon?

The support-percent module has been deprecated. Clients of this module should migrate to the new ConstraintLayout widget

https://developer.android.com/topic/libraries/support-library/revisions.html

Since PercentLayout is deprecated now, will ConstraintLayout be supported soon?

The support-percent module has been deprecated. Clients of this module should migrate to the new ConstraintLayout widget

https://developer.android.com/topic/libraries/support-library/revisions.html

@yanex yanex removed this from the Anko 0.9.1 milestone May 3, 2017

@guoyingtao

This comment has been minimized.

Show comment
Hide comment
@guoyingtao

guoyingtao Jun 29, 2017

I want to know the progress too.

I want to know the progress too.

@Lakedaemon

This comment has been minimized.

Show comment
Hide comment
@Lakedaemon

Lakedaemon Jul 1, 2017

I'm considering using anko for my next project, but this issue worries me.

At the moment, is it possible to embed a ConstraintLayout inflated through xml in a view built with anko ?
Are there trade off ?

I'm considering using anko for my next project, but this issue worries me.

At the moment, is it possible to embed a ConstraintLayout inflated through xml in a view built with anko ?
Are there trade off ?

@ngreduce

This comment has been minimized.

Show comment
Hide comment
@ngreduce

ngreduce Jul 1, 2017

yes, it should be possible to inflate. But from my little experience it is better to stick with standard layouts for now. Anko feels like is not complete in term of designer and different configurations. But you can mix both approaches at some extent.

Take a look at kotlin compiler android extensions.

ngreduce commented Jul 1, 2017

yes, it should be possible to inflate. But from my little experience it is better to stick with standard layouts for now. Anko feels like is not complete in term of designer and different configurations. But you can mix both approaches at some extent.

Take a look at kotlin compiler android extensions.

@GrzegorzDyrda

This comment has been minimized.

Show comment
Hide comment
@GrzegorzDyrda

GrzegorzDyrda Jul 28, 2017

Any update on this?

Any update on this?

@ngreduce

This comment has been minimized.

Show comment
Hide comment
@ngreduce

ngreduce Jul 28, 2017

I think project is almost dead. Maybe maintainer is busy on other tasks

I think project is almost dead. Maybe maintainer is busy on other tasks

kuhnroyal added a commit to kuhnroyal/anko that referenced this issue Oct 23, 2017

fix: #210 add ConstrainLayout support
Signed-off-by: Peter Leibiger <kuhnroyal@gmail.com>
@kuhnroyal

This comment has been minimized.

Show comment
Hide comment
@kuhnroyal

kuhnroyal Oct 23, 2017

Contributor

Added a PR, using this in a project. So check it out if you can.

Contributor

kuhnroyal commented Oct 23, 2017

Added a PR, using this in a project. So check it out if you can.

@spkingr

This comment has been minimized.

Show comment
Hide comment
@spkingr

spkingr Oct 30, 2017

@kuhnroyal Great job, so, how to get it added to my project? 'org.jetbrains.anko:anko-constraint-layout:0.10.2' does not work, thanks very much!

spkingr commented Oct 30, 2017

@kuhnroyal Great job, so, how to get it added to my project? 'org.jetbrains.anko:anko-constraint-layout:0.10.2' does not work, thanks very much!

@kuhnroyal

This comment has been minimized.

Show comment
Hide comment
@kuhnroyal

kuhnroyal Oct 30, 2017

Contributor

@spkingr At the moment you need to checkout my fork and build it yourself. I am not sure when and if this will get merged. But I am sure people testing it will help.

Contributor

kuhnroyal commented Oct 30, 2017

@spkingr At the moment you need to checkout my fork and build it yourself. I am not sure when and if this will get merged. But I am sure people testing it will help.

@spkingr

This comment has been minimized.

Show comment
Hide comment
@spkingr

spkingr Oct 31, 2017

@kuhnroyal I will try, thank you!

spkingr commented Oct 31, 2017

@kuhnroyal I will try, thank you!

@Antimonit

This comment has been minimized.

Show comment
Hide comment
@Antimonit

Antimonit Nov 3, 2017

Hi guys. I really liked using the constraint layout but also using Anko for building stuff. The two are not compatible with each other, so I decided to make a library ^_^

https://github.com/AckeeCZ/anko-constraint-layout

It is a bigger project than I originally intended. It adds custom DSL specifically made for use with constraint layout and other stuff like automatic generation of ids for views. Readme should be explanatory enough.
We use it in our company for new projects and so far everyone is happy with it. Hopefully, it will be useful for others as well.

Hi guys. I really liked using the constraint layout but also using Anko for building stuff. The two are not compatible with each other, so I decided to make a library ^_^

https://github.com/AckeeCZ/anko-constraint-layout

It is a bigger project than I originally intended. It adds custom DSL specifically made for use with constraint layout and other stuff like automatic generation of ids for views. Readme should be explanatory enough.
We use it in our company for new projects and so far everyone is happy with it. Hopefully, it will be useful for others as well.

@4u7 4u7 added this to the Anko 0.10.4 milestone Nov 22, 2017

@kirillkh

This comment has been minimized.

Show comment
Hide comment
@kirillkh

kirillkh Jan 2, 2018

@4u7 Kudos for making this happen!

kirillkh commented Jan 2, 2018

@4u7 Kudos for making this happen!

@kuhnroyal

This comment has been minimized.

Show comment
Hide comment
@kuhnroyal

kuhnroyal Jan 2, 2018

Contributor

Yes, I just replaced my code from the PR with the 0.10.4. Works like a charm!

Contributor

kuhnroyal commented Jan 2, 2018

Yes, I just replaced my code from the PR with the 0.10.4. Works like a charm!

@4u7 4u7 closed this Apr 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment