dodano metodę tworzenia aktywności
This commit is contained in:
parent
02038af0ca
commit
fb217a71ae
@ -1,4 +1,25 @@
|
||||
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();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user