Profile

Cover photo
Daniele Segato
Works at Neosperience
Attended University of Pavia
303 followers|299,934 views
AboutPostsCollectionsPhotosYouTube+1'sReviews

Stream

Daniele Segato

Shared publicly  - 
 
Very well done tutorial for the new Android design support library. I hope in some in-depth documentation/article about the coordinator layout next :-)

And let's hope the bugs will be fixed soon!
 
I have written a very long and detailed tutorial on how to use Android Design Support Library in codelab style. Known bugs and quick fixes are also noted here. Tested and worked fine on Android 4.4 and 5.0

Hope you find the article useful. :)

#AndroidDev #MaterialDesign #AndroidDesignSupportLibrary
At the moment I believe that there is no any Android Developer who doesn't know about Material Design anymore since it officially becomes a design philosophy by shaking the world of design in pas
10 comments on original post
1
Daniele Segato's profile photoJürgen Wahlmann's profile photo
3 comments
 
Here's a great tutorial about Coordinator Layout:

https://lab.getbase.com/introduction-to-coordinator-layout-on-android/

It's especially useful if you want to include controls / views that do not adhere coordinator layout in their vanilla form.
Add a comment...

Daniele Segato

Shared publicly  - 
 
The new #Android   #Design  page on #Notification  is very nice.... But they completely removed icon size requirements.

I remember the old iconography icon page stated that those icon should be 32x32dp with optical square 24x24dp, solid white, transparent background.

This information is now nowhere to be found on the official documentation.

Where did they moved it? Is this a mistake by Google?
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
 
Design Support Library - Android GDE Review

After Google IO, the Android GDE team got together to gather our thoughts about the most significant announcements from the conference. These were the key points from our discussion - we would love your thoughts (please comment), and don’t forget to read our reviews about these other topics: New Permissions Model, Project Soli (and ATAP), and App Indexing.

It was a welcome announcement that there is a new library, that includes a variety of material design inspired controls.  It looks like a very promising tool, that will make developing great apps much easier.

One of the most important components of the new library is CoordinatorLayout[1].  It is designed to add behaviours to views and automatically manages interactions between them.  As an example, if you are using the a FAB, it will automatically scroll up, when a Snackbar is shown, or will disappear if it is attached to a scrollable view that is moved out of sight.

It is possible to add your own custom behavior to a View (Coordinator layout supports defining an attribute which is a string of qualified class name). You can define how the container controls different interactions between views.

The new library makes it easy to anchor a FAB button to the edge of a View.

The Ripple feedback has a nuanced change in M, you won’t see any interaction on initial touch, like before

CollapsingToolbarLayout[2] is powerful new control allowing complex parallax and scrolling interactions out of the box.  For example, using this control will automatically hide content when the view is scrolled (to make more space available for the content being scrolled).  Adding these types of motion interactions was something suggested by the design team in the “Material Design One Year Later” session (it is exciting we have the tools to make this easy).

The new library has most of the necessary controls developers didn’t have previously.  There weren’t any obvious components we need that don’t have, with one exception - a SearchBar control that matches the new style used in Lollipop (for Google now, and on the Play Store App).

Shadows have been added to the Toolbar, FAB, and Cards - but are still missing on some components (the methods are there, but not implemented yet).

Elevations can be overused - if you have more then 3 different elevations and they aren’t communicating important information - don’t use them

If you want to learn more about using the new tools, there are a few resources worth highlighting.  There is a great project on GitHub[3], demonstrating how to use the new library, and a blog post[4] with more details.

Links:
[1] http://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.html
[2] http://developer.android.com/reference/android/support/design/widget/CollapsingToolbarLayout.html
[3] https://github.com/chrisbanes/cheesesquare
[4] http://android-developers.blogspot.com/2015/05/android-design-support-library.html

#gde #android #io15 #community  
12 comments on original post
3
Add a comment...

Daniele Segato

Shared publicly  - 
 
Google Developers originally shared to I/O:
 
The tools in the new Google Identity Platform can help you cut friction out of every step of getting people signed in to your app or site. Here’s what’s in it:

New - Smart Lock for Passwords: An API that recognizes and pre-fills login credentials across devices. Your users can save their password and never be asked for it again on. Try it out on +The New York Times, +Eventbrite, +Instacart, +Orbitz, +Netflix and +LinkedIn's Android apps or sites (on Chrome) today.

Google sign-in: An updated Google branded sign in is now available for your app and site. The NYTimes has seen a 20% increase in signed-in usage of their site after implementing this.

Identity Toolkit: Just getting started with an app? Check out our authorization solution in-a-box.

Visit developers.google.com/identity to learn more.
View original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
Glide vs Picasso: two Android Image Library with very similar API

Glide is apparently suggested by Google

Main features pro Glide:
- Glide disk-cache all resize = faster to load -- this also makes more reliable transition between activities
- Glide automatically handle ImageView size and load the image accordingly (without specifying a resize)
- Glide automatically handle activity and fragments lifecycle
- Glide handle gif images

I still didn't tried Glide but I'll surely try it out at the first occasion!
In the passed Google Developer Summit Thailand, Google introduced us an Image Loader Library for Android developed by bumptech named Glide as a library that recommended by Google. It has been use
1
Marcos Trujillo's profile photo
 
Support Gif == Must win!
Add a comment...

Daniele Segato

Shared publicly  - 
 
Oh.. :) guess I'm not going bed just yet
Google Developers originally shared to I/O:
 
Download the Google I/O 2015 Android app! #io15  

Following the release of the I/O schedule last week (https://goo.gl/r6tlfc) on the I/O web app (https://goo.gl/xk3NcN), you can now also customize your schedule and plan your I/O experience via the Android app: https://goo.gl/yLE3bF

Feel free to switch back and forth between the I/O web app and the I/O Android app -- your schedule will always sync between the two. To remain even more in sync, you can enable the Google Calendar integration in the Android app settings to see your I/O schedule alongside your personal events, all in one place.  

In addition to the schedule, the I/O’15 Android app includes the agenda, a video library from past I/Os and an overview of the social conversations happening about the conference on both Google+ and Twitter. By indicating if you’ll be attending in-person or remotely, the app shows you only the content that’s relevant to you - this means onsite attendees are offered facilitated pre-event WiFi configuration and can browse the venue map, while the remote experience shows live streamed content (with closed captions and Cast support).  

New this year: inspired by Google Now, the Explore screen aggregates similar content in cards. We hope this will make it even easier for you to find interesting events to add to your schedule.

Every year we build and open source the I/O mobile app with the goal of providing the developer community with a canonical example of a well designed Android app. This year our development applies Android best practices across testing, architecture, and UI, as well as a full implementation of the material design library. More details about the open source to come soon!

The app release to all users on Google Play might take up to 24 hours, so check back in soon if you’re not seeing it yet.
25 comments on original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
 
A lot of perf tricks we use on Android are really workarounds for issues in Dalvik. ART (the runtime in Android 5+) has very different perf characteristics. I think the trick that's most likely to be affected is object pooling. Here's why:

Dalvik's allocator is surprisingly outdated. It is not designed for multicore systems. There's a single global lock for allocations and deallocations. This means that allocations are ridiculously expensive compared to ART, which has thread-local allocation. So avoiding allocations by object pooling can be a big win.

On ART, though, POJO allocations are super cheap. ART actually uses fixed-size object pools under the hood, and because they use C++ tricks that aren't available in Java (like inferring the pool from the address of the object), the cost is comparable to the cost of managing an object pool in Java. Based on code analysis, I expect allocations to be slightly slower and deallocations to be slightly faster than a good Java object pool implementation.

That's not the whole story, though. ART also has a significantly more sophisticated generational collection model. Objects with short lifetimes are incredibly cheap to collect. But because of the way ART does concurrent collection, arrays of references can be kind of expensive. The cost is roughly proportional to the amount of churn in the array, so an object pool that sees heavy use is actually more expensive than a set of short-lived allocations.

All of which means that on ART, pooling is not an automatic win. Instead, the rules for pooling become pretty much the same as any other runtime: pool objects that are either (a) expensive to create, or (b) expensive to destroy.

As I mention in APP season 2 episod 10, Paint and Paint-related objects satisfy both of those conditions. But most POJOs don't.
16 comments on original post
1
Add a comment...
Have him in circles
303 people
mg ngelay's profile photo
Davy De Waele's profile photo
Daniel Atienza's profile photo
Xavier A's profile photo
Reinhard Nägele's profile photo
Amber Nichols's profile photo
Sergio Carabantes's profile photo
Pavel Shchahelski's profile photo
Valerio Manzoni's profile photo

Daniele Segato

Shared publicly  - 
 
This is a very interesting article about how  #Parse  obtained a more robust and scalable architecture switching from #Ruby  on #Rails  to #Go .

I also suggest having a look at the comments the discussion is sometimes interesting in itself.
The first lines of Parse code were written nearly four years ago. In 2011 Parse was a crazy little idea to solve the problem of building mobile apps. Those
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
I need to try this out as soon as it is available!!! Just requested beta access.
 
Introducing SQLScout: a plugin for Android Studio and IntelliJ IDEA that provides support for SQLite, including:

✓ Ability to connect to SQLite databases in Android devices or the file system
✓ Database schema explorer
✓ SQL editor (syntax highlighting, code completion, reference navigation, refactoring, etc.)
✓ Data console to view query results, edit table data, and export contents to different formats
✓ Database diagrams!

For more details (including demos and beta access) please visit http://www.idescout.com

#AndroidStudio   #sqlite   #androiddev  
16 comments on original post
1
1
Ivo Encarnação's profile photo
Add a comment...

Daniele Segato

Shared publicly  - 
 
 
Android Design Support Library: bringing material design to life
The Design library brings a number of important material design components to all Android 2.1 or higher devices (http://goo.gl/KZBhH2). You’ll find a navigation drawer view, a floating label TextInputLayout, a floating action button, snackbar, tabs, and a motion and scroll framework to tie them together.

You’ll be able to build your navigation drawer’s items using a menu resource file and connect a TabLayout with a ViewPager with just a single call to setupWithViewPager().

AppBarLayout lets you set scroll flags to control how views such as your Toolbar scroll on and off the screen or extend it farther with CollapsingToolbarLayout to resize title text size, pin views as the app bar collapses, and add parallax effects - again just a few lines of XML.

With components that match the material design spec out of the box and the tools you need to provide rich behavior between views via the new CoordinatorLayout, the Design library gives you the building blocks needed to build a modern, great looking Android app without building everything from scratch.

#io15   #materialdesign   #supportlibrary   #AndroidDev  
97 comments on original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
Interesting.. Apparently android sharedPreferences leak threads..

This library promise better performance and solve this issue.. I think I'll give it a try
 
Using SharedPreferences? Not satisfied? Solution found! Another great library for Android Developers:
https://github.com/OleksandrKucherenko/UnifiedPreferences

Why to use? By one code line you can improve your SharedPreferences performance in up to x100 times for low-end devices and resolve several well known android SharedPreferences issues.

Benefits / Design Goals
Improve performance of the SharedPreferences on low-end devices
Fix issue with threads (Each instance of SharedPreferences creates thread which is never destroyed). 'Storage' can have only one 'save thread' for a process now.

Give ability to implement any custom de-/serialization of the data. Storage serialization can be replaced by any implementation you prefer: DB, JSON, etc.

Statistics collecting, allows to collect some runtime counters/metrics during class usage

Ability to store data in sqlite database

Improved ability to store long strings in SharedPreferences
Memory 'storage' pool. Creation of new instance of SharedPreferences is cheap.

'Storage' pool based on weak references. Polite to memory usage.
Save of storage in background thread only.

Save threads change own priority based on thread queue size.
Actions Factory - allows to customize deeply modifications of the preferences.

Implemented CommitsListener - allows to monitor in memory commit transaction.

Custom names for save background threads. Easy to identify who created the thread and control it lifetime.

Save to Disk Thread Pools max size is polite to device resources. CPU Cores count influence on Max number of available threads in thread pool.

Merged save transactions, multiple Apply calls merged into one save to disk operation.
View original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
Sebastian Kaspari originally shared to Android:
 
Wow! This looks like an awesome tool to detect memory leaks. Square saving the day again. #androiddev
Nobody likes OutOfMemoryError crashes. In Square Register, we draw the customer's signature on a bitmap cache. This bitmap is the size of the device's screen, and we had a significant number of out of memory (OOM) crashes when creating it. We tried a few approaches, none of which solved the ...
View original post
1
Add a comment...
Daniele's Collections
People
Have him in circles
303 people
mg ngelay's profile photo
Davy De Waele's profile photo
Daniel Atienza's profile photo
Xavier A's profile photo
Reinhard Nägele's profile photo
Amber Nichols's profile photo
Sergio Carabantes's profile photo
Pavel Shchahelski's profile photo
Valerio Manzoni's profile photo
Education
  • University of Pavia
    Computer Science, 2002 - 2008
  • ITIS Q.Sella Biella
    Liceo Scientifico Sperimentale Progetto Brocca, 1997 - 2001
Story
Tagline
I’m a programmer with a degree in computer science. I use Linux for fun and at work.
Introduction
I’m currently programming in Android and Java.
I use 
gentoo at home and debian at work.

I like anything technical, Manga and Anime.
Bragging rights
High school was fun, then I began to study... now it's fun, but more nerdy
Work
Occupation
I'm Software Engineer, an Android Programmer, Technical Architect and designer
Skills
Android, Java, Git, Linux, many other things...
Employment
  • Neosperience
    Software Engineer, 2011 - present
  • OpenReply
    Consultant & Technical Leader, 2008 - 2011
Basic Information
Gender
Male
Daniele Segato's +1's are the things they like, agree with, or want to recommend.
Manual Camera
market.android.com

Limited time offer! 50% off - only till the end of January!Important: This app takes full advantage of Lollipop's Camera2 API, and therefore

KIKO
market.android.com

Chiudi gli occhi e riaprili nel mondo di KIKO Rewards, un programma che premia la tua passione per KIKO e per il mondo della bellezza con in

Câmera do Google
market.android.com

A Câmera do Google captura fotos e vídeos rápida e facilmente e inclui modos de imagem criativos como Photo Sphere, Desfoque da lente e Pano

2048
market.android.com

The 2048 app is a fun, addictive and a very simple puzzle game. Join the numbers and get to the 2048 tile!HOW TO PLAY: Swipe (Up, Down, Left

Orario Treni PRO
market.android.com

Applicazione con widget per la consultazione degli orari dei treni italiani, ricerca treni e molto altro!☆ Comprende treni di Trenitalia, Tr

Thread Scheduling in Android
www.androiddesignpatterns.com

This post will give an overview of how thread scheduling works in Android, and will briefly demonstrate how to explicitly set thread priorit

Keyboard shortcuts - Hangouts Help
support.google.com

Format your messages Use the following keyboard shortcuts before you type a new message to add formatting. <th width=</table...

DevDrawer
market.android.com

DevDrawer is a widget based app for developers who are constantly installing / uninstalling / clearing data on their projects.I find myself

Publish an aar file to Maven Central with Gradle
gmariotti.blogspot.com

Publish an aar file to Maven Central with Gradle

Spaceteam
market.android.com

Do you like pushing buttons and shouting at your friends? Do you like discharging Clip-jawed Fluxtrunions? If you answered yes, or no, then

Ultimate Tic-Tac-Toe Online
market.android.com

Clean and simple Ultimate Tic-Tac-Toe against your friends! 9x9 boxes with an extra set of rules for extra fun! What is Ultimate Tic-Tac-Toe

PhotoHunt: End-to-end Google+ Platform sample application
developers.google.com

Google+ Platform; Quickstart. Android · iOS · C# /.NET · Go · Java · JavaScript · PHP · Python · Ruby · PhotoHunt Sample · Android · C# /.NE

Duolingo: Learn Languages Free
market.android.com

Learn Spanish, French, German, Portuguese, Italian, and English. Totally fun and 100% free."Among apps for learning or practicing a language

Hangouts (replaces Talk)
market.android.com

Hangouts brings one-on-one and group conversations to life with photos, emoji, and video calls for free. Connect with friends across compute

Android
plus.google.com

A place for Android fans everywhere to meet, share and get the latest on all things Android.

SwiftKey 3 Keyboard
market.android.com

Unlock your typing potential.✮✮✮50% off holiday sale✮✮✮Get SwiftKey 3 – the best keyboard on Android! #1 selling app in 38 countries - over

Camera ZOOM FX
market.android.com

★★★★★ "The Best Camera App for Android" - lifehacker ★★★★★>> "The Best Camera App for Android" - lifehacker >> "Grab this to show off to you

Si mangia bene ma non ci sanno fare. È un posto che consiglio per la cucina! strepitosa e abbondante. La moglie del proprietario però a volte è scortese e fuori luogo. Sorvoltate e andateci, merita davvero (chiuso nei week end). Consiglio risotto in cagnone e tris di dolci.
Public - 3 months ago
reviewed 3 months ago
Birreria storica, pareti con roccia a vista e atmosfera rustica ma elegante. La birra è ottima e a buon prezzo! Pizze e ristorante eccellenti! Provate le specialità alla birra! Ottima anche nel dopocena! Se ci andate a cena consiglio di prenotare anche fra settimana perché son sempre pieni ;-)
Public - 3 months ago
reviewed 3 months ago
Mangiato da Dio! In 2 abbiamo preso panelle da dividerci, spaghetti Cassaro (acciughe, tonno, soffritto e pangrattato... 10+ ma quanto erano buoni?) e spaghetti alle vongole veraci. Un bel vinello bianco della casa, acqua naturale e caffè (offerto)! Il tutto a soli 27 euro.. Meno di 15 a testa e siamo andati via pieni (porzioni generose) e soddisfatti! Davvero ottimo! Sì trova a pochi passi dal palazzo di giustizia. La zona non è delle più belle (come molte a Palermo purtroppo) ma dentro è molto carino: muri con pietra a vista e soffitto in legno! Bagni puliti! Il proprietario molto simpatico e in gamba. Unica pecca abbiamo ricordato il vino a un cameriere perché non arrivava e chiamato per chiedere dei dolci e del caffè, ci avevano dimenticato :-P Ma sinceramente... Non é questo gran problema! Il cibo era fantastico e il prezzo incredibile! E poi c'era un cameriere al suo primo giorno, facilmente era dovuto a questo ;-) Non so valutare i dolci perché siamo arrivati tardi ed erano finiti. Anzi grazie per averci accettato quasi alle 15! Se siete da quelle parti fateci un salto ;-) io ci andrei tutte le settimane se non abitassi a più di 1000km ;-)
• • •
Public - a year ago
reviewed a year ago
4 reviews
Map
Map
Map
Una delle pizze più buone di tutto il biellese! Leggera e digeribile, gustosa e con ingredienti genuini. Ottima birra.
Public - 3 months ago
reviewed 3 months ago