Difference between android: and app: prefix in Android XML?

后端 未结 4 1866
情深已故
情深已故 2020-12-03 00:59

What is the difference and more importantly the necessity of having different prefixes in Andriod view XML?

For example,



        
4条回答
  •  心在旅途
    2020-12-03 01:10

    if you use app prefix e.g app:text="disconnected" then the text will not display when you run on a real device. if you want to display something while design but not on an actual device, you can use this prefix too.

提交回复
热议问题