dodano metodę tworzenia aktywności

This commit is contained in:
Naiki00 2021-02-11 01:51:13 +01:00
parent 02038af0ca
commit fb217a71ae

View File

@ -1,4 +1,25 @@
package com.example.notatkon; package com.example.notatkon;
public class CreateNote { import android.os.Bundle;
} import android.view.View;
import android.widget.ImageView;
import androidx.appcompat.app.AppCompatActivity;
public class CreateNote extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.create_note);
ImageView imageBack = findViewById(R.id.back);
imageBack.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
}
}