Skip to content
This repository has been archived by the owner. It is now read-only.

Support ConstraintLayout in Anko #210

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

Support ConstraintLayout in Anko #210

yanex opened this issue Jun 14, 2016 · 14 comments

Comments

@yanex
Copy link
Member

@yanex yanex commented Jun 14, 2016

No description provided.

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

@seaskyways seaskyways commented Feb 9, 2017

What is the progress of this ?

@rostopira
Copy link

@rostopira rostopira commented 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

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

@guoyingtao guoyingtao commented Jun 29, 2017

I want to know the progress too.

@Lakedaemon
Copy link

@Lakedaemon Lakedaemon commented 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 ?

@vasiliicuhar
Copy link

@vasiliicuhar vasiliicuhar 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
Copy link

@GrzegorzDyrda GrzegorzDyrda commented Jul 28, 2017

Any update on this?

@vasiliicuhar
Copy link

@vasiliicuhar vasiliicuhar commented Jul 28, 2017

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
Signed-off-by: Peter Leibiger <kuhnroyal@gmail.com>
@kuhnroyal
Copy link
Contributor

@kuhnroyal kuhnroyal commented Oct 23, 2017

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

@spkingr
Copy link

@spkingr 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
Copy link
Contributor

@kuhnroyal 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
Copy link

@spkingr spkingr commented Oct 31, 2017

@kuhnroyal I will try, thank you!

@Antimonit
Copy link

@Antimonit Antimonit commented 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.

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

@kirillkh kirillkh commented Jan 2, 2018

@4u7 Kudos for making this happen!

@kuhnroyal
Copy link
Contributor

@kuhnroyal 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.