Skip to content
Snippets Groups Projects
Commit cc6d3edf authored by Maxime Graulich's avatar Maxime Graulich
Browse files

Android: Show/Hide progress

parent ff726908
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment