@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    ActivityConversionsBinding binding =
        DataBindingUtil.setContentView(this, R.layout.activity_conversions);

    mIsError.set(true);

    binding.setIsError(mIsError);
    binding.setHeight(ScreenUtils.dp2px(this, 200));
  }
 public void toggleIsError(View view) {
   mIsError.set(!mIsError.get());
 }
 public void toggleClicked() {
   clicked.set(!clicked.get());
 }
Ejemplo n.º 4
0
 public void onFirstRefresh() {
   mSwipeRefreshLayoutRefreshing.set(true);
   loadNewsFeed();
 }
 public void setClicked(ObservableBoolean clicked) {
   this.clicked.set(clicked.get());
 }