Sunday, May 15, 2011

Scrollable Text View in andriod


This article helps to making Scrollable TextView in Android.

We can do it two ways. 1.Create a TextView inside the ScrollView and 2. TextView with dispatch Events.


Create a TextView inside the ScrollView
< ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content"
android:fillViewport="true">
< LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
< TextView android:text="@+id/TextView01"
android:id="@+id/mTextView"
android:layout_width="fill_parent"
android:layout_height="fill_parent">< / TextView>

< / LinearLayout>
< / ScrollView>

Activity Implementation
mTextView = (TextView) findViewById(R.id.logTextView);
mTextView .setText("");
mTextView .setMovementMethod(ScrollingMovementMethod.getInstance());

6 comments:

  1. Hey, I have a question about this, could you email me?

    ReplyDelete
  2. I will try it out and share the experiences. It will take some time, however. :-)android apps

    ReplyDelete
  3. I heard a lot about android apps. These are mobile applications. I would like to know more about these.
    fashion clothing store

    ReplyDelete
  4. Thanks for sharing this update and keep posting, Rize Android Apps Development services are excellent and they are professionals

    ReplyDelete
  5. Android application Developers: If you are an android developer, and you know what you are doing, then there is nothing to stop you. Search engines and the Start Device Partnership designed this free to mix technological innovation with pattern and generate something that is basically awesome. The teams of android developers are always prepared to come up with something new and exciting. These aspects have made android operating system growth such a profitable business probability.

    ReplyDelete
  6. Android have a large share in today's mobile market.Thank you for sharing this useful infomation.

    ReplyDelete