
I implemented a navigation view for the sidebar menu.
I want to add some buttons of social networks after the menu items, which should scroll through the menu (in navigation mode). I tried this way
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="start"
app:headerLayout="@layout/navigation_header"
app:itemTextColor="@color/state_list"
app:itemIconTint="@color/state_list"
app:itemBackground="@drawable/drawer_list_selector"
app:menu="@menu/menu_navigation">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="20dp"
android:layout_gravity="bottom"
android:gravity="center">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:src="@drawable/facebook_icon"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:src="@drawable/twitter_icon"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:src="@drawable/youtube"/>
</LinearLayout>
</LinearLayout>
</android.support.design.widget.NavigationView>
This makes the contents of the footer fixed. which overlaps the menu items.
Any solution?
source
share