展会信息港展会大全

Android基础知识之Help提示框
来源:互联网   发布日期:2016-01-14 12:23:24   浏览:1071次  

导读:?12345678910111213141516import android.app.AlertDialog; import android.content.Context; import android.view.View; import com.iwidsets.task.manager.R; public class HelpDialog extends Al......

?

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>

赞助本站

人工智能实验室

相关热词: Android 基础知识 Help

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港