android - Problems with ViewPager / Fragments bottomLayout -


what's up. i'm using viewpager 3 other fragments. each fragment contains own components. 1 of components it's linearlayout set alignparentbottom="true". although, when turn on app, can't barely see content of bottom. knows how fix this?

mainactivity xml:

<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.coordinatorlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true" tools:context="com.example.victorvicari.actionbarteste.mainactivity">  <android.support.design.widget.appbarlayout     android:id="@+id/appbar"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:paddingtop="@dimen/appbar_padding_top"     android:theme="@style/apptheme.appbaroverlay">      <android.support.v7.widget.toolbar         android:id="@+id/toolbar"         android:layout_width="match_parent"         android:layout_height="30dp"         android:background="?attr/colorprimary"         app:popuptheme="@style/apptheme.popupoverlay"         app:layout_scrollflags="scroll|enteralways">      </android.support.v7.widget.toolbar>      <android.support.design.widget.tablayout         android:id="@+id/tabs"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:fillviewport="false" />  </android.support.design.widget.appbarlayout>  <android.support.v4.view.viewpager     android:id="@+id/container"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:background="@color/colortextfloatingbtn"     app:layout_behavior="@string/appbar_scrolling_view_behavior"/>  </android.support.design.widget.coordinatorlayout> 

fragment xml:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colortextfloatingbtn" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto">   <android.support.v7.widget.recyclerview     android:id="@+id/recyclerview"     android:scrollbars="vertical"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:cliptopadding="false"     android:elevation="0dp"     android:paddingbottom="80dp"     android:layout_above="@+id/footerlayout"/>  <view     android:id="@+id/view_dividerbottom"     android:layout_above="@+id/footerlayout"     android:background="@color/colorprimary"     android:layout_width="match_parent"     android:layout_height="0.8dp" />  <linearlayout     android:layout_width="match_parent"     android:layout_height="40dp"     android:id="@+id/footerlayout"     android:layout_alignparentbottom="true"     android:orientation="horizontal" >      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="partial:"         android:textsize="18sp"         android:textcolor="@android:color/black"         android:id="@+id/textview12"         android:layout_marginleft="16dp"         android:textstyle="bold" />      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="0"         android:textsize="18sp"         android:textcolor="@android:color/black"         android:id="@+id/textviewrecebevlrparcialfrag2"/>  </linearlayout>  </relativelayout> 


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -