【发布时间】:2017-01-11 21:03:28
【问题描述】:
<RelativeLayout
...>
<LinearLayout
...>
<TextView
.../>
</LinearLayout>
<FrameLayout
.../>
</RelativeLayout>
在我的主要活动中:
我在框架布局中替换了我的片段,如何从我的片段类访问线性布局。
错误:
只能在实际创建视图的位置访问视图。
【问题讨论】:
-
到目前为止你尝试了什么?
标签: android android-layout android-fragments layout