1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -05:00

Always scroll if not using full channel view

This commit is contained in:
Sebastian Kaspari 2010-03-18 20:26:04 +01:00
parent 61d1713a56
commit d721599351
2 changed files with 3 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public class DeckAdapter extends BaseAdapter
list.setPadding(5, 5, 5, 5); list.setPadding(5, 5, 5, 5);
list.setVerticalFadingEdgeEnabled(false); list.setVerticalFadingEdgeEnabled(false);
list.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_INSET); list.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_INSET);
list.setTranscriptMode(ListView.TRANSCRIPT_MODE_NORMAL); list.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
list.setSelection(list.getAdapter().getCount() - 1); // scroll to bottom list.setSelection(list.getAdapter().getCount() - 1); // scroll to bottom
return list; return list;

View File

@ -38,6 +38,7 @@ import android.widget.AdapterView;
import android.widget.EditText; import android.widget.EditText;
import android.widget.Gallery; import android.widget.Gallery;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import android.widget.ViewSwitcher; import android.widget.ViewSwitcher;
import android.widget.AdapterView.OnItemClickListener; import android.widget.AdapterView.OnItemClickListener;
@ -279,6 +280,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
Conversation conversation = deckAdapter.getItem(position); Conversation conversation = deckAdapter.getItem(position);
MessageListView canvas = deckAdapter.renderConversation(conversation, switcher); MessageListView canvas = deckAdapter.renderConversation(conversation, switcher);
canvas.setTranscriptMode(ListView.TRANSCRIPT_MODE_NORMAL);
canvas.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); canvas.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
canvas.setDelegateTouchEvents(false); // Do not delegate canvas.setDelegateTouchEvents(false); // Do not delegate