Skip to content
Snippets Groups Projects
Commit 7ffeedb9 authored by Lencelot's avatar Lencelot
Browse files

Add new Event

Le boutons + de la page principale permet d'afficher le fragment de création d'événement. Fragment vide pour le moment.
Idem pour le bouton + du menu latéral.
parent d9a9bcef
Branches
No related merge requests found
......@@ -49,7 +49,7 @@ public class MainActivity extends AppCompatActivity {
// menu should be considered as top level destinations.
mAppBarConfiguration = new AppBarConfiguration.Builder(
R.id.nav_home, R.id.nav_gallery, R.id.nav_slideshow,
R.id.nav_tools, R.id.nav_share, R.id.nav_send)
R.id.nav_tools, R.id.nav_share, R.id.nav_newEvent)
.setDrawerLayout(drawer)
.build();
NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
......
......@@ -29,9 +29,9 @@
android:icon="@drawable/ic_menu_share"
android:title="@string/menu_share" />
<item
android:id="@+id/nav_send"
android:icon="@drawable/ic_menu_send"
android:title="@string/menu_send" />
android:id="@+id/nav_newEvent"
android:icon="@android:drawable/ic_menu_add"
android:title="@string/menu_newEvent" />
</menu>
</item>
......
......@@ -36,8 +36,8 @@
tools:layout="@layout/fragment_share" />
<fragment
android:id="@+id/nav_send"
android:id="@+id/nav_newEvent"
android:name="com.example.maillard_clovis_event_manager.ui.NewEvent.NewEventFragment"
android:label="@string/menu_send"
tools:layout="@layout/fragment_newEvent" />
android:label="@string/menu_newEvent"
tools:layout="@layout/fragment_new_event" />
</navigation>
\ No newline at end of file
......@@ -12,7 +12,7 @@
<string name="menu_slideshow">Slideshow</string>
<string name="menu_tools">Tools</string>
<string name="menu_share">Share</string>
<string name="menu_send">Send</string>
<string name="menu_newEvent">New Event</string>
<string name="title_activity_login">Sign in</string>
<string name="prompt_email">E-mail</string>
<string name="prompt_password">Password</string>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment