Profile cover photo
Profile photo
Nicolas Roard
When I'm not working on Android, I enjoy taking pictures...
When I'm not working on Android, I enjoy taking pictures...

Communities and Collections
View all

Post has shared content
The Photographer II
Death Valley, California

My friend +Nicolas Roard, braving the heat to bring back beautiful pictures.
Add a comment...

Post has shared content
An interesting introduction talk about #ConstraintLayout  
Add a comment...

Post has attachment
Preview 3 of Android Studio 2.2 is out! Many new cool things, like a demo of the Espresso Test Recorder, a new photoshop file loader (and you can convert them to VectorDrawable!), and many, many bug fixes.

Regarding the layout editor and #ConstraintLayout  (which itself got bumped to alpha 3), DataBindings should now work correctly in the editor, and in general mixed layouts (a ConstraintLayout containing a LinearLayout for example) should work better. A new pan & zoom widget is also available in the inspector :)

Go check it out, and don't forget to file bugs ( under Tools-Studio, or simply use the Help->Submit Feedback) and give us feedback!
Add a comment...

Post has shared content
ADB 50: Constraint Layout

In this week's gripping podcast installment, +Tor Norbye and I are joined by +Romain Guy, +John Hoford, and +Nicolas Roard to talk about the new layout and visual layout editor that they've all been working on (announced at Google I/O).
Episode 50: Constraint Layout
Episode 50: Constraint Layout
Add a comment...

Post has shared content
We always strive for staying up to date.

ConstraintLayout was announced at Google IO less than two weeks ago. We put together some of its nicest features & we ran a few performance tests as well. What did we find? Check out our post!

#ConstraintLayout   #Android   #WanariLeaks  
Add a comment...

Post has shared content
First Impressions of Android's New Constraint Layout

After Google IO, the Android GDE team got together to gather our thoughts about the most significant announcements from the conference…

#gde #android #blogpost  
Add a comment...

Post has attachment
One of the interesting thing we can build on top of #ConstraintLayout  are virtual helper objects -- elements that will be present in the UI builder to help you create the UI layout you want, but do not have to appear later on in the view hierarchy: their role is limited to creating the right constraints.

We have many, many ideas of helpers we will expose in future versions, but we did include at least one in the current alpha2: Guidelines.

(on that note, do remember to update your Android Studio 2.2 preview from the canary, and to constraintlayout alpha 2 -- new versions appear regularly!

You can create horizontal or vertical guidelines on the root ConstraintLayout element, and those can be positioned either relatively to one side (left/top/right/bottom) on a fixed distance, or as a percentage of the side they belong to. Once created, simply attach elements to them, and that's all you have to do.

As often with ConstraintLayout, there are more than one way to position elements. Guidelines are not a necessity, but simply provides another way of expressing your layout intent, and can makes things a lot more understandable -- remember, what we really are setting up in a ConstraintLayout is the flow of relations between all the elements.

#Android   #androiddev   #ConstraintLayout   #AndroidStudio  
Animated Photo
Add a comment...

Post has attachment
Android Studio 2.2 preview 2 is out! go grab it :)

Tons of bugfixes since last week's preview 1 -- if you want to test ConstraintLayout and the new editor I highly recommend you to test preview 2 :)

As always, please report bugs on under the Tools-Studio component.

#Android   #AndroidDev   #AndroidStudio   #ConstraintLayout  
Add a comment...

Post has shared content
Add a comment...

Animating ConstraintLayout

I had a few questions over the weekend about if, and how, you could animate layout changes when using ConstraintLayout. The thing to remember here is that ConstraintLayout is simply another ViewGroup -- as such, you can use all that is already available in the android framework to do animation (thanks +Chet Haase !)

So, if you simply want to animate when an object is added or marked as gone, the easiest thing is to add the following attribute to your ConstraintLayout object:


Now, if you want to animate layout changes, where for example you add a constraint to an object, you can simply use TransitionManager to do that:

final ViewGroup layout = (ViewGroup) findViewById(;
final Scene scene = new Scene(layout);
final Button buttonA = (Button) findViewById(;
final Button buttonB = (Button) findViewById(;

buttonA.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) buttonB.getLayoutParams();
params.bottomToBottom = layout.getId();
// animate changes

And voila! That’s all that is necessary.

#Android   #ConstraintLayout  
Add a comment...
Wait while more posts are being loaded