Android - Dock Textview and button on bottom of page -


i have no idea how put part of textview , buttons on bottom of page. tried gravity bottom, etc.. didnt work.

<scrollview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.tiagosilva.amob_android.homefragment" android:background="@color/amob_gray">  <linearlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:padding="15dp">      <textview         android:id="@+id/textview10"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="company"         android:textcolor="@android:color/white"         android:textsize="20sp"         android:textstyle="bold" />      <textview         android:id="@+id/textview11"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:paddingtop="10dp"         android:text="@string/welcomeamobhome"         android:textcolor="@android:color/white"         android:textsize="14sp" />       <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="follow on our social networks"         android:textsize="20dp"         android:textcolor="@android:color/white" />      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="horizontal"         android:weightsum="5">          <button             android:id="@+id/btn_facebook"             android:layout_width="0dp"             android:layout_weight="1"             android:layout_height="54dp"             android:background="@drawable/facebook_icon"             android:layout_margin="10dp"/>          <button             android:id="@+id/btn_twitter"             android:layout_width="0dp"             android:layout_weight="1"             android:layout_height="55dp"             android:background="@drawable/twitter_icon"             android:layout_margin="10dp"/>          <button             android:id="@+id/btn_youtube"             android:layout_width="0dp"             android:layout_weight="1"             android:layout_height="50dp"             android:background="@drawable/instagram_icon"             android:layout_margin="10dp"/>          <button             android:id="@+id/btn_instagram"             android:layout_width="0dp"             android:layout_weight="1"             android:layout_height="50dp"             android:background="@drawable/youtube_icon"             android:layout_margin="10dp"/>          <button             android:id="@+id/btn_flickr"             android:layout_width="0dp"             android:layout_weight="1"             android:layout_height="49dp"             android:background="@drawable/flikr_icon"             android:layout_margin="10dp"/>      </linearlayout>  </linearlayout> 

i want dock buttons , textview says "follow on our social networks".

enter image description here

something can you,

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.example.tiagosilva.amob_android.homefragment" android:background="@color/amob_gray">  <scrollview     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@color/grey"     android:fillviewport="true">      <relativelayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="vertical"         android:padding="15dp">          <textview             android:id="@+id/textview10"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:text="company"             android:textcolor="@android:color/white"             android:textsize="20sp"             android:textstyle="bold"/>          <textview             android:id="@+id/textview11"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:paddingtop="10dp"             android:text="@string/welcomeamobhome"             android:textcolor="@android:color/white"             android:textsize="14sp"             android:layout_below="@id/textview10"/>           <textview             android:id="@+id/textview12"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="follow on our social networks"             android:textcolor="@android:color/white"             android:textsize="20dp"             android:layout_below="@id/textview11"/>          <linearlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:orientation="horizontal"             android:weightsum="5"             android:layout_below="@id/textview12"             android:gravity="bottom"             android:layout_alignparentbottom="true">              <button                 android:id="@+id/btn_facebook"                 android:layout_width="0dp"                 android:layout_height="54dp"                 android:layout_margin="10dp"                 android:layout_weight="1"                 android:background="@drawable/facebook_icon"/>              <button                 android:id="@+id/btn_twitter"                 android:layout_width="0dp"                 android:layout_height="55dp"                 android:layout_margin="10dp"                 android:layout_weight="1"                 android:background="@drawable/twitter_icon"/>              <button                 android:id="@+id/btn_youtube"                 android:layout_width="0dp"                 android:layout_height="50dp"                 android:layout_margin="10dp"                 android:layout_weight="1"                 android:background="@drawable/instagram_icon"/>              <button                 android:id="@+id/btn_instagram"                 android:layout_width="0dp"                 android:layout_height="50dp"                 android:layout_margin="10dp"                 android:layout_weight="1"                 android:background="@drawable/youtube_icon"/>              <button                 android:id="@+id/btn_flickr"                 android:layout_width="0dp"                 android:layout_height="49dp"                 android:layout_margin="10dp"                 android:layout_weight="1"                 android:background="@drawable/flikr_icon"/>          </linearlayout>      </relativelayout> </scrollview> 


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -