首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
【安卓】从当前Activity获得其他view
【安卓】从当前Activity获得其他view
it
2024-12-15
17
LayoutInflater textInflater
=
LayoutInflater
.
from
(
this
)
;
//视图view2
View view
=
textInflater
.
inflate
(
R
.
layout
.
view2
,
null
)
;
//获得view2内的名为view2_id的textView
TextView textView
=
(
TextView
)
view
.
findViewById
(
R
.
id
.
view2_id
)
;
转载请注明原文地址: https://lol.8miu.com/read-21361.html
最新回复
(
0
)