<include android:id="@+id/view_counter_buttons_1" layout="@layout/view_counter_button_text"
android:layout_height="fill_parent" android:layout_width="fill_parent"/>
RelativeLayout lin = (RelativeLayout)findViewById(R.id.view_counter_buttons_1).findViewById(R.id.layout1);
layout1是view_counter_button_text.xml文件里的ID
引用include布局里的控件
最新推荐文章于 2022-04-07 22:59:20 发布