Added new layout to Announcement and assignment with attachment tags

This commit is contained in:
Caesar2011
2018-10-24 00:15:17 +02:00
parent 14cf917ec8
commit dddfe3b1d2
12 changed files with 142 additions and 125 deletions

View File

@@ -2,10 +2,22 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="20dp">
android:padding="15dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/FUTheme.itemValue"
android:id="@+id/notes"/>
<com.cunoraz.tagview.TagView
xmlns:tagview="http://schemas.android.com/apk/res-auto"
android:layout_below="@id/notes"
android:id="@+id/tag_group"
android:layout_width="match_parent"
android:layout_height="match_parent"
tagview:lineMargin="5dp"
tagview:tagMargin="5dp"
tagview:textPaddingLeft="8dp"
tagview:textPaddingTop="5dp"
tagview:textPaddingRight="8dp"
tagview:textPaddingBottom="5dp" />
</RelativeLayout>

View File

@@ -7,12 +7,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/FUTheme.itemValue"
android:id="@+id/category"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/category"
style="@style/FUTheme.itemValue"
android:id="@+id/notes"/>
<LinearLayout
android:layout_width="wrap_content"

View File

@@ -67,4 +67,5 @@
<string name="vegan">Vegan</string>
<string name="vegetarian">Vegetarisch</string>
<string name="bio">Aus biologischem Anbau</string>
<string name="attachment_nr">%1$d. Anhang</string>
</resources>

View File

@@ -75,4 +75,5 @@
<string name="vegetarian">Vegetarian</string>
<string name="bio">Organic Food</string>
<string name="msc" translatable="false">MSC</string>
<string name="attachment_nr">Attachment #%1$d</string>
</resources>