Added News Fragment
This commit is contained in:
9
app/src/main/res/drawable/ic_chat_bubble.xml
Normal file
9
app/src/main/res/drawable/ic_chat_bubble.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M20,2H4c-1.1,0 -2,0.9 -2,2v18l4,-4h14c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2z"/>
|
||||
</vector>
|
||||
14
app/src/main/res/layout/fragment_news.xml
Normal file
14
app/src/main/res/layout/fragment_news.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".fragments.NewsFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/hello_blank_fragment" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -7,15 +7,21 @@
|
||||
android:icon="@drawable/ic_local_dining"
|
||||
android:title="@string/canteen_plan"
|
||||
android:orderInCategory="200" />
|
||||
<item
|
||||
android:id="@+id/nav_news"
|
||||
android:icon="@drawable/ic_chat_bubble"
|
||||
android:title="@string/news"
|
||||
android:orderInCategory="400"/>
|
||||
</group>
|
||||
|
||||
<item android:title="@string/options">
|
||||
<item android:title="@string/options"
|
||||
android:orderInCategory="599">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/nav_share"
|
||||
android:icon="@drawable/ic_menu_share"
|
||||
android:title="@string/share"
|
||||
android:orderInCategory="600"/>
|
||||
android:orderInCategory="700"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
||||
@@ -22,21 +22,26 @@
|
||||
android:icon="@drawable/ic_settings"
|
||||
android:title="@string/settings"
|
||||
android:orderInCategory="300"/>
|
||||
<item
|
||||
android:id="@+id/nav_news"
|
||||
android:icon="@drawable/ic_chat_bubble"
|
||||
android:title="@string/news"
|
||||
android:orderInCategory="400"/>
|
||||
</group>
|
||||
|
||||
<item android:title="@string/options"
|
||||
android:orderInCategory="499">
|
||||
android:orderInCategory="599">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/nav_logout"
|
||||
android:icon="@drawable/ic_exit_to_app"
|
||||
android:title="@string/log_out"
|
||||
android:orderInCategory="500"/>
|
||||
android:orderInCategory="600"/>
|
||||
<item
|
||||
android:id="@+id/nav_share"
|
||||
android:icon="@drawable/ic_menu_share"
|
||||
android:title="@string/share"
|
||||
android:orderInCategory="600"/>
|
||||
android:orderInCategory="700"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
||||
@@ -78,4 +78,5 @@
|
||||
<string name="lecturers">Dozenten</string>
|
||||
<string name="mail_icon">Mail Icon</string>
|
||||
<string name="mail_default_text">Hallo %1$s, \n\n\n\nMit freundlichen Grüßen\n\n\n\nGesendet von der FUPlanner Android App</string>
|
||||
<string name="news">Neuigkeiten</string>
|
||||
</resources>
|
||||
@@ -86,4 +86,5 @@
|
||||
<string name="lecturers">Lecturers</string>
|
||||
<string name="mail_icon">Mail Icon</string>
|
||||
<string name="mail_default_text">Dear %1$s, \n\n\n\nYours sincerely\n\n\n\nSend by FUPlanner Android App</string>
|
||||
<string name="news">News</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user