From cc6d3edf51af837e195ae2107b06e651ee6236c0 Mon Sep 17 00:00:00 2001 From: Maxime Graulich <maxime.graulich@gmail.com> Date: Thu, 5 Sep 2013 12:16:24 +0000 Subject: [PATCH] Android: Show/Hide progress --- .../mobile/Android/src/org/geuz/onelab/ModelFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/mobile/Android/src/org/geuz/onelab/ModelFragment.java b/contrib/mobile/Android/src/org/geuz/onelab/ModelFragment.java index d304722146..182365c606 100644 --- a/contrib/mobile/Android/src/org/geuz/onelab/ModelFragment.java +++ b/contrib/mobile/Android/src/org/geuz/onelab/ModelFragment.java @@ -50,6 +50,11 @@ public class ModelFragment extends Fragment{ glViewLayout.addView(_glView); _progressLayout = new LinearLayout(container.getContext()); ProgressBar bar = new ProgressBar(container.getContext()); + bar.setOnClickListener(new View.OnClickListener() { + public void onClick(View v) { + _progress.setAlpha((_progress.getAlpha() > 0)? 0 : 1); + } + }); _progressLayout.addView(bar); _progress = new TextView(container.getContext()); _progressLayout.setAlpha(0); -- GitLab