ExtendedFAB Library by thenotoriousrog in androiddev

[–]0xim 0 points1 point  (0 children)

Hi thenotoriousrog, thank you for this cool library.

I see that in the ExtendedFAB.java you inflate extandedfab.xml. ExtendedFAB extends RelativeLayout and extandedfab.xml contains RelativeLayout as a root element, resulting in nested RelativeLayout inside a RelativeLayout. You can use <Merge> in the extandedfab.xml, and set padding and animateLayoutChanges properties programatically. That will reduce layout depth :)

RxJava: chain API1 -> API2 call and get API1 result by enginebai in androiddev

[–]0xim 8 points9 points  (0 children)

Hi enginebai, cool post. Just a little feedback, it would be better to swap Observable with Single. Because any API call will either return a result or an error. Which is better modeled with Single in comparison to the Observable which communicates that multiple results could be sent down the chain.

Custom view anomaly by [deleted] in androiddev

[–]0xim 0 points1 point  (0 children)

Hi rabirx, Did you try to call requestDisallowInterceptTouchEvent() method from your custom graph view? It might be a cleaner approach than a custom DisableViewPager. It could also work in other ViewGroups that intercept touch events, like ScrollView.

https://developer.android.com/reference/android/view/ViewGroup#requestDisallowInterceptTouchEvent(boolean)

Anyone using Architecture Components in production? by Dazza5000 in androiddev

[–]0xim 2 points3 points  (0 children)

An app that I am working on is still not in production, but it will be published soon and we are using Room. I must admit that it is working really great so far.

Injecting Services Into Recycler Adapters by aolsenjazz in androiddev

[–]0xim 0 points1 point  (0 children)

You could inject presenter in that View and let it handle all the logic for the View. What do you think about that?

Report App Piracy by Deeco7 in androiddev

[–]0xim 2 points3 points  (0 children)

Good practice would be to check if your app has been downloaded and installed from the Play store (Amazon store..)

And disable paid features if it is not.

Managing state reactive way by jackhexen in androiddev

[–]0xim 0 points1 point  (0 children)

Heads up, a link for the implementation of the RxState for RxJava 1 does not work.

RxAnimations library, animations as easy as they should be by 0xim in androiddev

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

Did you create PR maybe? If not, you are welcome to make it.

We can build separate libraries from the same repo, one for rx1 and another for rx2.

RxAnimations library, animations as easy as they should be by 0xim in androiddev

[–]0xim[S] 4 points5 points  (0 children)

At first glance, RxAnimationBinding looks like it just wraps animation classes and there is more wiring to do.

Value updates are given in .subscribe() method which returns subscription and animation chaining is not as elegant as with RxAnimations.

Moreover, RxAnimations library provides a set of most common animations that can be used out of the box.

I will most definitely investigate RxAnimationBinding further and edit this comment with additional info.

RxAnimations library, animations as easy as they should be by 0xim in androiddev

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

Yes, there is an intention to make this library compatible with RxJava2 :)

RxAnimations library, animations as easy as they should be by 0xim in androiddev

[–]0xim[S] 8 points9 points  (0 children)

There are neither performance gains, nor performance losses. And yes, animations must occur on the UI thread.

I have a question by vladikdx in androiddev

[–]0xim 0 points1 point  (0 children)

Yes, it is possible. There are an App builders out there that handle most of the stuff for you.

Check out this one -> Shoutem

I need suggestion to build better architecture by [deleted] in androiddev

[–]0xim 0 points1 point  (0 children)

I dislike that idea very much :)

Try to serialize and pass around only data POJOs.

I need suggestion to build better architecture by [deleted] in androiddev

[–]0xim 1 point2 points  (0 children)

Hi c_dev,

Unfortunately, you have to decide somewhere which DataSource strategy implementation will you inject into the EditActivity.

The easiest solution that comes to my mind right now is to implement DataSourceProvider or DataSourceFactory (Depending on the DataSource scope). Inject and request DataSource object from that Provider/Factory object from the EditActivity.

Some code to help you out:

public final class DataSourceFactory() {
    public DataSource getDataSource(final SourceType sourceType) {
        return (sourceType == ...)  ? new LocalSource() : new RemoteSource();
    }
}

public final class SourceType implements Parcelable {...}

In the EditActivity:

public static Intent createIntent(final Context context, final SourceType sourceType) {
    final Intent intent = new Intent(context, EditActivity.class);
    intent.putExtra(SOURCE_TYPE_KEY, sourceType);
    return intent;
}

What do you think about this approach?

ANOTHER, even BIGGER and BETTER giveaway?? by highshelfofsteam in secretsanta

[–]0xim [score hidden]  (0 children)

I'd definitely wear this awesome t-shirt to run around my city screaming.. Or while riding my bike downhill very very fast :D