Android 讲述Help提示框
 XML/HTML代码 
<stringname="help_dialog_text"> <i>Author:fonter.yang</i> \n <i> <ahref="http://www.iwidsets.comhttp://www.iwidsets.com">http://www.iwidsets.com</a> </i> \n \n <i>AndTask-AndroidTaskManager</i> \n Itisaneasy-tousetaskmanagementsoftware,itallowsyoutoswitchonoroffrunningprograms/apps/services. \n \n <b>Feature</b> \n 1)SwitchandStopTasks/Processes/Apps/Services \n 2)ShowsMemoryInfoandAppsInfo \n 3)UninstallApps </string>
Java代码
importandroid.app.AlertDialog; 
importandroid.content.Context; 
importandroid.view.View; 
importcom.iwidsets.task.manager.R; 
publicclassHelpDialogextendsAlertDialog{ 
publicHelpDialog(Contextcontext){ 
super(context); 
finalViewview=getLayoutInflater().inflate(R.layout.help_dialog, 
null); 
setButton(context.getText(R.string.close),(OnClickListener)null); 
setIcon(R.drawable.icon); 
setTitle("AndTaskversion:"+R.string.version); 
setView(view); 
} 
} 
XML/HTML代码
<?xmlversion="1.0"encoding="utf-8"?> <FrameLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"android:layout_height="wrap_content"> <ScrollViewxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"android:layout_height="fill_parent"> <TextViewandroid:layout_height="fill_parent" android:layout_width="fill_parent"android:text="@string/help_dialog_text" android:padding="6dip"/> </ScrollView> </FrameLayout>
移动开发交流群:164427941
 
                    
                     
                    
                 
                    
                
 
         
 
                
            
        
 浙公网安备 33010602011771号
浙公网安备 33010602011771号