Scrolling TextView that automatically scrolls to bottom

by Roman Romano » Mon, 26 Jan 2009 07:17:20 GMT


Sponsored Links
 Hi All,

I have a textview that is wrapped in a scrollview and works nicely.
The only problem is that when text is appended to the textview so as
to induce scrollability, it doesn't automatically scroll to the bottom
of the textview, ihave to manually scroll down.
Is there any way to achieve this 'keep-last-appended-text-in-view'?

many thanks all

Roman

--~--~---------~--~----~------------~-------~--~----~



Scrolling TextView that automatically scrolls to bottom

by Roman Romano » Mon, 26 Jan 2009 22:01:58 GMT


 Fixed it i think.
in the method that appends the text, i needed to set fullScroll
(FOCUS_DOWN) on the ScrollView.
Hope that makes sense to anyone experiencing similar issues
Roman


On Jan 25, 11:17pm, Roman Romano <very.cross...@googlemail.com>


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Scrolling TextView that automatically scrolls to bottom

by mrspiteri » Thu, 29 Jan 2009 01:10:13 GMT


 thanks I was looking for the same thing. it works though it doesn't
seem to scroll to the very bottom...leaves about 1 line so the bottom
(newest line) is slightly faded.





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Upper limit size of ImageView?

Hello,

I have a large ImageView:

<ImageView android:id="@..."
    android:layout_width="7445px" 
    android:layout_height="11998px"
    android:src="@drawable/img">
</ImageView>

the source img.gif file is 1167KB large. When I run my app, it
throws an exception when invoking setContentView(). The error is:

ComponentInfo{...}: android.view.ViewInflate$Inflate Exception: Binary
XML file line #8: Error inflating class java.lang.reflect.Constructor.

Can this have anything to do with the size of the ImageView? Is there an 
upper
limit for the size?

Best regards,
Jakob Bjerre Jensen



--~--~---------~--~----~------------~-------~--~----~

2. Who is responsible for closing FilterableListAdapters on AutoCompleteTextView

Hi,

 You should not be calling the runQuery() method explicitly...are you
overriding the runQuery() method to form your own CursorAdapter?
 I am not sure how your code looks like, but before using the cursor, you
could use:

 if (cursor !=null)
      cursor.invalidate();


 Thanks,
 Megha





--~--~---------~--~----~------------~-------~--~----~

3. Android source isn鈥檛 availa ble ?????????

4. TableRow resizes ok, but is it possible to animate the resize?

5. Who is responsible for closing FilterableListAdapters on AutoCompleteTextView

6. How to return object to another application?

7. import android.content.IntentReceiver (into) file.aidl