sakshi puneeth

Greenhorn
+ Follow
since Sep 14, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sakshi puneeth

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.

13 years ago
I am new to android development ... i am trying to build a sample application but i am not able to get the scroll bar bcs of that the last image is coming as pixel size image

Here is the code of the main.xml



can some one help me .. from this problem


Thank in advance ..
13 years ago