luckybilly / luckybilly/Gloading

How to use Gloading for Fragment on databinding project

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.4k
Forks
168
PR merge metrics
No merged PRs in 30d

Description

@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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Fragment onCreateView implementation shown in the issue, especially DataBindingUtil.inflate and Gloading.getDefault().wrap(binding.image). Reproduce the failure with a databinding Fragment and inspect the project's documented Fragment usage. Done means the loading and retry views render correctly in that setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.