Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
939 B
2
Indexable
Never
package com.example.managerstaff.activities;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.managerstaff.R;
import com.example.managerstaff.databinding.ActivityInfomationAppBinding;

public class InfomationAppActivity extends AppCompatActivity {

    ActivityInfomationAppBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityInfomationAppBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        binding.imgBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

    }

    public void finish() {
        super.finish();
        overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
    }
}