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:
parent
61d1713a56
commit
d721599351
@ -205,7 +205,7 @@ public class DeckAdapter extends BaseAdapter
|
||||
list.setPadding(5, 5, 5, 5);
|
||||
list.setVerticalFadingEdgeEnabled(false);
|
||||
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
|
||||
|
||||
return list;
|
||||
|
@ -38,6 +38,7 @@ import android.widget.AdapterView;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Gallery;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.ViewSwitcher;
|
||||
import android.widget.AdapterView.OnItemClickListener;
|
||||
@ -279,6 +280,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
Conversation conversation = deckAdapter.getItem(position);
|
||||
|
||||
MessageListView canvas = deckAdapter.renderConversation(conversation, switcher);
|
||||
canvas.setTranscriptMode(ListView.TRANSCRIPT_MODE_NORMAL);
|
||||
canvas.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
|
||||
canvas.setDelegateTouchEvents(false); // Do not delegate
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user