Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Layout issue-footer image to the bottom of screen (Landscape & portrai) irrespective of body content  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ..

i am developing an application with multiple activities . I implemented scroll-View to support for both landscape and patriot modes . One activity is having more content in the body to fill the screen in portrait mode and other don't have.

i want solution for two cases

1. I want my layout justified irrespective of the constant

2. Always the footer image should be at the bottom of the screen

Attaching the layout code ... for reference


<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01" android:background="#FFFF83" android:layout_height="fill_parent" android:fillViewport="false" android:layout_width="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout00" androidrientation="vertical"
android:layout_width="fill_parent" android:background="#FFFF83"
android:layout_height="fill_parent"><ImageView android:id="@+id/ImageView01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:src="@drawable/new_header_7" />

<ImageView android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:id="@+id/ImageView02" android:src="@drawable/new_facebook_7" />
<ImageView android:id="@+id/ImageView06"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:src="@drawable/new_twitter_7" />
<ImageView android:id="@+id/ImageView03"
android:layout_height="wrap_content"
android:src="@drawable/new_youtube_7" android:layout_width="fill_parent">
</ImageView>
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_width="fill_parent"
style="@string/style1"
android:layout_height="fill_parent">
<TextView android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/terms"
android:textColor="#0000FF"
android:clickable="true">
</TextView>
<TextView android:id="@+id/TextView00"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/divider">
</TextView>
<TextView android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:text="@string/playgames"
android:textColor="#333A91">
</TextView>
<TextView android:id="@+id/TextView00"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/divider">
</TextView>
<TextView android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:text="@string/downloads"
android:textColor="#126811">
</TextView>
<TextView android:id="@+id/TextView00"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/divider">
</TextView>
<TextView android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fullsite"
android:textColor="#66815D"
android:clickable="true">
</TextView>
</LinearLayout>
<ImageView android:id="@+id/ImageView07"
android:layout_height="wrap_content"
android:src="@drawable/home_footer_7"
android:layout_width="fill_parent">
</ImageView>
</LinearLayout>
</ScrollView>


Thanks in advance.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!