The error:
Error: (36, 10) error: reached end of file while parsing
I know the error is at the end, but I can not solve it
My code:
public class MainActivity extends AppCompatActivity {
ImageView logo_app;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getSupportActionBar().hide();
getWindow().setNavigationBarColor(getResources().getColor(R.color.colorbarra_inf));
logo_app = (ImageView) findViewById(R.id.logo_app);
logo_app.setOnLongClickListener(new View.OnLongClickListener() {
public boolean onLongClick(View v) {
Animation startRotateAnimation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.rotate_image);
logo_app.startAnimation(startRotateAnimation);
return true;
}
}