Fix top list item being hidden

This commit is contained in:
Rahul Kumar Patel
2020-04-23 14:07:00 +05:30
parent cb6e742f7f
commit e2c7ea0dc2
5 changed files with 29 additions and 23 deletions

View File

@@ -117,9 +117,7 @@ public class SubCategoryFragment extends BaseFragment implements
setupRecycler();
model = new ViewModelProvider(this).get(CategoryAppsModel.class);
model.getCategoryApps().observe(getViewLifecycleOwner(), appList -> {
dispatchAppsToAdapter(appList);
});
model.getCategoryApps().observe(getViewLifecycleOwner(), this::dispatchAppsToAdapter);
model.fetchCategoryApps(CategoryAppsActivity.categoryId, getSubcategory(), false);
}

View File

@@ -62,6 +62,7 @@ import com.aurora.store.ui.single.activity.BaseActivity;
import com.aurora.store.ui.single.activity.DownloadsActivity;
import com.aurora.store.ui.single.activity.ManualDownloadActivity;
import com.aurora.store.ui.view.ViewFlipper2;
import com.aurora.store.util.Accountant;
import com.aurora.store.util.ContextUtil;
import com.aurora.store.util.Log;
import com.aurora.store.util.PackageUtil;

View File

@@ -4,27 +4,34 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/search_bar" />
<fragment
android:id="@+id/nav_host_category"
android:name="androidx.navigation.fragment.NavHostFragment"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:defaultNavHost="true"
app:navGraph="@navigation/nav_graph_category" />
android:layout_height="match_parent">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
style="@style/Widget.Aurora.BottomNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:backgroundTint="?android:colorBackground"
app:elevation="6dp"
app:itemTextAppearanceActive="@style/TextAppearance.Aurora.BottomNav.Active"
app:itemTextAppearanceInactive="@style/TextAppearance.Aurora.BottomNav.Inactive"
app:menu="@menu/navigation_category" />
<include layout="@layout/search_bar" />
<fragment
android:id="@+id/nav_host_category"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/search_bar"
app:defaultNavHost="true"
app:navGraph="@navigation/nav_graph_category" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
style="@style/Widget.Aurora.BottomNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
app:backgroundTint="?android:colorBackground"
app:elevation="6dp"
app:itemTextAppearanceActive="@style/TextAppearance.Aurora.BottomNav.Active"
app:itemTextAppearanceInactive="@style/TextAppearance.Aurora.BottomNav.Inactive"
app:menu="@menu/navigation_category" />
</RelativeLayout>
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
android:id="@+id/filter_fab"

View File

@@ -27,7 +27,6 @@
android:id="@+id/view_flipper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/layout_top"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
<com.aurora.store.ui.view.placeholder.ProgressView

View File

@@ -21,6 +21,7 @@
<com.google.android.material.appbar.AppBarLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/Widget.AppBar"
android:id="@+id/search_bar"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:translationZ="1dp"