use of android.widget.ScrollView in project glitch-hq-android by tinyspeck.
the class MailChooseRecipientFragment method scrollToTop.
protected void scrollToTop() {
ScrollView sv = (ScrollView) m_root.findViewById(R.id.RecipientsScrollView);
sv.smoothScrollTo(0, 0);
}
use of android.widget.ScrollView in project glitch-hq-android by tinyspeck.
the class MailboxFragment method showMailboxPage.
private void showMailboxPage() {
boolean bHas = m_mailList.size() > 0;
m_root.findViewById(R.id.mailbox_list_message).setVisibility(bHas ? View.GONE : View.VISIBLE);
m_listView.setVisibility(bHas ? View.VISIBLE : View.GONE);
if (bHas)
m_adapter.notifyDataSetChanged();
if (m_bAppendMode) {
ScrollView sv = (ScrollView) m_root.findViewById(R.id.MailboxScrollView);
Util.delayedFlingOfScrollView(sv, 500, 500);
}
// Update message count?
// Update unread count?
}
use of android.widget.ScrollView in project glitch-hq-android by tinyspeck.
the class MailboxFragment method scrollToTop.
protected void scrollToTop() {
ScrollView sv = (ScrollView) m_root.findViewById(R.id.MailboxScrollView);
sv.smoothScrollTo(0, 0);
}
use of android.widget.ScrollView in project glitch-hq-android by tinyspeck.
the class SkillFragment method scrollToTop.
protected void scrollToTop() {
ScrollView sv = (ScrollView) m_root.findViewById(R.id.SkillScrollView);
sv.smoothScrollTo(0, 0);
}
use of android.widget.ScrollView in project glitch-hq-android by tinyspeck.
the class SnapDetailFragment method onRequestBack.
@Override
public void onRequestBack(String method, JSONObject response) {
if (method == "snaps.detail") {
receiveSnap(response);
if (m_bRefreshToBottom) {
m_bRefreshToBottom = false;
ScrollView sv = (ScrollView) m_root.findViewById(R.id.snap_detail_scrollview);
sv.fullScroll(ScrollView.FOCUS_DOWN);
}
} else if (method == "snaps.comment") {
m_bRefreshToBottom = true;
getSnap();
}
onRequestComplete();
}
Aggregations