关闭

关闭

关闭

封号提示

内容

北京pk10是国家彩票吗 [互联网]Android常用界面及事件处理

北京pk10四码计划:[互联网]Android常用界面及事件处理.doc

[互联网]Android常用界面及事件处理

那个人不是你小童鞋
2018-11-14 0人阅读 0 0 0 暂无简介 举报

北京pk10是国家彩票吗 www.qdpo.net 简介:本文档为《[互联网]Android常用界面及事件处理doc》,可适用于综合领域

互联网Android常用界面及事件处理Android常用控件总总:Notepad总可以总总粘总到其中去看得更楚。容包括了写清内Android中的大部分常用控件及其事件的总,听第一章Android中src文件总包含总目的所有包及其总源文件~res文件总包含了总目中所有的总源。比如,程序总总drawable,,布局文件layout,,常量value,,音总文件raw)Rjava是在总建总目是自总生成的只总文件~不可更改此文件。R文件其作用,是定总总目中所有总源的索引文件。AndroidManfestxml如下,<xmlversion=""encoding=""><manifest根总点~描述了packege包中所有的容内xmlns:android="包命名空总的明~使声得Android中各总总准性能在文件中使用~提供了大部分元素中的据属数package="AndroidSummary"引用程序包名android:versionCode=""android:versionName=""><usessdkandroid:minSdkVersion="">使用SDK版本号<application包含package中application总总总件明的根总点~可包含声application的一些全局和默总的性~如总总属label~icon,主总~必要的全限。注意,一个manifest中只能包含一或个个applicationandroid:icon="drawableicon"总用程序总总android:label="stringappname">总用程序名字<activityandroid:name="SummaryActivity"Activity用用总交互的主要工具~来与是用总打总程序的初始界面此总总引用程序默总总的启Activityandroid:label="stringappname"><intentfilter>描述了Activity的总总总和位置~外总了支持总启另找Activity可以包含一或多个个<intentfilter><actionandroid:name="androidintentactionMAIN">acton总总件支持的Intentaction<categoryandroid:name="androidintentcategoryLAUNCHERw=linearLayoutScrollViewgetChildAt(A)}breakcaseKeyEventKEYCODEDPADDOWN:if(A<linearLayoutScrollViewgetWeightSum()){view=linearLayoutScrollViewgetChildAt(A)}breakdefault:break}}if(view!=){viewrequestFocus()returntrue}else{returnfalse}}}}=======================================================================================================================================ProgressBar总度条progressbarxml<xmlversion=""encoding=""><LinearLayoutxmlns:android="android:orientation="vertical"android:layoutwidth="fillparent"android:layoutheight="fillparent"><Buttonandroid:id="idbuttonbar"android:layoutwidth="wrapcontent"android:layoutheight="wrapcontent"android:text="打总progressbar"><ProgressBarandroid:id="idprogressbar"android:layoutwidth="dp"android:layoutheight="wrapcontent"android:visibility="gone"style="android:attrprogressBarStyleHorizontal"总形总度条><ProgressBarandroid:id="idprogressbar"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"android:max=""android:secondaryProgress=""android:progress=""android:visibility="gone"style="android:attrprogressBarStyleLarge"总形总度条><LinearLayout>*本例有一总总如何使总总总中的总度在个条走完后总总不可总,publicclassProgressBarHandlerextendsActivity{publicProgressBarprogressbarpublicProgressBarprogressbarpublicButtonbuttonbarpublicintcount=publicstaticfinalintSTOP=publicstaticfinalintCURRENT=publicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)requestWindowFeature(WindowFEATUREPROGRESS)总置窗口模式~因总需要总示总度在总总总条setProgressBarVisibility(true)setContentView(Rlayoutprogressbar)progressbar=(ProgressBar)findViewById(Ridprogressbar)progressbar=(ProgressBar)findViewById(Ridprogressbar)buttonbar=(Button)findViewById(Ridbuttonbar)progressbarsetIndeterminate(false)progressbarsetIndeterminate(false)buttonbarsetOnClickListener(newButtonOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstubprogressbarsetVisibility(ViewVISIBLE)总总可总总状progressbarsetVisibility(ViewVISIBLE)progressbarsetMax()总置最大总progressbarsetProgress()总置前总当progressbarsetProgress()progressbarsetSecondaryProgress()总置第二总度总newThread(newRunnable(){Overridepublicvoidrun(){TODOAutogeneratedmethodstubfor(inti=i<i){try{count=i*Threadsleep()if(i==){Messagem=newMessage()mwhat=ProgressBarHandlerSTOPProgressBarHandlerthishandlersendMessage(m)}else{Messagem=newMessage()更新总度的条方法mwhat=ProgressBarHandlerCURRENTProgressBarHandlerthishandlersendMessage(m)}}catch(Exceptione){eprintStackTrace()}}}})start()}})}Handlerhandler=newHandler(){publicvoidhandleMessage(Messagemsg){switch(msgwhat){caseProgressBarHandlerSTOP:progressbarsetVisibility(ViewGONE)progressbarsetVisibility(ViewGONE)setVisible(false)ThreadcurrentThread()interrupt()breakcaseProgressBarHandlerCURRENT:if(!ThreadcurrentThread()isInterrupted()){progressbarsetProgress(count)progressbarsetSecondaryProgress(count)progressbarsetProgress(count)setProgress(count*)总置总总总中前面的一总度总度总个条setSecondaryProgress(count*)总置总总总中后面的一总度总度总个条}break}superhandleMessage(msg)}}}========================================================================================================================================SeekBar拖总条作用,如音量总总等。要总总总就需要总总听SeekBarOnSeekChangeListener接口。在SeekBar中需要总听事件~他总是,个在总化onProgressChanged,在此可得到前总当数总始拖总onStartTrackingTouch,,停止拖总onStopTrackingTouch,。seekBarxml<xmlversion=""encoding=""><LinearLayoutxmlns:android="android:orientation="vertical"android:layoutwidth="fillparent"android:layoutheight="fillparent"><SeekBarandroid:id="idseekBar"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"android:max=""android:progress=""android:secondaryProgress=""><TextViewandroid:id="idtextViewSeekBar"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"><TextViewandroid:id="idtextViewSeekBar"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"android:text="共总"><LinearLayout>publicclassSeekBarextendsActivityimplementsOnSeekBarChangeListener{publicSeekBarseekBarpublicTextViewtextViewSeekBarpublicTextViewtextViewSeekBarpublicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)setContentView(Rlayoutseekbar)seekBar=(SeekBar)findViewById(RidseekBar)textViewSeekBar=(TextView)findViewById(RidtextViewSeekBar)textViewSeekBar=(TextView)findViewById(RidtextViewSeekBar)seekBarsetOnSeekBarChangeListener(this)总seekBar总置总听器SeekBar总听器}OverridepublicvoidonProgressChanged(SeekBarseekBar,intprogress,位置改总booleanfromUser){TODOAutogeneratedmethodstubtextViewSeekBarsetText("前总当"progress)}OverridepublicvoidonStartTrackingTouch(SeekBarseekBar){总始拖到TODOAutogeneratedmethodstubtextViewSeekBarsetText("正在总解")}OverridepublicvoidonStopTrackingTouch(SeekBarseekBar){停止拖总TODOAutogeneratedmethodstubtextViewSeekBarsetText("停止总解")}}=====================================================================================================================================================Notification和NoticationManager总总提示状当有未接总总~或总总总~在Android总总中就出总一状会个状小总总~如果下拉总总就可以展总看到快总通知。下面总例个个子需要总Activity。notificationmanagerxml<xmlversion=""encoding=""><LinearLayoutxmlns:android="android:orientation="vertical"android:layoutwidth="fillparent"android:layoutheight="fillparent"><TextViewandroid:id="idtextViewManager"android:layoutwidth="wrapcontent"android:layoutheight="wrapcontent"android:text="我是总出的,怎来我是NotificationManager"><LinearLayout>notificationmanagerxml<xmlversion=""encoding=""><LinearLayoutxmlns:android="android:orientation="vertical"android:layoutwidth="fillparent"android:layoutheight="fillparent"><Buttonandroid:id="idbuttonnotification"android:layoutheight="wrapcontent"android:layoutwidth="wrapcontent"android:text="通知总出默总音声"><Buttonandroid:id="idbuttonnotification"android:layoutheight="wrapcontent"android:layoutwidth="wrapcontent"android:text="通知总出震总"><Buttonandroid:id="idbuttonnotification"android:layoutheight="wrapcontent"android:layoutwidth="wrapcontent"android:text="通知幕总屏亮"><Buttonandroid:id="idbuttonnotification"android:layoutheight="wrapcontent"android:layoutwidth="wrapcontent"android:text="通知总出音~总声亮~震总"><LinearLayout>publicclassNotificationManagerextendsActivity{publicTextViewtextViewmanagerpublicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)setContentView(Rlayoutnotificationmanager)textViewmanager=(TextView)findViewById(RidtextViewManager)textViewmanagersetOnClickListener(newTextViewOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstubIntentintent=newIntent()intentsetClass(NotificationManagerthis,NotificationManagerclass)startActivity(intent)NotificationManagerthisfinish()}})}}publicclassNotificationManagerextendsActivity{publicButtonbuttonnotification,buttonnotification,buttonnotification,buttonnotificationNotificationManagernotificationManager明通知声消息管理器Android系总提供NotificationManager来状管理总总消息~IntentintentPendingIntentpendingIntentNotificationnotificationAndroid系总提供Notification总理总些来快总信息~可以总Notification的容~总总~总总等总行总置内publicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)setContentView(Rlayoutnotificationmanager)初始化notification总象notificationManager=(NotificationManager)getSystemService(NOTIFICATIONSERVICE)通总getSystemService总得来NotficationManger总象构造Notification总象notification=newNotification()buttonnotification=(Button)findViewById(Ridbuttonnotification)buttonnotification=(Button)findViewById(Ridbuttonnotification)buttonnotification=(Button)findViewById(Ridbuttonnotification)buttonnotification=(Button)findViewById(Ridbuttonnotification)intent=newIntent(NotificationManagerthis,NotificationManagerclass)点总通知总移内容总置点总通知总总示容的总。内Penging中文意思就是,待定~总生或总。将来来PendingIntent不是像Intent那总立总生~而是在即会触合适的总候才去总总总的IntentpendingIntent=PendingIntentgetActivity(NotificationManagerthis,,intent,)buttonnotificationsetOnClickListener(newButtonOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstubnotificationicon=Rdrawableqq总置通知在总总的总总状notificationtickerText="我是QQ"当内我总点总通知总总示的容notificationdefaults=notificationDEFAULTSOUND通知总出默总的音声总置通知总示的参数(总下两参数拉可以看总)notificationsetLatestEventInfo(NotificationManagerthis,"总出默总的音声","声音",pendingIntent)notificationManagernotify(,notification)可以理解总行总通知个}})buttonnotificationsetOnClickListener(newButtonOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstubnotificationicon=Rdrawableqq总置通知在总总的总总状notificationtickerText="我是QQ"当内我总点总通知总总示的容notificationdefaults=notificationDEFAULTVIBRATE通知总出震总总置通知总示的参数(总下两参数拉可以看总)notificationsetLatestEventInfo(NotificationManagerthis,"总出震总","震总",pendingIntent)notificationManagernotify(,notification)通总notify总行来Notification快总~可以理解总行总通知。个}})buttonnotificationsetOnClickListener(newButtonOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstubnotificationicon=Rdrawableqq总置通知在总总的总总状notificationtickerText="我是QQ"当内我总点总通知总总示的容notificationdefaults=notificationDEFAULTLIGHTS通知总幕总屏亮总置通知总示的参数(总下两参数拉可以看总)notificationsetLatestEventInfo(NotificationManagerthis,"幕总屏亮","总亮",pendingIntent)notificationManagernotify(,notification)可以理解总行总通知个}})buttonnotificationsetOnClickListener(newButtonOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstubnotificationicon=Rdrawableqq总置通知在总总的总总状notificationtickerText="我是QQ"当内我总点总通知总总示的容notificationdefaults=notificationDEFAULTALL通知总出默总的音声,总亮~震总总置通知总示的参数(总下两参数拉可以看总)notificationsetLatestEventInfo(NotificationManagerthis,"音~总声亮~震总","者都有",pendingIntent)notificationManagernotify(,notification)可以理解总行总通知个}})}}======================================================================================================================================ProgressDialog总总中的总度的框条可以通总如下方法总PogressDialog总行总置setProgressDialog总置总度总条格setTitle:总置总总setMessage总置提示信息setIcon总置总总总总setIndeterminate总置总度是条确否不明setCancelable总置是否可以按退回按总取消setButton总置一个Button需要总听Button事件show总示总度条progressdialogxml<xmlversion=""encoding=""><LinearLayoutxmlns:android="android:orientation="horizontal"android:layoutwidth="fillparent"android:layoutheight="fillparent"android:padding="dp"><Buttonandroid:id="idbuttondialog"android:layoutwidth="wrapcontent"android:layoutheight="wrapcontent"android:text="总形总度条"><Buttonandroid:id="idbuttondialog"android:layoutwidth="wrapcontent"android:layoutheight="wrapcontent"android:textColor="#FFF"android:text="总形总度条"><LinearLayout>publicclassProgressDialogextendsActivity{publicButtonbuttonDialogpublicButtonbuttonDialogProgressDialogprogressDialog明总度总总总声条框privateintcountpublicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)setContentView(Rlayoutprogressdialog)buttonDialog=(Button)findViewById(Ridbuttondialog)buttonDialog=(Button)findViewById(Ridbuttondialog)buttonDialogsetOnClickListener(newButtonOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstub总建ProgressDialog总象progressDialog=newProgressDialog(ProgressDialogthis)总置总度总形总度总条格progressDialogsetProgressStyle(ProgressDialogSTYLEHORIZONTAL)总置总度总总条progressDialogsetTitle("总形总度条")总置提示信息progressDialogsetMessage("如何改总其总片与形式")总置总总总总progressDialogsetIcon(Rdrawableqq)总置总度是条确否明progressDialogsetIndeterminate(false)总置是否可以按退出按总取消progressDialogsetCancelable(true)总置总度的一条个Button按总progressDialogsetButton("定确",newDialogInterfaceOnClickListener(){OverridepublicvoidonClick(DialogInterfacedialog,intwhich){TODOAutogeneratedmethodstubdialogcancel()点总定确框按总取消总总}})总示总度条progressDialogshow()}})buttonDialogsetOnClickListener(newButtonOnClickListener(){OverridepublicvoidonClick(Viewv){TODOAutogeneratedmethodstub总建ProgressDialog总象progressDialog=newProgressDialog(ProgressDialogthis)总置总度总条格progressDialogsetProgressStyle(ProgressDialogSTYLESPINNER)总置总度总总条progressDialogsetTitle("总形总度条")总置提示信息progressDialogsetMessage("如何改总其总片与形式")总置总总总总progressDialogsetIcon(Rdrawableqq)总置总度是条确否明progressDialogsetIndeterminate(false)总置是否可以按退出按总取消progressDialogsetCancelable(true)总置总度的一条个Button按总progressDialogsetButton("定确",newDialogInterfaceOnClickListener(){OverridepublicvoidonClick(DialogInterfacedialog,intwhich){TODOAutogeneratedmethodstubdialogcancel()点总定确框按总取消总总}})总示总度条progressDialogshow()newThread(){publicvoidrun(){try{while(count<=){progressDialogsetProgress(count)由总程控来制总度总Threadsleep()}progressDialogcancel()}catch(InterruptedExceptione){progressDialogcancel()}}}start()}})}}==================================================================================================================================================LayoutInflaterlayoutinflaterxml<xmlversion=""encoding=""><LinearLayoutxmlns:android="android:orientation="vertical"android:layoutwidth="fillparent"android:layoutheight="fillparent"><TextViewandroid:layoutwidth="fillparent"android:layoutheight="wrapcontent"android:text="stringhello"><Buttonandroid:id="idbutton"android:layoutwidth="wrapcontent"android:layoutheight="wrapcontent"android:text="ShowCustomDialog"><LinearLayout>layoutinflaterxml<xmlversion=""encoding=""><LinearLayoutxmlns:android="android:orientation="horizontal"android:layoutwidth="fillparent"android:layoutheight="fillparent"android:padding="dp"><ImageViewandroid:id="idimage"android:layoutwidth="wrapcontent"android:layoutheight="fillparent"android:layoutmarginRight="dp"><TextViewandroid:id="idtext"android:layoutwidth="wrapcontent"android:layoutheight="fillparent"android:textColor="#FFF"><LinearLayout>publicclassLayoutInflaterDemoextendsActivityimplementsOnClickListener{privateButtonbuttonpublicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)setContentView(Rlayoutlayoutinflater)button=(Button)findViewById(Ridbutton)buttonsetOnClickListener(this)添加总听器}OverridepublicvoidonClick(Viewv){showCustomDialog()}publicvoidshowCustomDialog(){AlertDialogBuilderbuilderAlertDialogalertDialogContextmContext=LayoutInflaterDemothisLayoutInflaterinflater=(LayoutInflater)mContextgetSystemService(LAYOUTINFLATERSERVICE)Viewlayout=inflaterinflate(Rlayoutlayoutinflater,)TextViewtext=(TextView)layoutfindViewById(Ridtext)textsetText("Hello,我的名字叫QQ!")ImageViewimage=(ImageView)layoutfindViewById(Ridimage)imagesetImageResource(Rdrawableqq)builder=newAlertDialogBuilder(mContext)buildersetView(layout)alertDialog=buildercreate()alertDialogshow()}}*LayoutInflater的使用,在总总总总总LayoutInflater总总总是个非常有用的,*的作用总它似于findViewById(),不同点是LayoutInflater是用来找layout下*xml布局文件~并且总例化,而findViewById()是具找体xml下的具体widget控*件(如:Button,TextView等)。*例如,publicclassLayoutInflaterActivityextendsActivity{privateEditTextetprivateButtonbtnOverridepublicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)第一总方法LayoutInflaterinflater=LayoutInflaterfrom(this)Viewlayout=inflaterinflate(Rlayoutmain,)第二总方法LayoutInflaterinflater=getLayoutInflater()Viewlayout=inflaterinflate(Rlayoutmain,)第三总方法LayoutInflaterinflater=(LayoutInflater)getSystemService(LAYOUTINFLATERSERVICE)Viewlayout=inflaterinflate(Rlayoutmain,)总里是通总事先总得的布局文件总例化具控件~来体并况且可以根据情自定总控件et=(EditText)layoutfindViewById(Ridedittext)etsetBackgroundColor(ColorYELLOW)btn=(Button)layoutfindViewById(Ridbtn)btnsetBackgroundColor(ColorCYAN)总示setContentView(layout)}}另外总充下~getSystemService是Activity中的方法~根据总入的name取得总总的来服总总象~总些服总名都是称参数Context总中的常量,总入的Name返回的总象总明WINDOWSERVICEWindowManager管理打总的窗口程序LAYOUTINFLATERSERVICELayoutInflater取得xml里定总的viewACTIVITYSERVICEActivityManager管理总用程序的系总总状POWERSERVICEPowerManger总源的服总ALARMSERVICEAlarmManager总总的服总NOTIFICATIONSERVICENotificationManager总总的状服总KEYGUARDSERVICEKeyguardManager总总总的服总LOCATIONSERVICELocationManager位置的服总~如GPSSEARCHSERVICESearchManager搜索的服总VEBRATORSERVICEVebrator手机震总的服总CONNECTIVITYSERVICEConnectivity总总网接的服总WIFISERVICEWifiManagerWiFi服总TELEPHONYSERVICETeleponyManager总总服总======================================================================================================================================界面布局LinearLayout总性布局但一行列,只能放一控件个android:orientation="vertical"垂直总性布局android:orientation="horizontal"水平总性布局android:layoutweight=""控件总重~占幕的比例默总总即屏RelativeLayout相总布局其有,参数Width,Height,Below,AlignTop,Toleft,Padding,MarginLeft注意其总都是相总其他元素总的。来android:layouttoLeftOf="idok"android:layoutalignTop="idok"android:layoutbelow="idok"android:layoutmarginLeft="dip"android:layoutalignParentRight="true"<xmlversion=""encoding=""><RelativeLayoutxmlns:android="android:layoutwidth="fillparent"android:layoutheight="fillparent"><TextViewandroid:id="idlabel"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"android:text="总总入:"><ViewView在xml文件中的用运android:layoutheight="dip"android:background="#FF"><RelativeLayout>TableLayout表总布局TableLayout容器不总示会Row,Column,Cell的总总???lt;xmlversion=""encoding=""><TableLayoutxmlns:android="android:orientation="vertical"android:layoutwidth="fillparent"android:layoutheight="fillparent"><TableRow><TextViewandroid:id="idtextView"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"android:text="Button,TextView,EditView"><TextViewandroid:id="idtextView"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"android:text="SimpleAdapter"android:gravity="right"><TableRow><TableLayout>FrameLayout里面只可以有一控件~个且此不能总置此控件位置~此控件总是位于左上角AbsoluteLayout里面可以放多控件~可以定总自个己控件的x,yTabWidget切总通总总承卡TabActivity总总。来TabHost是一用个来个存放多Tab总总的容器~要使用TabHost,要通总getTabHost方法总得来TabHost总象~然后通总addTab方法来向TabHost中添加Tabmainxml<xmlversion=""encoding=""><TabHostxmlns:android="android:id="android:idtabhost"android:layoutwidth="fillparent"android:layoutheight="fillparent"><LinearLayoutandroid:orientation="vertical"android:layoutwidth="fillparent"android:layoutheight="fillparent"><TabWidgetandroid:id="android:idtabs"android:layoutwidth="fillparent"android:layoutheight="wrapcontent"><FrameLayoutandroid:id="android:idtabcontent"android:layoutwidth="fillparent"android:layoutheight="fillparent"><TextViewandroid:id="idtextview"android:layoutwidth="fillparent"android:layoutheight="fillparent"android:text="thisisatab"><TextViewandroid:id="idtextview"android:layoutwidth="fillparent"android:layoutheight="fillparent"android:text="thisisanothertab"><TextViewandroid:id="idtextview"android:layoutwidth="fillparent"android:layoutheight="fillparent"android:text="thisisathirdtab"><FrameLayout><LinearLayout><TabHost>publicclassActivityextendsTabActivity{明声TabHost总象TabHostmTabHostOverridepublicvoidonCreate(BundlesavedInstanceState){superonCreate(savedInstanceState)setContentView(Rlayoutmain)取得TabHost总象mTabHost=getTabHost()*总TabHost添加总总*mTabHostaddTab(mTabHostnewTabSpec("tabtest")新建一个newTabSpec(newTabSpec)setIndicator("TAB",getResources()getDrawable(Rdrawableimg))总置其总总和总总(setIndicator)setContent(Ridtextview))总置容内(setContent)mTabHostaddTab(mTabHostnewTabSpec("tabtest")setIndicator("TAB",getResources()getDrawable(Rdrawableimg))setContent(Ridtextview))mTabHostaddTab(mTabHostnewTabSpec("tabtest")setIndicator("TAB",getResources()getDrawable(Rdrawableimg))setContent(Ridtextview))mTabHostsetBackgroundColor(Colorargb(,,,))总置TabHost的背景总色mTabHostsetBackgroundResource(Rdrawablebg)总置TabHost的背景总片总源mTabHostsetCurrentTab()总置前总示一总总当哪个mTabHostsetOnTabChangedListener(newOnTabChangeListener(){总总切总事件总理~setOnTabChangedListenerTabWidget总听器OverridepublicvoidonTabChanged(StringtabId){Dialogdialog=newAlertDialogBuilder(Activitythis)setTitle("提示")setMessage("前总中,当"tabId"总总")setPositiveButton("定确",newDialogInterfaceOnClickListener(){publicvoidonClick(DialogInterfacedialog,intwhichButton){dialogcancel()}})create()总建按总dialogshow()}})}

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/121

意见
反馈

立即扫码关注

爱问共享资料微信公众号

北京pk10是国家彩票吗

举报
资料