Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TextView
- android:id="@+id/profileLblTtv"
- android:layout_width="270dp"
- android:layout_height="wrap_content"
- android:textStyle="bold"
- android:text="@string/profile_photo_gr"
- android:gravity="center"
- android:layout_marginTop="15dp"
- android:visibility="@{viewmodel.kalase(), default=gone}"
- app:layout_constraintTop_toBottomOf="@+id/reqfldsTtv"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent" />
- @Bindable
- public int kalase() {
- return userRole != null && userRole.getId() != 0 ? View.VISIBLE : View.GONE;
- }
- UserRole userRole;
- public void setUserRole(UserRole userRole) {
- this.userRole = userRole;
- notifyPropertyChanged(BR.userRole);
- }
- @Bindable
- public int getUserRole() {
- return userRole != null && userRole.getId() != 0 ? View.VISIBLE : View.GONE;
- }
Add Comment
Please, Sign In to add comment