Last active
February 13, 2018 10:04
-
-
Save kevinjam/bc6332607bc2279f1d3c4198d942d132 to your computer and use it in GitHub Desktop.
bottom toolbar problem
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout 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" | |
tools:context="com.example.amirsiddique.recyclerview.MainActivity"> | |
<include | |
android:id="@+id/toolbar" | |
layout="@layout/toolbar" /> | |
<LinearLayout | |
android:layout_below="@+id/toolbar" | |
android:id="@+id/spinner_layout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<Spinner | |
android:id="@+id/sectorsSpinner" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:textSize="12sp" /> | |
<Spinner | |
android:id="@+id/indicesSpinner" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:textSize="12sp" /> | |
<Spinner | |
android:id="@+id/sortSpinner" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:textSize="12sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_below="@+id/spinner_layout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/recyclerView_main" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:background="@color/white"> | |
</android.support.v7.widget.RecyclerView> | |
<ProgressBar | |
android:id="@+id/progressBar" | |
style="?android:attr/progressBarStyle" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
/> | |
</LinearLayout> | |
<RelativeLayout | |
android:id="@+id/bottomnavigation" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" > | |
<android.support.design.widget.BottomNavigationView | |
android:id="@+id/bottomNavigation" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/colorPrimary" | |
app:menu="@menu/bottom_navigation_menu"> | |
</android.support.design.widget.BottomNavigationView> | |
</RelativeLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment