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

28 lines
1.0 KiB
Java

package de.marcelkapfer.morseconverter;
import android.content.res.Resources;
import android.os.Bundle;
import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer;
import it.neokree.materialnavigationdrawer.elements.MaterialSection;
public class MainActivity extends MaterialNavigationDrawer {
private MaterialSection writtenMorse, normalMorse, about;
@Override
public void init(Bundle savedInstanceState) {
Resources res = getResources();
writtenMorse = this.newSection("writtenMorse", new MainFragment());
normalMorse = this.newSection(res.getString(R.string.normalMorse), new MorseFragment());
about = this.newSection(res.getString(R.string.about), new AboutFragment());
this.addSection(writtenMorse);
this.addSection(normalMorse);
this.addDivisor();
this.addSection(about);
this.setDrawerHeaderImage(this.getResources().getDrawable(R.drawable.feature_graphics));
allowArrowAnimation();
this.disableLearningPattern();
}
}