use of it.neokree.example.mockedFragments.FragmentIndex in project MaterialNavigationDrawer by neokree.
the class NoDrawerHeader method init.
@Override
public void init(Bundle savedInstanceState) {
// create sections
this.addSection(newSection("Section 1", new FragmentIndex()));
this.addSection(newSection("Section 2", new FragmentIndex()));
this.addSection(newSection("Section 3", R.drawable.ic_mic_white_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#9c27b0")));
this.addSection(newSection("Section", R.drawable.ic_hotel_grey600_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#03a9f4")));
// create bottom section
this.addBottomSection(newSection("Bottom Section", R.drawable.ic_settings_black_24dp, new Intent(this, Settings.class)));
}
use of it.neokree.example.mockedFragments.FragmentIndex in project MaterialNavigationDrawer by neokree.
the class BackToFirst method init.
@Override
public void init(Bundle savedInstanceState) {
this.addSection(newSection("Section 1", new FragmentIndex()));
this.addSection(newSection("Section 2", new FragmentIndex()));
this.addSection(newSection("Section 3", R.drawable.ic_mic_white_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#9c27b0")));
this.addSection(newSection("Section", R.drawable.ic_hotel_grey600_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#03a9f4")));
// create bottom section
this.addBottomSection(newSection("Bottom Section", R.drawable.ic_settings_black_24dp, new Intent(this, Settings.class)));
// add pattern
this.setBackPattern(MaterialNavigationDrawer.BACKPATTERN_BACK_TO_FIRST);
}
use of it.neokree.example.mockedFragments.FragmentIndex in project MaterialNavigationDrawer by neokree.
the class Accounts method init.
@Override
public void init(Bundle savedInstanceState) {
// add accounts
MaterialAccount account = new MaterialAccount(this.getResources(), "NeoKree", "neokree@gmail.com", R.drawable.photo, R.drawable.bamboo);
this.addAccount(account);
MaterialAccount account2 = new MaterialAccount(this.getResources(), "Hatsune Miky", "hatsune.miku@example.com", R.drawable.photo2, R.drawable.mat2);
this.addAccount(account2);
MaterialAccount account3 = new MaterialAccount(this.getResources(), "Example", "example@example.com", R.drawable.photo, R.drawable.mat3);
this.addAccount(account3);
// set listener
this.setAccountListener(this);
// create sections
this.addSection(newSection("Section 1", new FragmentIndex()));
this.addSection(newSection("Section 2", new FragmentIndex()));
this.addSection(newSection("Section 3", R.drawable.ic_mic_white_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#9c27b0")));
this.addSection(newSection("Section", R.drawable.ic_hotel_grey600_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#03a9f4")));
// create bottom section
this.addBottomSection(newSection("Bottom Section", R.drawable.ic_settings_black_24dp, new Intent(this, Settings.class)));
}
use of it.neokree.example.mockedFragments.FragmentIndex in project MaterialNavigationDrawer by neokree.
the class CustomDrawerHeader method init.
@Override
public void init(Bundle savedInstanceState) {
// create and set the header
View view = LayoutInflater.from(this).inflate(R.layout.custom_drawer, null);
setDrawerHeaderCustom(view);
// create sections
this.addSection(newSection("Section 1", new FragmentIndex()));
this.addSection(newSection("Section 2", new FragmentIndex()));
this.addSection(newSection("Section 3", R.drawable.ic_mic_white_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#9c27b0")));
this.addSection(newSection("Section", R.drawable.ic_hotel_grey600_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#03a9f4")));
// create bottom section
this.addBottomSection(newSection("Bottom Section", R.drawable.ic_settings_black_24dp, new Intent(this, Settings.class)));
}
use of it.neokree.example.mockedFragments.FragmentIndex in project MaterialNavigationDrawer by neokree.
the class NoDrawerHeader method init.
@Override
public void init(Bundle savedInstanceState) {
// create sections
this.addSection(newSection("Section 1", new FragmentIndex()));
this.addSection(newSection("Section 2", new FragmentIndex()));
this.addSection(newSection("Section 3", R.drawable.ic_mic_white_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#9c27b0")));
this.addSection(newSection("Section", R.drawable.ic_hotel_grey600_24dp, new FragmentButton()).setSectionColor(Color.parseColor("#03a9f4")));
// create bottom section
this.addBottomSection(newSection("Bottom Section", R.drawable.ic_settings_black_24dp, new Intent(this, Settings.class)));
}
Aggregations