| | |
| | | import android.view.LayoutInflater |
| | | import android.view.View |
| | | import androidx.databinding.DataBindingUtil |
| | | import com.xw.common.BuildConfig |
| | | import androidx.databinding.ObservableField |
| | | import androidx.databinding.OnRebindCallback |
| | | import androidx.databinding.ViewDataBinding |
| | | import androidx.lifecycle.LiveData |
| | | import com.xw.common.BuildConfig |
| | | import com.xw.common.R |
| | | import com.xw.common.databinding.LayoutEmptyView2Binding |
| | | import com.xw.common.databinding.LayoutEmptyViewBinding |
| | | import com.xw.common.databinding.LayoutFootViewBinding |
| | | import org.json.JSONArray |
| | |
| | | @SuppressLint("DefaultLocale") |
| | | object BindUtils { |
| | | |
| | | fun getEmptyView2(context: Context, tips: String = "空空如也~"): View { |
| | | val itemBind = DataBindingUtil.inflate<LayoutEmptyView2Binding>( |
| | | LayoutInflater.from(context), R.layout.layout_empty_view2, null, false |
| | | ) |
| | | itemBind.tips.text = tips |
| | | return itemBind.root |
| | | } |
| | | |
| | | fun getEmptyView(context: Context, tips: String = "空空如也~"): View { |
| | | val itemBind = DataBindingUtil.inflate<LayoutEmptyViewBinding>( |
| | | LayoutInflater.from(context), R.layout.layout_empty_view, null, false |