help inserting a scroller in AbsoluteLayout

Put your problem here if it does not fit any of the other categories.

help inserting a scroller in AbsoluteLayout

Postby neosephiroth86 » Wed Oct 14, 2009 6:31 pm

hi!i'm a very newbie in android programming i would like to introduce a simple vertical scroller in my layout.
Can i do that by simply changing my layout main file?here it is,thanks

<?xml version="1.0" encoding="utf-8"?>

<AbsoluteLayout

android:layout_width="fill_parent"

android:layout_height="fill_parent"

xmlns:android="http://schemas.android.com/apk/res/android"

>


<TextView

android:layout_width="fill_parent"

android:text="Algoritmo del Banchiere in Android!!!" android:layout_height="fill_parent"/>


<TextView

android:layout_height="17px"

android:layout_x="40px"

android:layout_y="32px"

android:text="Numero di Processi" android:layout_width="fill_parent" android:id="@+id/processi">

</TextView>

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_x="40px"

android:layout_y="82px"

android:text="Numero di Risorse" android:id="@+id/risorse">

</TextView>



<TextView

android:id="@+id/widget31"

android:layout_width="wrap_content"

android:layout_height="18px"

android:text="Tip Amout"

android:layout_x="40px"

android:layout_y="262px"

>

</TextView>

<TextView

android:id="@+id/widget32"

android:layout_width="wrap_content"

android:layout_height="18px"

android:text="Total Per Person"

android:layout_x="40px" android:layout_y="3520px">

</TextView>

<TextView

android:id="@+id/widget33"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Total To Pay"

android:layout_x="40px"

android:layout_y="302px"

>

</TextView>

<Button

android:layout_width="87px"

android:layout_height="wrap_content"

android:layout_x="40px"

android:layout_y="182px"

android:text="Calcola!" android:id="@+id/calcola">

</Button>

<Button

android:layout_width="86px"

android:layout_height="wrap_content"

android:text="Reset"

android:layout_x="140px"

android:layout_y="182px"

android:id="@+id/reset">

</Button>

<EditText

android:layout_width="wrap_content"

android:layout_height="35px"

android:text="100"

android:textSize="18sp"

android:layout_x="200px"

android:layout_y="22px"

android:id="@+id/numerodiprocessi">

</EditText>

<EditText

android:layout_width="51px"

android:layout_height="36px"

android:text="10"

android:textSize="18sp"

android:layout_x="200px"

android:layout_y="72px"

android:autoText="false" android:id="@+id/numerodirisorse">

</EditText>



<TextView

android:id="@+id/txttipamount"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text=""

android:layout_x="200px"

android:layout_y="262px"

>

</TextView>

<TextView

android:id="@+id/txttotal"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text=""

android:layout_x="200px"

android:layout_y="302px"

>

</TextView>

<TextView

android:id="@+id/txtperperson"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text=""

android:layout_x="200px"

android:layout_y="352px"

>

</TextView>

</AbsoluteLayout>
neosephiroth86
Freshman
Freshman
 
Posts: 4
Joined: Mon Sep 28, 2009 3:22 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 29 guests