2019-pracownia-programowani.../Lookify/app/src/main/java/com/example/lookifyv2/Help.java

30 lines
847 B
Java
Raw Normal View History

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;
}
}