package com.example.lookifyv2; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.text.method.ScrollingMovementMethod; import android.widget.TextView; public class Help extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_help); TextView text = findViewById(R.id.help); text.setMovementMethod(new ScrollingMovementMethod()); //Do strzałki powrotu w górnej części ekranu. assert getSupportActionBar() != null; getSupportActionBar().setDisplayHomeAsUpEnabled(true); } //Kliknięcie strzałki powrotu kończy activity. @Override public boolean onSupportNavigateUp(){ finish(); return true; } }