Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picture torn. #10

Open
sunxd opened this issue Oct 11, 2017 · 0 comments
Open

Picture torn. #10

sunxd opened this issue Oct 11, 2017 · 0 comments

Comments

@sunxd
Copy link

sunxd commented Oct 11, 2017

When the MKLoader from GONE to VISIBLE, Picture torn.

code:
public class MainActivity extends AppCompatActivity {

View view = null;

@OverRide protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_loader1);

view = findViewById(R.id.twinFishSpinner);

handler.sendEmptyMessageDelayed(0, 5000);

}

Handler handler = new Handler() {

@Override
public void handleMessage(Message msg) {
  super.handleMessage(msg);
  if(view.getVisibility() == View.GONE) {
    view.setVisibility(View.VISIBLE);
  }else {
    view.setVisibility(View.GONE);
  }
  sendEmptyMessageDelayed(0, 5000);
}

};
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant