luckybilly/Gloading

How to use Gloading for Fragment on databinding project

suxoyo opened this issue · 0 comments

@OverRide
public View onCreateView(LayoutInflater inflater, @nullable ViewGroup container, @nullable Bundle savedInstanceState) {
binding = DataBindingUtil.inflate(inflater, initContentView(inflater, container, savedInstanceState), container, false);
mLoadingHolder = Gloading.getDefault().wrap(binding.image).withRetry(new Runnable() {
@OverRide
public void run() {
onLoadRetry();
}
});
showLoading();
return binding.getRoot();
}

it doesn't work.