1. 程式人生 > >android——TextView預設文字開發時顯示執行時隱藏

android——TextView預設文字開發時顯示執行時隱藏

有沒有一種方法可以讓預設文字只在android studio 編輯時顯示,而在真機執行時不顯示,避免載入資料時的不友好展示呢?

根佈局新增屬性:

xmlns:tools="http://schemas.android.com/tools"

textview新增屬性:

tools:text="預設文字"