How do I shift the layout to the bottom of the view
I am trying to push my included view to the bottom of the layout, however
I am not having any luck.Currently it's placed at the top of the
layout.The code for the same is as follows:
<?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:background="@color/altercolor2"
android:clickable="true"
android:orientation="vertical" >
<include
layout="@layout/layout_grid_details_header_view"
android:visibility="gone" />
<include layout="@layout/last_updated_time" />
<RelativeLayout
android:id="@+id/markets_column_names"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/black"
android:paddingBottom="3dp" >
<TextView
android:id="@+id/markets_column_name1"
android:layout_width="75dp"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/markets_column_name2"
android:textSize="12sp"
android:gravity="right" />
<TextView
android:id="@+id/markets_column_name2"
android:layout_width="75dp"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/markets_column_name3"
android:textSize="12sp"
android:gravity="right" />
<TextView
android:id="@+id/markets_column_name3"
android:layout_width="85dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:textSize="12sp"
android:paddingRight="6dp"
android:gravity="right" />
</RelativeLayout>
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/markets_grid_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<include layout="@layout/loading_no_results" />
</LinearLayout>
The main thing I am looking to switch at the bottom of the list is :
<include layout="@layout/last_updated_time" /> so, I tried I also tried
setting paddingbottom andlayout_below: relavitive layout id, and tried
setting layout_gravity = bottom and gravity = botttom, still no luck.Any
clue how to push this at the bottom of the view such that it still remains
visible even if the list is long, but at the bottom of the view, like
overlapping the list view at the bottom.
Thanks!Justin
No comments:
Post a Comment