当前位置: 代码迷 >> Android >> Android 叙说Help提示框
  详细解决方案

Android 叙说Help提示框

热度:97   发布时间:2016-04-28 08:09:02.0
Android 讲述Help提示框

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

  相关解决方案