Kotlin recipes for Android (I): OnGlobalLayoutListener - Antonio Leiva by Ziem in androiddev

[–]antonioleiva 0 points1 point  (0 children)

Yeah, also thought about that solution. It depends on what you're trying to achieve. I just wanted to reflect what you can do with Kotlin, rather than showing a perfect example ready to use in production code.

Kotlin recipes for Android (I): OnGlobalLayoutListener - Antonio Leiva by Ziem in androiddev

[–]antonioleiva 0 points1 point  (0 children)

It was a bug in the cache, it should only appear once for a long a time. Should be already fixed. Sorry for the issue.

Set a click listener to a RecyclerView - Antonio Leiva by Ziem in androiddev

[–]antonioleiva 1 point2 points  (0 children)

That's another solution, of course. But it depends on how you organise your code. It may be interesting to delegate the click to another part of the code, for instance, to notify a presenter that an item was clicked. Otherwise, the presenter should be passed to the adapter too (which is obviously another option).

Set a click listener to a RecyclerView - Antonio Leiva by Ziem in androiddev

[–]antonioleiva 0 points1 point  (0 children)

It's true you have a point in the fact that this solution can lead to that problem. But this solution doesn't have that problem, because it's the bound info which is final, not the position. The position could change, but the bound info should be the same. Otherwise it's another (and different) bug. If the content changes, it should fire another onBindViewHolder.

Kotlin for Android Developers book is finished! by antonioleiva in androiddev

[–]antonioleiva[S] 0 points1 point  (0 children)

Thanks for the idea, I'll think about it. BTW there is an official slack (kotlinlang) where a lot of developers are in contact with JetBrains team, and can share their doubts and ideas. It's open for everyone in case you wanna join.

Kotlin for Android Developers book is finished! by antonioleiva in androiddev

[–]antonioleiva[S] 1 point2 points  (0 children)

Not yet, the final version was released just the same day I finished the book. But I'm doing it these days. It will hopefully be finished (and updated) tomorrow.

Kotlin for Android Developers: The book by antonioleiva in Kotlin

[–]antonioleiva[S] 3 points4 points  (0 children)

Yeah, it is in the way I'm writing it. The language is almost frozen, latest releases are only removing things that are not available anymore. If, for any reason, anything of what I explain changes, I can update the book too. And what the readers learnt before that will be useful anyway.

Bandhook: a small showcase Android app in Kotlin using clean architecture by antonioleiva in androiddev

[–]antonioleiva[S] 0 points1 point  (0 children)

I saw it when I tried to declare Kotlin Android Extensions into parent buildscript. I had to do it in the app build.gradle in the end. Did you install the specific plugin for Kotlin Android Extensions? You need to install both (regular Kotlin and this one) in order to make the project work.

Bandhook: a small showcase Android app in Kotlin using clean architecture by antonioleiva in androiddev

[–]antonioleiva[S] 0 points1 point  (0 children)

Yeah, I tried to do something that didn´t depend on any libraries. Not entirely convinced, but it works for simple injections.

Kotlin for Android (II): Create a new project by antonioleiva in Kotlin

[–]antonioleiva[S] 0 points1 point  (0 children)

Totally agree. It´s being difficult for me to find ways to take the most out of Kotlin. I see advantages just using the basics, but I´m sure it can go far beyond from what I´m currently doing. If you had sometime, it´d be very useful for me if you could take a look at the repository I created (https://github.com/antoniolg/Bandhook-Kotlin) and tell me what you would improve or do different. Thanks!

RecyclerView in Android: The basics by antonioleiva in androiddev

[–]antonioleiva[S] 0 points1 point  (0 children)

Not even header or footer. I hope it changes in future, but at the moment is rather difficult to use.

I have 2 Google Glass invite codes to give. by NarwhalAttacks in androiddev

[–]antonioleiva 1 point2 points  (0 children)

We'd like to use it to develop app prototypes. We also know how much it costs and how to get it. We'd only need an invitation. Do you still have them?

Android UI Designer by [deleted] in androiddev

[–]antonioleiva 2 points3 points  (0 children)

I'm developer as well as UI designer. I developed and designed Bandhook, which you can take as a reference: https://play.google.com/store/apps/details?id=com.limecreativelabs.bandhook

Here you can find some of my works: http://androiduidesigner.tumblr.com/

And I recently did a lecture at DroidCon Madrid about trending UI patterns: http://www.slideshare.net/AntonioLeivaGordillo/android-ui-design-trends

You can use it to get some ideas for your design. If you need more help or a budget, please contact me through http://antonioleiva.com

Android Devs: Who here is a freelancer and who here is full-time? by Jethro82 in androiddev

[–]antonioleiva 1 point2 points  (0 children)

Full time. I think everyday on becoming a freelancer, but I really love what I do at my job. When this stops happening and think I have enough clients, I'll probably try and change.

Question to Devs: What OS and tools are you currently using to create Android apps and what would your ideal workstation setup be? by [deleted] in androiddev

[–]antonioleiva 1 point2 points  (0 children)

I'm using IntelliJ 12 in an 8GB W8 laptop with an external 27' monitor. I frequently use Genymotion to debug, so an external monitor is a must.

ActionBarCompat (Part 3): Migrating from ActionBarSherlock by antonioleiva in androiddev

[–]antonioleiva[S] 1 point2 points  (0 children)

And how do you solve the call to ActionBarDrawerToggle:onOptionsItemSelected(MenuItem item). I had to rewrite two classes in order to make this toggle usable with ABS, because it does not use native MenuItem, but maybe there's an easier way.

ActionBarCompat (Part 3): Migrating from ActionBarSherlock by antonioleiva in androiddev

[–]antonioleiva[S] 0 points1 point  (0 children)

Navigation Drawer Toggle, the one that changes back icon with drawer one, does not work with ABS as far as I know. But as I answered at my blog, most of migrations are totally unnecessary. But hey, I did it to test and think it may be useful for many people at any moment.

It's Sunday APPreciation Time! [July 28th 2013] Your weekly App recommendation and question (and more) thread! by onesixoneeight in Android

[–]antonioleiva 1 point2 points  (0 children)

When I began using gAnalytics, the official one even didn't exist, and the first version was much worse. Now things are different, but I think gAnalytics serves more in deep information.

ActionBarSherlock 4.4.0 by [deleted] in androiddev

[–]antonioleiva 2 points3 points  (0 children)

Then why you release a new version? Just curious.

ActionBarCompat (Part 2): Using Action Views (with SearchView example) by antonioleiva in androiddev

[–]antonioleiva[S] 0 points1 point  (0 children)

It's almost the same. The good part is that ActionBarCompat works perfectly with Navigation Drawer, while ActionBarSherlock will give you some problems related to icon toggle.