How to create a generic Android XML layout for all activities

前端 未结 3 1844
无人共我
无人共我 2020-12-16 02:12

I have an application that needs the same items [5 buttons acting as tabs] in every screen. Is it possible to create a \"base XML layout\" that has these 5 buttons and then

3条回答
  •  旧时难觅i
    2020-12-16 03:07

    Includes would be the way to go, but I have never got this to work reliably myself. Maybe I am doing something wrong, but the compiler does not always pick up the ids in the merged layouts.

提交回复
热议问题