Android 讲述Help提示框
Android 讲述Help提示框
XML/HTML代码
[html]
<stringnamestringname="help_dialog_text">
<i>Author:fonter.yang</i>
\n
<i>
<ahrefahref="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代码
[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代码
[html]
<?xmlversionxmlversion="1.0"encoding="utf-8"?>
<FrameLayoutxmlns:androidFrameLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"android:layout_height="wrap_content">
<ScrollViewxmlns:androidScrollViewxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"android:layout_height="fill_parent">
<TextViewandroid:layout_heightTextViewandroid:layout_height="fill_parent"
android:layout_width="fill_parent"android:text="@string/help_dialog_text"
android:padding="6dip"/>
</ScrollView>
</FrameLayout>
补充:移动开发 , Android ,