This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
morse-converter-android/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java

25 lines
901 B
Java
Raw Normal View History

2015-01-02 11:43:24 +01:00
package de.marcelkapfer.morseconverter;
import android.os.Bundle;
2015-02-14 17:31:42 +01:00
import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer;
import it.neokree.materialnavigationdrawer.elements.MaterialSection;
2015-01-02 11:43:24 +01:00
2015-01-04 20:50:43 +01:00
2015-02-14 17:31:42 +01:00
public class MainActivity extends MaterialNavigationDrawer {
2015-01-04 20:50:43 +01:00
2015-02-14 17:45:23 +01:00
private MaterialSection writtenMorse, normalMorse, about;
2015-01-02 11:43:24 +01:00
@Override
2015-02-14 17:31:42 +01:00
public void init(Bundle savedInstanceState) {
writtenMorse = this.newSection("writtenMorse", new MainFragment());
2015-02-14 17:45:23 +01:00
normalMorse = this.newSection("Normal Morse", new MorseFragment());
about = this.newSection("About", new AboutFragment());
2015-02-14 17:31:42 +01:00
this.addSection(writtenMorse);
2015-02-14 17:45:23 +01:00
this.addSection(normalMorse);
this.addBottomSection(about);
2015-02-14 17:31:42 +01:00
this.setDrawerHeaderImage(this.getResources().getDrawable(R.drawable.feature_graphics));
allowArrowAnimation();
2015-02-14 17:45:23 +01:00
this.disableLearningPattern();
2015-01-02 11:43:24 +01:00
}
}