Profile cover photo
Profile photo
Fré Dumazy
228 followers -
Skateboarder, Programmer and Android Enthusiast
Skateboarder, Programmer and Android Enthusiast

228 followers
About
Fré Dumazy's posts

When creating an app that has two (or more) types of layouts, depending on what device it's running, what kind of architecture do you use?

I'm working on an app that has a different layout on phones and tablets. These different layout come with different animations. To make sure I don't end up with an Activity cluttered with if(isPhone) ... else ... or something like that, I used the Strategy Pattern. I've created a PhoneLayoutStrategy and a TabletLayoutStrategy that extends an AbstractLayoutStrategy. So if I have anything that's different in one type of layout, I create an abstract method in the parent class and implement it in Phone- and TabletLayoutStrategy. The Activity creates a subclass of AbstractLayoutStrategy and calls the required methods, for example: mLayoutStrategy.animateOutButtons();

I was wondering how you guys are handling this. All suggestions are welcome!

Post has attachment
Is this possible with Kotlin?

Where would you store your proguard/dexguard mapping files?
Do you include them in your version control or store them somewhere separately?
I've used to keep it in my version control back in the Eclipse days, but with Android Studio they got ignored from versioning because they were placed in the build directory by default. It is, however, possible to have them in another directory by defining it in build.gradle

Post has attachment
The Android Dashboards were updated 2 days ago.
Looking at the Platform Versions section: Froyo has left the graph, Nougat 7.1 has entered and Marshmallow is reaching a third of the pie.

About a year ago we decided to change our minSdkVersion to API 16 (JB1) for all our new developments. Now we have 86.3% that's API 19 (Kitkat) or higher. I was wondering, what do you usually use as minSdkVersion (in general, not when you need specific APIs) and what are your thoughts about raising the bar to a higher minSdk?

Post has attachment
I've updated my Log.d Live Template tutorial to avoid having errors with tags that are longer than 23 characters.

Check out this easy trick that will speed up development! Feel free to share :)

Post has attachment
I've updated my Log.d Live Template tutorial to avoid having errors with tags that are longer than 23 characters.

Check out this easy trick that will speed up development! Feel free to share :)

Does somebody know how to get your cursor back where it came from after choosing "Create field 'myField'" in the Intention actions view in Android Studio? When you choose it, you have the possibility to change the type of the field, but afterwards I want my cursor to be back on the line where it came from

I've created a library project in Android Studio that I've exported into a maven repository as AAR. When I use this AAR, I don't get any logs in my project of this library. Is there some way to enable the logs of library projects?

Post has attachment
Having some difficulties deploying an AAR to a Maven repository with sftp. Can somebody help me with this? Thanks
Wait while more posts are being loaded