27 lines
836 B
Java
27 lines
836 B
Java
|
package ch.dissem.apps.abit;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.support.v7.app.AppCompatActivity;
|
||
|
import android.support.v7.widget.Toolbar;
|
||
|
|
||
|
/**
|
||
|
* Created by chris on 14.07.15.
|
||
|
*/
|
||
|
public class SettingsActivity extends AppCompatActivity {
|
||
|
@Override
|
||
|
protected void onCreate(Bundle savedInstanceState) {
|
||
|
super.onCreate(savedInstanceState);
|
||
|
setContentView(R.layout.toolbar_layout);
|
||
|
|
||
|
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||
|
setSupportActionBar(toolbar);
|
||
|
|
||
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||
|
getSupportActionBar().setHomeButtonEnabled(false);
|
||
|
|
||
|
// Display the fragment as the main content.
|
||
|
getFragmentManager().beginTransaction()
|
||
|
.replace(R.id.content, new SettingsFragment())
|
||
|
.commit();
|
||
|
}
|
||
|
}
|