1.) Creating the class DailySudokuActivity
2.) Implementing the onCreate() method
This commit is contained in:
parent
f9744bc894
commit
5d620829c4
1 changed files with 32 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue