Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BookAuthorsFragment extends Fragment {
- private ProgressBar mProgressBar;
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- // TODO Auto-generated method stub
- View ret = inflater.inflate(R.layout.book_authors_fragment, container,
- false);
- mProgressBar = (ProgressBar) ret
- .findViewById(R.id.book_authors_fragment_progbar);
- mProgressBar.setVisibility(View.VISIBLE);
- ParseAuthors pa = new ParseAuthors();
- pa.execute();
- return ret;
- }
- private class ParseAuthors extends
- AsyncTask<Void, Void, ArrayList<HashMap<String, String>>> {
- @Override
- protected void onPostExecute(ArrayList<HashMap<String, String>> result) {
- super.onPostExecute(result);
- // Roba
- mProgressBar.setVisibility(View.INVISIBLE);
- }
- @Override
- protected ArrayList<HashMap<String, String>> doInBackground(
- Void... params) {
- // Roba
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement