feat: Inbox WIP(#222)

This commit is contained in:
ibo 2024-03-06 16:06:56 +01:00 committed by GitHub
parent e50a65571f
commit 2855093f5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 171 additions and 0 deletions

View file

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
android:orientation="vertical">
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/inboxNavBar" />
<nl.joery.animatedbottombar.AnimatedBottomBar
android:id="@+id/inboxNavBar"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_gravity="center_horizontal|bottom"
android:background="?attr/colorSurface"
android:padding="0dp"
app:abb_animationInterpolator="@anim/over_shoot"
app:abb_indicatorAppearance="round"
app:abb_indicatorLocation="top"
app:abb_selectedTabType="text"
app:abb_textAppearance="@style/NavBarText"
app:itemActiveIndicatorStyle="@style/BottomNavBar"
app:itemIconTint="@color/tab_layout_icon"
app:itemRippleColor="#00000000"
app:itemTextAppearanceActive="@style/NavBarText"
app:itemTextAppearanceInactive="@style/NavBarText"
app:itemTextColor="@color/tab_layout_icon" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/feedFragment"
android:name="ani.dantotsu.inbox.FeedFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/notifsFragment"
android:name="ani.dantotsu.inbox.NotifsFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -135,6 +135,18 @@
</FrameLayout>
<ImageButton
android:id="@+id/imageButton"
android:layout_width="47dp"
android:layout_height="47dp"
android:layout_gravity="end|center_vertical"
android:layout_marginEnd="10dp"
android:background="@null"
android:padding="7dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/inbox_empty"
app:tint="@color/bg_white" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/homeUserAvatarContainer"
android:layout_width="52dp"

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>