Language Support
This commit is contained in:
parent
159abc21c8
commit
e1e3b178e8
4 changed files with 15 additions and 25 deletions
|
@ -1,5 +1,6 @@
|
|||
package de.marcelkapfer.morseconverter;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer;
|
||||
import it.neokree.materialnavigationdrawer.elements.MaterialSection;
|
||||
|
@ -11,12 +12,14 @@ public class MainActivity extends MaterialNavigationDrawer {
|
|||
|
||||
@Override
|
||||
public void init(Bundle savedInstanceState) {
|
||||
Resources res = getResources();
|
||||
writtenMorse = this.newSection("writtenMorse", new MainFragment());
|
||||
normalMorse = this.newSection("Normal Morse", new MorseFragment());
|
||||
about = this.newSection("About", new AboutFragment());
|
||||
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.addBottomSection(about);
|
||||
this.addDivisor();
|
||||
this.addSection(about);
|
||||
this.setDrawerHeaderImage(this.getResources().getDrawable(R.drawable.feature_graphics));
|
||||
allowArrowAnimation();
|
||||
this.disableLearningPattern();
|
||||
|
|
Reference in a new issue