?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import android.app.AlertDialog;
import android.content.Context;
import android.view.View;
import com.iwidsets.task.manager.R;
public class HelpDialog extends AlertDialog {
public HelpDialog(Context context) {
super(context);
final View view = getLayoutInflater().inflate(R.layout.help_dialog, null);
setButton(context.getText(R.string.close), (OnClickListener) null);
setIcon(R.drawable.icon);
setTitle("AndTask version:" + R.string.version);
setView(view);
}
}
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<STRING name="help_dialog_text">
<I>Author: fonter.yang</I>
\n
<I>
<A href="http://www.android-study.com/">Android学习网</A>
</I>
\n
\n
<I>AndTask - Android Task Manager</I>
\n
This's an easy-to use task management software,it allows you to switch on or off running programs/apps/services.
\n
\n
<B>Feature</B>
\n
1) Switch and Stop Tasks/Processes/Apps/Services
\n
2) Shows Memory Info and Apps Info
\n
3) Uninstall Apps
</STRING>
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
>
<TextView
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:padding="6dip"
android:text="@string/help_dialog_text"
/>
</ScrollView>
</FrameLayout>