• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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" android:orientation="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.

 
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic