1.) Creating the class DailySudokuActivity

2.) Implementing the onCreate() method
This commit is contained in:
ErikWaegerle 2020-05-25 20:21:12 +02:00
parent f9744bc894
commit 5d620829c4

View file

@ -0,0 +1,32 @@
package org.secuso.privacyfriendlysudoku.ui.view;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import org.secuso.privacyfriendlysudoku.controller.helper.GameInfoContainer;
import java.util.List;
public class DailySudokuActivity extends AppCompatActivity {
List<GameInfoContainer> loadableGameList;
SharedPreferences settings;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_daily_sudoku);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
androidx.appcompat.app.ActionBar actionBar = getSupportActionBar();
actionBar.setTitle("Daily Sudoku");
actionBar.setDisplayHomeAsUpEnabled(true);
}
}