您现在的位置是:主页 > news > 做义工旅行有哪些网站/莱阳seo排名

做义工旅行有哪些网站/莱阳seo排名

admin2025/6/6 16:29:44news

简介做义工旅行有哪些网站,莱阳seo排名,深圳做网站要多少钱,北京大兴行业网站建设公司Android自定义dialog并实现失去焦点,activity获取焦点的功能2016/08/31 0前言:由于在项目中需要用到更新显示动画的需求,因此想到了dialog,自定义dialog不难,网上教程很多,但是在实现dialog背景透明的需求时…

做义工旅行有哪些网站,莱阳seo排名,深圳做网站要多少钱,北京大兴行业网站建设公司Android自定义dialog并实现失去焦点,activity获取焦点的功能2016/08/31 0前言:由于在项目中需要用到更新显示动画的需求,因此想到了dialog,自定义dialog不难,网上教程很多,但是在实现dialog背景透明的需求时…

Android

自定义

dialog

并实现失去焦点,

activity

获取焦点的功能

2016/08/31 0

前言:由于在项目中需要用到更新显示动画的需求,因此想到了

dialog

,自定义

dialog

不难,网上教程很多,但是在实现

dialog

背景透明的需求时,

遇到了一点问题,网上的一些方法在我的机器上并没有实现,只能曲折中找到了另

一个方法实现。虽然有点麻烦,但毕竟效果不错。

此方法写在这里,一是和各位分享,二是做个记录,留待以后需求。

不说了,上代码:

下面是

dialog

自定义布局文件,是执行任务用的,参考即可。

view

sourceprint?01.

?xml

version=

1.0

encoding=

utf-8

?

02.

LinearLayout

xmlns:android=

schemas.android/apk/res/android

03.android:layout_width=

match_parent

04.android:layout_height=

match_parent

05.android:orientation=

horizontal

06.

07.

TextView08.android:layout_height=

wrap_content

09.android:layout_width=

wrap_content

10.android:text=

执行中

11.android:textSize=

18sp

12./

13.

ImageView14.android:id=

@

id/dialog_image

15.android:layout_height=

wrap_content

16.android:layout_width=

wrap_content

17.android:layout_gravity=

center

18./

19.20.21.

/LinearLayout

自定义

dialog

,执行任务的代码去掉了,可以加在

onCreate()

中。

view

sourceprint?01./**02.*

执行状态的对话框形式

03.*

@author

Administrator04.*05.*/06.classMyDialogextendsDialog{07.ImageView

imageView;08.09.publicMyDialog(Context context) {10.super(context);11.// TODO Auto-

generated

constructor

stub12.}13.14.publicMyDialog(Context

context,inttheme)

{15.super(context,

theme);16.//

TODO

Auto-generated

constructor

stub17.}18.19.@Override20.protectedvoidonCreate(Bundle

savedInstanceState)

{21.//

TODO

Auto-generated

method

stub22.super.onCreate(savedInstanceState);23.24.//

activity

标题

25.requestWindowFeature(Window.FEATURE_NO_TITLE);26.27.setContentView(R.lay