Search in sources :

Example 51 with ScrollView

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);
}
Also used : ScrollView(android.widget.ScrollView)

Example 52 with ScrollView

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?
}
Also used : ScrollView(android.widget.ScrollView)

Example 53 with ScrollView

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);
}
Also used : ScrollView(android.widget.ScrollView)

Example 54 with ScrollView

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);
}
Also used : ScrollView(android.widget.ScrollView)

Example 55 with ScrollView

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();
}
Also used : ScrollView(android.widget.ScrollView)

Aggregations

ScrollView (android.widget.ScrollView)363 View (android.view.View)173 TextView (android.widget.TextView)149 LinearLayout (android.widget.LinearLayout)93 ImageView (android.widget.ImageView)65 ViewGroup (android.view.ViewGroup)53 Button (android.widget.Button)36 EditText (android.widget.EditText)36 ListView (android.widget.ListView)29 RecyclerView (android.support.v7.widget.RecyclerView)25 Intent (android.content.Intent)24 AbsListView (android.widget.AbsListView)24 AdapterView (android.widget.AdapterView)24 GridLayout (android.widget.GridLayout)24 ArrayList (java.util.ArrayList)21 SuppressLint (android.annotation.SuppressLint)20 WebView (android.webkit.WebView)19 FrameLayout (android.widget.FrameLayout)19 Dialog (android.app.Dialog)17 DialogInterface (android.content.DialogInterface)16