mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
* changed layout and implemented archived notificaitons feature * set different texts for toolbar,menu option and no notification text in archived * modified the startup intent for NotificationsActivity * disabled swipe on archived * commit * fixed navigation drawer on notification activity * handled on back pressed * updated strings.xml * removed TODO * some minor changes * set progress bar visibility * some code quality changes * commit * some code quality changes * removing unused import statements
74 lines
No EOL
2.7 KiB
XML
74 lines
No EOL
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<include
|
|
android:id="@+id/toolbar"
|
|
layout="@layout/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/toolbar">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/listView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/no_notification_background"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@+id/toolbar">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="110dp"
|
|
android:layout_height="160dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerHorizontal="true"
|
|
app:srcCompat="@drawable/ic_notifications_off_black_24dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/no_notification_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/imageView"
|
|
android:layout_centerHorizontal="true"
|
|
android:text="@string/no_notification"
|
|
android:textSize="20sp" />
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<android.support.design.widget.NavigationView
|
|
android:id="@+id/navigation_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
app:headerLayout="@layout/drawer_header"
|
|
app:menu="@menu/drawer"/>
|
|
|
|
</android.support.v4.widget.DrawerLayout> |