Profile cover photo
Profile photo
Ralph Bergmann
139 followers -
ich bin ich :-)
ich bin ich :-)

139 followers
About
Ralph's posts

Post has attachment
When I create a new "Scrolling Activity" I get an Activity with a NestedScrollView and a FAB at the bottom. When I scroll up and down the FAB fades in and out.

But I can't find the reason for this fading. And I can't find a way to disable it :-(

Is it possible to disable the FAB fading animation?


https://drive.google.com/open?id=0B7PnmR9Iza92T3NxWjc1MmVLZzA

Hi all,

what is the state of the art to hold downloaded api responses that this data survives device rotation changes?

The api uses pages to provide chunks of 25 entries. My first approach is to use a Service which holds all downloaded data in a ArrayList. I think the data are to much to put them in the onSavedInstantState bundle.

Post has attachment

Öffi kann man nicht mehr vom Kalender aus öffnen :-(

Ich weiß nicht, seit wann es ist, ob es mit Android 6 oder einem Google Kalender / Maps update gekommen ist. Früher konnte ich im Kalender auf die Adresse klicken und wurde gefragt, ob ich den Eintrag in Maps oder Öffi öffnen möchte, neuerdings geht immer sofort Maps auf. Dies Einstellung "immer öffnen mit" ist nicht gesetzt.

Post has shared content
Here's the slides from +Ben Weiss & my talk from #droidconuk15 on Building Meaningful Motion.

We provide a whistle-stop tour of Android's animation APIs & share our experience on getting the most out of them.

The talk was recorded so hopefully a video will be available soon. Until then; each slide has speaker notes in the description.

#AndroidDev #AndroidDesign
PhotoPhotoPhotoPhotoPhoto
Building Meaningful Motion
121 Photos - View album

Post has shared content
Android pro tip: One-line custom fonts in XML with data binding!

I started playing with data binding last night for real, and I'm amazed by the power it gives you.  Check out this one-liner to set a custom font on a TextView:

@BindingAdapter({"bind:font"})
public static void setFont(TextView textView, String fontName){
 textView.setTypeface(Typeface.createFromAsset(textView.getContext().getAssets(), "fonts/" + fontName));
}

In XML:
<TextView
app:font="@{`Source-Sans-Pro-Regular.ttf`}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

Previously, this used to take endless lines of repetitive Java code (one for each TextView!). The missing custom typeface support in TextView has been a grievance held against the Android platform for years.  There's even an inventive library to address it[2]. Data binding makes all of that obselete.  If you can't tell, I'm in love!!  It's terse, powerful, and one of the biggest leaps forward I've seen for Android productivity.

As usual, you need to put your font file in assets/fonts/, and make sure to include the data binding framework.

[1] https://developer.android.com/tools/data-binding/guide.html
[2] Calligraphy: https://github.com/chrisjenx/Calligraphy
Photo

Post has attachment
Has someone experiences with RecyclerView + SortedList + SortedList.BatchedCallback?

Post has shared content
0.5-M1 released

If you are using eclipse for Android development, a stable release of the +Andmore Project tooling is now available.   The change log and New and Noteworthy along with installation instructions can be found at the link below.

https://github.com/eclipse/andmore/releases/tag/0.5-M1

This is the first public stable release of the fork of the Android Developer Tools, planning for 0.5-M2 is already underway with planned support for AARs at the top of the priority list.

#android   #androiddev   #eclipse

Post has attachment
RxAndroid LifecycleObservable vs. AppObservable

What is the different between LifecycleObservable and AppObservable? And when to use one of them?

Post has attachment
Wait while more posts are being loaded