Profile

Cover photo
Gabriele Mariotti
Works at Namirial S.p.A.
Attended Università Ancona
2,218 followers|4,561,340 views
AboutPostsCollectionsPhotos

Stream

Gabriele Mariotti

Shared publicly  - 
 
Centralize the support libraries dependencies in gradle

Working with multi-modules project, it is very useful to centralize the dependencies, mainly with the support libraries..

A very good way is to separate gradle build files, defining something like:

ext {
   //Version
   supportLibrary = '22.2.1'

   //Support Libraries dependencies
  supportDependencies = [
       design :  "com.android.support:design:${supportLibrary}",
       appCompat: "com.android.support:appcompat-v7:${supportLibrary}",
    ]
}

And then specify in the module gradle file:

dependencies {
    //......
    compile supportDependencies.appCompat
    compile supportDependencies.design
}

Here a small gist:
https://gist.github.com/gabrielemariotti/ad6672902464ee2392d0

Check the blog:
 http://fernandocejas.com/2015/07/18/architecting-android-the-evolution/ posted by +Fernando Cejas.
84
45
Pavel Shchahelski's profile photoBernardo Pina's profile photo

Gabriele Mariotti

Tools and Libraries  - 
 
Do you know Stetho?

I decided to spend a few hours playing with the Stetho open-source tool[1] released by Facebook.
It is an amazing debug bridge for Android applications  and I was surprised by its power.
You can use your Chrome desktop browser to analyze some data of your app, like the database, the View Hierarchy , the network calls and much more.....

[1] http://facebook.github.io/stetho/
26
5
Josh Guilfoyle's profile photoChris P's profile photoGabor Orosz's profile photoTobias Lietke's profile photo
7 comments
 
+Paul Danyliuk​ glad you like it! That feature is actually being worked on now. We're surfacing a bunch of common style / layout attributes in the style tab and making it mutable. No ETA for completion yet but it's not too terribly hard to make the feature work well 
Add a comment...

Gabriele Mariotti
owner

Discussion  - 
 
Sorry for the incredible delay !
There is a new version 2.1.0.

It uses the last support libraries 22.1.1.
Other updates will be pushed soon.
15
darien alvarez's profile photoDevendra Singh's profile photoGabriele Mariotti's profile photo
4 comments
 
+Devendra Singh It is not clear what is the layout that you would like to implement like this app.
Add a comment...

Gabriele Mariotti

Gradle Build System  - 
 
Can we use the gradle 2.4 with the plugin 1.2.2 (AS 1.2) ?
3
JWBlue L's profile photoSergey C.'s profile photoDaniel Rindt's profile photoSunil Samarasinghe's profile photo
8 comments
 
I tried Gradle 2.4 with Android Plugin 1.2.2 and 1.2.3
Have the following error:
app/build.gradle
Error:(113, 0) No signature of method: static com.android.build.gradle.internal.dsl.TestOptions.returnDefaultValues() is applicable for argument types: (java.lang.Boolean) values: [true]
Add a comment...

Gabriele Mariotti

Shared publicly  - 
 
Vieni ad imparare Android!
Primo appuntamento 3 febbraio al +GDG Ancona.

Tutte le info qui:
https://plus.google.com/events/c6qkkvurs242lnof1iqa00icea0
 ·  Translate
 
Google Developers Study Jams: vieni ad imparare Android a Firenze, Ancona, Roma, Napoli, Palermo, Catania e Gela. #devstudyjam
 ·  Translate
6
Johan Pelgrim's profile photo
 
Didn't understand a word I just read, but recognized the logo ;-) Good luck with the Study Jam +Gabriele Mariotti​! 

Gabriele Mariotti

Shared publicly  - 
 
Il +GDG Ancona organizza e supporta Android Fundamentals Study Groups.

Se vuoi seguire un corso Android gratuito e di alto livello, questa è l'opportunità da non mancare!

Maggiori dettagli verranno dati nei prossimi giorni. 
 ·  Translate
 
IL GDG ANCONA a Febbraio e Marzo 2015 organizza Android Fundamentals Study Groups all'interno dell'iniziativa Google Developers Study Jams[1].

Ogni iscritto avrà la possibilità di:

- seguire GRATUITAMENTE il corso di Udacity relativo ad Android Fundamentals comodamente da casa

- incontrarsi una volta alla settimana (per un totale di 8 incontri) con gli altri partecipanti e ricevere il supporto GRATUITO sulle lezioni dal facilitator del GDG di Ancona +Libero Rignanese che ha già seguito il corso conseguendo la relativa certificazione.

- ricevere il supporto per il progetto finale

Se sei veramente interessato ad Android, questo gruppo di studio è quello che fa per te!!

E' obbligatoria l'iscrizione:
http://www.eventbrite.it/e/biglietti-study-jams-android-fundamentals-15179988755

Maggiori dettagli verranno pubblicati in seguito.....

---------------------------------------------------------------------------------------------------------

Google Developers Study Jam is a free series of global, community-run, in-person study groups. The first jam session is presented in partnership with Udacity and will follow their Android Fundamentals curriculum.

Prerequisites: This is an Advanced course intended for students with at least 3 years of programming experience in Java or another object-oriented programming language (for example: C++, Objective C or Python).
Udacity's Intro to Java is a helpful background if you're looking to refresh your Java skills.

[1]: http://www.googledevelopersstudyjams.com/
1

Gabriele Mariotti

Shared publicly  - 
 
Il +GDG Ancona  e Dev Marche organizzano un altro interessante evento. 
Questa volta parleremo di Google Cloud.

Tutti i dettagli nei link sotto.
 ·  Translate
 
+GDG Ancona  e Dev Marche organizzano un evento dedicato a Google Cloud in particolare ai Big Data e Containers.

I nostri speakers saranno +Roberto Lupi (Google) e +Giuliano Latini (Cesmi - Università Politecnica delle Marche).

Programma
14:00 - Ingresso partecipanti
14:30 - Saluto iniziale 
14:45 - Google e Big Data - Roberto Lupi [Big Data]
15:30 - Docker Recall - Giuliano Latini [Docker]
16:15 - Coffee Break
16:45 - Kubernetes - Roberto Lupi [Kubernetes]
17:15 - Demo - Roberto Lupi & Giuliano Latini [Demo]
17:45 - Q&A e chiusura lavori

Vi aspettiamo !!

Tutte le informazioni le potete trovare qui:
http://www.eventbrite.it/e/biglietti-gdg-ancona-on-the-google-cloud-big-data-containers-14587484559?aff=eorg
 ·  Translate
3
Have them in circles
2,218 people
Adam Harazim's profile photo
Andreas Zeiser's profile photo
Rob Krater's profile photo
Paolo Burzacca's profile photo
Vincenzo Martone's profile photo
Pablo Marín's profile photo
OneNetLab's profile photo
Nicola Masella's profile photo
Quang Anh Do's profile photo

Gabriele Mariotti

Shared publicly  - 
 
I decided to spend a few hours playing with the Stetho tool[1] released by Facebook.
It is an amazing debug bridge for Android applications and I was surprised by its power.


[1] http://facebook.github.io/stetho/
44
17
Stephen Anthony's profile photoBernardo Pina's profile photo
 
Just updated my little ChangeLogLib to 2.0.

Introduced a RecyclerView. You can use it instead of the old ListView to have a full support with the new NestedScrollingChild interface.
changeloglib - Android Library to display your changelog
29
5
Davide Corradini's profile photoRodrigo De Paiva Direito's profile photo
Add a comment...

Gabriele Mariotti

Development Patterns  - 
 
With the new support v22.1 it is super easy to build a Material Styled AlertDialog.

Just use the new android.support.v7.app.AlertDialog[1]
and the correct style.

#appCompat  

[1]:https://developer.android.com/reference/android/support/v7/app/AlertDialog.html
22
3
Zoltan Demant's profile photoTaras Sheremeta's profile photomariusz er's profile photoRizky Rusfadilah's profile photo
11 comments
 
+Gabriele Mariotti Thats my bad, if your theme inherits from the material for the dialog the no title attribute wont work, just going with the appcompat one works. (I had forgotten about the v21 theme).
Add a comment...

Gabriele Mariotti

Development Patterns  - 
 
It is a SectionedGridRecyclerViewAdapter.

It is the porting of the SimpleSectionedListAdapter[1] provided by Google with the #io code.

It can be used to realize a simple sectioned grid without changing your adapter using a RecyclerView.

It works with a RecyclerView with a GridLayoutManager.

Here the code:
https://gist.github.com/gabrielemariotti/e81e126227f8a4bb339c


If you looking for a sectioned list you can take a look here:
https://gist.github.com/gabrielemariotti/4c189fb1124df4556058

[1]: https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/SimpleSectionedListAdapter.java
35
14
Ralph Bergmann's profile photoVladimir Bjelakovic's profile photoAndrew Khloponin's profile photoTony Kwok's profile photo
 
hi, I've seen a few of your gist on RecyclerView with sections and now this, I wonder if you want to take a look (and maybe contribute) on some stuff I've been developing/open sourcing https://github.com/eyeem/RecyclerViewTools
Add a comment...

Gabriele Mariotti
owner

Discussion  - 
 
Sorry if I can't answer to all questions and issues quickly.
These are very busy days...
I will come back active very soon..
8
Sumit Sahoo's profile photo
 
I am implementing the new Material Card. Can you please suggest if I can use the old CardListView to show multiple Material Cards ?
Add a comment...
Gabriele's Collections
People
Have them in circles
2,218 people
Adam Harazim's profile photo
Andreas Zeiser's profile photo
Rob Krater's profile photo
Paolo Burzacca's profile photo
Vincenzo Martone's profile photo
Pablo Marín's profile photo
OneNetLab's profile photo
Nicola Masella's profile photo
Quang Anh Do's profile photo
Education
  • Università Ancona
    Ingegneria Elettronica
Story
Introduction
First of all I think it's important to be a good father. Java engineer for 15 years, Android developer for about 4 years.
Bragging rights
I'm am the author of CardsLib, an opensource library about Android Card UI.
Work
Occupation
J2EE & Android Developer
Skills
J2EE, Android, SQL , Linux , ERP
Employment
  • Namirial S.p.A.
    Project Manager, 2014 - present
  • Ankon Group S.r.l.
    J2EE & Android Project Manager, 2001 - 2014