Profile cover photo
Profile photo
Martin Revert
193 followers -
A web + mobile developer
A web + mobile developer

193 followers
About
Posts

Post has attachment
Hi guys!

Over previous Canary updates I was confortable accepting new upgrades, patching, autostarting and then ready to work. Big version changes demand complete new downloads, which I'm fine. But since 2.2 preview 1, over Ubuntu 16.04 it shows always and only a download button that can be focused but does nothing when pressed.

Is this a new behavior by design or a problem from my side?
What's the expected behavior here?

Thanks
Martin

Photo

Post has shared content
Never is too late they said :)
Preferences Support Library: Preference Fragments for API 7+, no matter the Activity
Pro-tip by +Ian Lake

Creating your preferences from XML files means less code and a consistent user experience across apps. However, this required that you use PreferenceActivity and even then you could only use PreferenceFragment on API 11+ devices. Well, no more: the Preferences Support v7 Library (http://goo.gl/BPE0M1) makes it possible to use any Activity class (such as an AppCompatActivity) with PreferenceFragmentCompat (http://goo.gl/kKXszC) and add preferences using the same preference XML files (http://goo.gl/wOcIxI), while adding support for elements such as SwitchPreference (previously only available on API 14+ devices) to all API 7+ devices.

A simple implementation would include a PreferenceFragmentCompat such as:
public class PreferencesFragment extends PreferenceFragmentCompat {
 @Override
  public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
    addPreferencesFromResource(R.xml.preferences);
  }
}

You’ll also need to set preferenceTheme in your theme:
<style name="AppTheme" parent="@style/Theme.AppCompat.Light">
  <!-- Set colorPrimary, colorPrimaryDark, colorAccent, etc →
  <item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
</style>

Customizing the preferenceTheme allows for increased control over the styling and layouts used for each preference type without affecting other parts of your Activity.

Even better, PreferenceFragmentCompat uses RecyclerView for showing the list of preferences, allowing you to integrate scrolling techniques (http://goo.gl/119brU) with the help of the Android Design Support Library (http://goo.gl/8LN2Aj).

One thing you’ll note isn’t in here is preference headers and you’d be totally right. However, that doesn’t mean a single list of preferences need to span a 10” tablet screen. Instead, your Activity can implement OnPreferenceStartFragmentCallback (http://goo.gl/IZWZBP) to handle preferences with an app:fragment attribute or OnPreferenceStartScreenCallback (http://goo.gl/CFp5Cr) to handle PreferenceScreen preferences. This allows you to construct a ‘header’ style PreferenceFragmentCompat in one pane and use those callbacks to replace a second pane without working in two separate types of XML files.

So what about the preferences-v14 library? You’ll find it offers the same API as the preferences-v7 library, but built on framework Fragments and DialogFragments.

If you’re building apps for Android TV, you’ll find the preference-v17 library (http://goo.gl/i2A1zF) incredibly helpful - providing an optimized Leanback version of preferences via LeanbackPreferenceFragment (http://goo.gl/eLqNEv) built on top of these preference APIs.

#BuildBetterApps
Add a comment...

Post has shared content
Nota mental: Dejar de usar "Iterators" en Android.
Community question: Are iterators faster than indexes?

The Android performance Patterns G+ community asked the above question, and +Colt McAnlis set out to find the answer. The results might shock you … or not… if you know a thing or two about performance. 

Watch more Android Performance Patterns here: http://goo.gl/4ZJkY1

Join the G+ Community here : http://goo.gl/g7mxmI

  #PERFMATTERS
Add a comment...

Post has shared content
Eternal love 
We were working hard, Genymotion v2.5 is now on the launch pad! This new version, planned for mid-june will be dedicated to Continuous Integration for Android application development:
- A full command line tool
- A Gradle Plugin

Run all your automatic tests on fresh new devices you defined directly from your build.gradle or from the command line. Start a device, stop it, delete it, and more! Do whatever you want through your favorite script tools! 
#GmTool #AndroidDev #ContinuousIntegration #TestingWithNoHands #GenymotionIsAwesome #midJune
Photo
Add a comment...

Post has attachment
Good rant. I agree,, Lollipop is a step back for tablets UX/UI over 7".
Add a comment...

Post has attachment
Oh...the hidden and async "What's new" section on Material Design guidelines. Behold +Nicolás Jafelle ! The only and lonely official reference to the official Swipe to Refresh. Culiao.

http://www.google.com/design/spec/whats-new/whats-new.html
Add a comment...

Post has attachment
Why the hell Google thinks that our monkeys are messing with our devices?
Photo
Add a comment...

Post has shared content
Buena presentación con guidelines para entender Material Design desde dentro de Android. Lástima no haber podido escuchar la charla. Espero que aparezca algún video.
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Wait while more posts are being loaded