-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
login check, swiperefresh, date format
- Loading branch information
1 parent
a0d59d8
commit 7145772
Showing
9 changed files
with
169 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<vector android:height="24dp" android:tint="#FFFFFF" | ||
android:viewportHeight="24.0" android:viewportWidth="24.0" | ||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#FF000000" android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,76 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
|
||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout 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:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/swiperefresh" | ||
tools:context="org.fossasia.openevent.general.notification.NotificationFragment"> | ||
|
||
<include layout="@layout/content_no_internet" | ||
android:visibility="gone"/> | ||
<androidx.coordinatorlayout.widget.CoordinatorLayout | ||
android:id="@+id/notificationCoordinatorLayout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
> | ||
|
||
<com.facebook.shimmer.ShimmerFrameLayout | ||
android:id="@+id/shimmerNotifications" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:visibility="gone"> | ||
<include | ||
layout="@layout/content_no_internet" | ||
android:visibility="gone" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
<com.facebook.shimmer.ShimmerFrameLayout | ||
android:id="@+id/shimmerNotifications" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:visibility="gone"> | ||
|
||
<include layout="@layout/placeholder_item_card_notification" /> | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
|
||
<include layout="@layout/placeholder_item_card_notification" /> | ||
<include layout="@layout/placeholder_item_card_notification" /> | ||
|
||
<include layout="@layout/placeholder_item_card_notification" /> | ||
<include layout="@layout/placeholder_item_card_notification" /> | ||
|
||
<include layout="@layout/placeholder_item_card_notification" /> | ||
<include layout="@layout/placeholder_item_card_notification" /> | ||
|
||
<include layout="@layout/placeholder_item_card_notification" /> | ||
<include layout="@layout/placeholder_item_card_notification" /> | ||
|
||
<include layout="@layout/placeholder_item_card_notification" /> | ||
<include layout="@layout/placeholder_item_card_notification" /> | ||
|
||
</LinearLayout> | ||
<include layout="@layout/placeholder_item_card_notification" /> | ||
|
||
</LinearLayout> | ||
|
||
</com.facebook.shimmer.ShimmerFrameLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/noNotification" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:orientation="vertical" | ||
android:visibility="gone"> | ||
|
||
<ImageView | ||
android:layout_width="@dimen/item_image_view" | ||
android:layout_height="@dimen/item_image_view" | ||
app:srcCompat="@drawable/ic_notifications_none" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
</com.facebook.shimmer.ShimmerFrameLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/noNotification" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/no_notification_result" | ||
android:textSize="@dimen/text_size_medium" /> | ||
</LinearLayout> | ||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/notificationRecycler" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
android:layout_gravity="center" | ||
android:gravity="center" | ||
android:orientation="vertical" | ||
android:visibility="gone"> | ||
|
||
<ImageView | ||
android:layout_width="@dimen/item_image_view" | ||
android:layout_height="@dimen/item_image_view" | ||
app:srcCompat="@drawable/ic_notifications_none" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/no_notification_result" | ||
android:textSize="@dimen/text_size_medium" /> | ||
</LinearLayout> | ||
|
||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/notificationRecycler" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" /> | ||
|
||
</androidx.coordinatorlayout.widget.CoordinatorLayout> | ||
</androidx.coordinatorlayout.widget.CoordinatorLayout> | ||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<item | ||
android:id="@+id/notifications" | ||
android:icon="@drawable/ic_notifications_white" | ||
android:title="@string/share" | ||
app:showAsAction="always"/> | ||
|
||
</menu> |