Programming/Non programming

Tuesday, February 23, 2010

Android:How to get auto scrolling in Linear Layout in Android?

Android:

How to get auto scrolling in Linear Layout in Android?

For example i placed the scroll view code picked up from my main.xml file below, you can copy the same xml code for scrollview mentioned below as same in your xml file too.

Followed from this link:
http://osdir.com/ml/handhelds.android.devel/2008-03/msg00551.html

Note: .. mentioning < or > from the following code ..

..strike....?xml version="1.0" encoding="utf-8"?..
..scrollview xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"..
..linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:scrollbarAlwaysDrawVerticalTrack="true"..
..textview
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="@string/TickerLbl1" android:background="@color/TickTextViewBackCol" android:textStyle="bold" android:id="@+id/TextView"/..
..textview android:id="@+id/TextView01" android:layout_height="wrap_content" android:text="@string/TickerLbl1" android:layout_width="fill_parent" android:textStyle="bold" android:layout_marginTop="2dip" android:background="@color/TickTextViewBackRedColor"..../TextView..

../LinearLayout..
../ScrollView..



Thank you for followers!

Cheers,

M.P.Prabakar
Senior Systems Analyst.

Have fun and be addictive by playing "TossRing" marvelous iPhone game. Link is below..

No comments:

Post a Comment