本文整理汇总了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);
}
示例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());
}
示例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));
}
}