Profile cover photo
Profile photo
Arnaud Camus
132 followers
132 followers
About
Communities and Collections
View all
Posts

Post has attachment
Debugging an image loading system on Android can be tricky. Hopefully we now have some tools making the task easy!

Post has attachment
I wrote this small article explaining how to combine Stetho and Glide together.

Post has attachment
Lollipop reached 5.4% last month, we are getting somewhere...slowly! 
#android
https://developer.android.com/about/dashboards/index.html

Post has attachment

Post has shared content
Nice tips around the Ripple
Someone asked me today how to add ink ripple¹ touch feedback to an image without having to add additional views to your hierarchy which would hurt performance or memory use.  Here's a couple of approaches: 

1. Wrap the drawable in a RippleDrawable² before setting it on the ImageView:

Drawable image = …
RippleDrawable rippledImage = new RippleDrawable(ColorStateList.valueOf(rippleColor), image, null);
imageView.setImageDrawable(rippledImage);

2. Extend ImageView and add a foreground attribute to it (like FrameLayout has³).  See this example⁴ from +Chris Banes of adding it to a LinearLayout.  If you do this then make sure you pass through the touch co-ordinates so that the ripple starts from the correct point:

   @Override
    public void drawableHotspotChanged(float x, float y) {
        super.drawableHotspotChanged(x, y);
        if (foreground != null) {
            foreground.setHotspot(x, y);
        }
    }

I prefer the second approach as you can declaratively set a ripple drawable as the foreground asset in your layout and not have to worry about adding it once the image loads, somewhat simplifying your code and playing nicely with image loading libs like Picasso.  The first approach can work well in combination with Palette to set a ripple color derived from the image.

#AndroidDev  

¹ http://www.google.com/design/spec/animation/responsive-interaction.html#responsive-interaction-surface-reaction
² https://developer.android.com/reference/android/graphics/drawable/RippleDrawable.html
³ https://developer.android.com/reference/android/widget/FrameLayout.html#attr_android:foreground
https://gist.github.com/chrisbanes/9091754
Animated Photo

Post has attachment
Small tutorial to realize this effect.

The source code is also available on github: https://github.com/lynfogeek/CollapsingHeader #androiddev  

Post has attachment
Small tutorial to realize this effect -- might help few developers

The source code is also available on github: https://github.com/lynfogeek/CollapsingHeader
#androiddev  

Post has attachment
Facebook reinvent the Android debugging with Stetho. You can now profile your app, scan your HTTP requests and read/write into your SQLite DB directly from your Chrome browser!

https://github.com/facebook/stetho
https://code.facebook.com/posts/393927910787513/

#android #androiddev

Post has attachment
My company Impraise (http://impraise.com) is hiring experienced developers to expand its team.

We are looking for 2 talented developers: 
- RoR ninja: https://impraise.recruitee.com/o/backend-developer-ruby
- Front-end and React guru: https://impraise.recruitee.com/o/front-end-developer-a19c22bf-6ed6-4363-ad11-1deb7484d379

We also have an opening for a front-end developer intern: https://impraise.recruitee.com/o/frontend-developer-intern

Nice challenges and lot of fun are guaranteed.
#startup  #ycombinator #amsterdam
Wait while more posts are being loaded