admin 管理员组

文章数量: 887021


2023年12月23日发(作者:internet官网下载)

art();

Log.d("MyDebug", "onRestart"); }

@Override protected void onPause() { // TODO Auto-generated method stub e();

Log.d("MyDebug", "onPause"); } @Override protected void onResume() { // TODO Auto-generated method stub me();

Log.d("MyDebug", "onResume"); }

@Override protected void onDestroy() { // TODO Auto-generated method stub roy();

Log.d("MyDebug", "onDestroy"); }}

_ckage ;import ty;import ;import ox;import ndButton;import ew;public class _CheckBox extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub te(savedInstanceState); tentView(ox); setTitle("CheckBox");

CheckBox chk = (CheckBox) ewById(1); // setOnCheckedChangeListener() - 响应复选框的选中状态改变事件 heckedChangeListener(new kedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { TextView txt = (TextView) _ewById(ew); t("CheckBox01 的选中状态:" + f(isChecked));

} }); }}6、RadioButton(单选框控件) 的

include__ckage ;import ty;import ;public class _Include extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub te(savedInstanceState); tentView(e); setTitle("Include"); }}19、VideoView(视频播放控件) 的

_

package ;import ty;import ;import ;import ontroller;import iew;public class _VideoView extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub te(savedInstanceState); tentView(iew); setTitle("VideoView");

VideoView videoView = (VideoView) findViewById(iew);

// 指定需要播放的视频的地址 eoURI(("ce:///" + )); // eoPath();

// 设置播放器的控制条 iaController(new MediaController(this)); // 开始播放视频 (); }}20、WebView(浏览器控件) 的

_


本文标签: 控件 视频 播放 选中 状态