Skip to content

Instantly share code, notes, and snippets.

👾
focusing on flutter cross platform mobile dev

Fred Grott fredgrott

👾
focusing on flutter cross platform mobile dev
Block or report user

Report or block fredgrott

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View GradleAndroidDepsFix.md

This a gradle fix to the normal Google Android sample app code examples

androidTestCompile("com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion", {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
androidTestCompile ("com.android.support.test:runner:$rootProject.ext.runnerVersion",{
        exclude group:'com.android.support', module:'support-annotations'
    })
androidTestCompile ("com.android.support.test:rules:$rootProject.ext.runnerVersion",{
View AdaptableAdaptableBindingAdapter.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

public abstract class AdaptableBindingAdapter<VM,
        AVM extends AdaptableViewModel<VM>,
        VH extends RecyclerView.ViewHolder>
        extends RecyclerView.Adapter<VH> {

  /**
View AdaptableAdaptableAdapter.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

public interface AdaptableAdapter<VM, AVM extends AdaptableViewModel<VM>> {

  /**
   * Adapt the data contained in the {@code adaptable} into a ViewModel
   * ({@link VM}) viewModel that is ready to be bound to the View (displayed).
   *
View AdaptableAbstractAdaptableViewModel.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

public abstract class AbstractAdaptableViewModel<VM>
        extends BaseObservable
        implements AdaptableViewModel<VM> {

  private @Nullable VM viewModel;
View AdaptableAdaptableViewModel.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

public interface AdaptableViewModel<VM> {

  /**
   * Get the
   * already-{@link AdaptableAdapter#adapt(AdaptableViewModel) adapted}
   * version of this object, which had been saved by a previous call to
View SimpleonBindViewHolder.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

@Override
  public void onBindViewHolder(final VH loadingViewHolder,
                               int position) {
    final AdaptableViewModel<A, VM> adaptableViewModel = items.get(position);
    VM viewModel = adaptableViewModel.viewModel;
View AdaptOnDemandSimpleBindingAdapter.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

AdaptOnDemandSimpleBindingAdapter

public abstract class AdaptOnDemandSimpleBindingAdapter<A, VM,
        VH extends RecyclerView.ViewHolder &
                Taggable>
View SimpleAdaptableViewModel.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

The AdaptableViewModel

public class AdaptableViewModel<A, VM> extends BaseObservable {
  @NonNull A adaptable;
  @Nullable VM viewModel;
View SimpleBindingAdapter.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

SimpleBindingAdapter abstract class:

public abstract class SimpleBindingAdapter<A, VM, VH extends RecyclerView.ViewHolder>
        extends RecyclerView.Adapter<VH>  {
  //== Operating fields =======================================================
View SimpleAdapter.md

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

The SimpleAdapter interface

public interface SimpleAdapter<VM, A> {
You can’t perform that action at this time.