In google could not find. I do not understand the difference between the two fields in Attributes. These are attributes for a simple Button.
2 answers
This is quite a convenient parameter that uses XML schema tools.
The business is that if you write in the second line or in XML like this:
text:text="Hello" then IDEA will not swear at you, and in Preview you will see something like this: 
but when you start the application, the field will be empty, to put it simply, this field allows you to see how the text will look in the Preview, but when the application starts, View will not accept this parameter and will be empty. Very handy trick, with layout on Mokam if they fly from the designer.
The analogue that is most often used is
tools:text="Hello" Similar prefix for XML tools
PS: it is possible to use with other View
- oneAnd what is the layout for mokami?: - Oleg Khegay
- one@OlegKhegay fake data - elik
- one@elik yes, that's right, this is some kind of data that the designer inserts, it is very convenient to watch later, especially if something changes in design, and this happens always, and you make 1 in 1 according to its Mock-Up (ready draft). In general, it solves a lot of problems, for the developer on Preview, you can immediately understand what kind of View is open and where the cant is, especially if you use Constraint, more precisely BluePrint View, everything is very clear in the end everything. - Shwarz Andrei
The difference is that one displays the data both in the preview and on the device, and the second only in the preview (and on the device is an empty string)
