當前位置: 首頁>>代碼示例>>Java>>正文


Java ScrollView.fullScroll方法代碼示例

本文整理匯總了Java中android.widget.ScrollView.fullScroll方法的典型用法代碼示例。如果您正苦於以下問題:Java ScrollView.fullScroll方法的具體用法?Java ScrollView.fullScroll怎麽用?Java ScrollView.fullScroll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.widget.ScrollView的用法示例。


在下文中一共展示了ScrollView.fullScroll方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onReceive

import android.widget.ScrollView; //導入方法依賴的package包/類
@Override
public void onReceive(Context context, Intent intent) {
    TextView progressView = (TextView) findViewById(R.id.wifi_progress);
    progressView.append(intent.getStringExtra(NewBookListenerService.BROADCAST_BOOK_LISTENER_PROGRESS_CONTENT));
    // Scroll to the bottom so the new message is visible
    // see https://stackoverflow.com/questions/3506696/auto-scrolling-textview-in-android-to-bring-text-into-view
    // Hints there suggest we might not need a scroll view wrapped around our text view...we can make the
    // text view itself scrollable. That might be more efficient for a long report.
    // This is good enough for now.
    ScrollView progressScroller = (ScrollView) findViewById(R.id.wifi_progress_scroller);
    progressScroller.fullScroll(View.FOCUS_DOWN);
}
 
開發者ID:BloomBooks,項目名稱:BloomReader,代碼行數:13,代碼來源:GetFromWiFiActivity.java

示例2: onCreate

import android.widget.ScrollView; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    scrollViewLog = (ScrollView) findViewById(R.id.scrollViewLog);
    textViewLog = (TextView) findViewById(R.id.textViewLog);
    proxyIpAddEt = (EditText) findViewById(R.id.proxy_ip_add_et);
    setttingLL = (LinearLayout) findViewById(R.id.setting_ll);
    proxyIpPortEt = (EditText) findViewById(R.id.proxy_ip_port_et);
    proxyAppEt = (EditText) findViewById(R.id.proxy_app_et);
    ipChangeTips = (TextView) findViewById(R.id.ip_change_tips);
    switchProxy = (SwitchButton) findViewById(R.id.proxy_switch);
    mCalendar = Calendar.getInstance();


    ipChangeTips.setText("");
    textViewLog.setText(GL_HISTORY_LOGS);
    scrollViewLog.fullScroll(ScrollView.FOCUS_DOWN);


    LocalVpnService.addOnStatusChangedListener(this);
    switchProxy.setChecked(LocalVpnService.IsRunning);
    switchProxy.setOnClickListener(this);
    switchProxy.setOnCheckedChangeListener(this);

    if (!TextUtils.isEmpty(readConfigUrl())) {
        proxyIpAddEt.setText(readConfigUrl());
    }
    System.out.println("oncreate vpn");
    duelIntent(getIntent());
}
 
開發者ID:w22ee,項目名稱:onekey-proxy-android,代碼行數:33,代碼來源:MainActivity.java

示例3: onCreate

import android.widget.ScrollView; //導入方法依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    scrollViewLog = (ScrollView) findViewById(R.id.scrollViewLog);
    textViewLog = (TextView) findViewById(R.id.textViewLog);
    findViewById(R.id.ProxyUrlLayout).setOnClickListener(this);
    findViewById(R.id.ProxyUrlShow).setOnClickListener(this);
    findViewById(R.id.AppSelectLayout).setOnClickListener(this);

    textViewProxyUrl = (TextView) findViewById(R.id.textViewProxyUrl);
    textViewProxyUrlshow = (TextView) findViewById(R.id.textViewProxyUrlshow);
    String ProxyUrl = readProxyUrl();
    if (TextUtils.isEmpty(ProxyUrl)) {
        textViewProxyUrl.setText(R.string.config_not_set_value);
    } else {
        textViewProxyUrl.setText(ProxyUrl);
        String proxyUrl_show = readProxyUrlShow();
        textViewProxyUrlshow.setText(proxyUrl_show);
    }

    textViewLog.setText(GL_HISTORY_LOGS);
    scrollViewLog.fullScroll(ScrollView.FOCUS_DOWN);

    mCalendar = Calendar.getInstance();
    LocalVpnService.addOnStatusChangedListener(this);

    //Pre-App Proxy
    if (AppProxyManager.isLollipopOrAbove) {
        new AppProxyManager(this);
        textViewProxyApp = (TextView) findViewById(R.id.textViewAppSelectDetail);
    } else {
        ((ViewGroup) findViewById(R.id.AppSelectLayout).getParent()).removeView(findViewById(R.id.AppSelectLayout));
        ((ViewGroup) findViewById(R.id.textViewAppSelectLine).getParent()).removeView(findViewById(R.id.textViewAppSelectLine));
    }
}
 
開發者ID:IronMan001,項目名稱:ss-android,代碼行數:38,代碼來源:MainActivity.java


注:本文中的android.widget.ScrollView.fullScroll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。