项目中经常会有一些布局是重用的,但是如何来更好的利用这些布局中的控件

转: http://zhidao.baidu.com/link?url=GU93U8Wu31dfp7mKEx52hMJkxjFLCq3WGkvZ8IMrahQT3wgAbC1Y93sKQ36_GQo3V4-Q9KWRHD6RIxMgBYj0zY7YsYNQuGFGjahZsFnz9wq

<include android:> 
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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-11-08
  • 2022-03-06
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2022-01-31
  • 2022-01-07
  • 2022-02-25
相关资源
相似解决方案