diff --git a/app/src/main/res/layout/fragment_host_config.xml b/app/src/main/res/layout/fragment_host_config.xml index 9466ee8..e6dbbd4 100644 --- a/app/src/main/res/layout/fragment_host_config.xml +++ b/app/src/main/res/layout/fragment_host_config.xml @@ -4,6 +4,8 @@ xmlns:tools="http://schemas.android.com/tools"> + + @@ -96,7 +98,8 @@ + android:orientation="vertical" + android:visibility="@{TextUtils.isEmpty(viewModel.hostName) ? View.GONE : View.VISIBLE}"> - + - + - + - + - + - + - + - + @@ -163,6 +174,7 @@ android:text="--------------------------------------------------------------------------" android:gravity="left" android:paddingVertical="8dp" + android:visibility="@{TextUtils.isEmpty(viewModel.hostName) ? View.GONE : View.VISIBLE}" android:layout_height="wrap_content" android:layout_width="match_parent"/> @@ -170,7 +182,8 @@ + android:orientation="vertical" + android:visibility="@{TextUtils.isEmpty(viewModel.thirdHostName) ? View.GONE : View.VISIBLE}"> - + - + - + - + - + - + - + - + @@ -240,6 +261,7 @@ android:text="--------------------------------------------------------------------------" android:gravity="left" android:paddingVertical="8dp" + android:visibility="@{TextUtils.isEmpty(viewModel.thirdHostName) ? View.GONE : View.VISIBLE}" android:layout_height="wrap_content" android:layout_width="match_parent"/> @@ -248,7 +270,8 @@ + android:orientation="vertical" + android:visibility="@{TextUtils.isEmpty(viewModel.secHostName) ? View.GONE : View.VISIBLE}"> - + - + - + - + - + - + - + @@ -312,6 +342,7 @@ android:text="--------------------------------------------------------------------------" android:gravity="left" android:paddingVertical="8dp" + android:visibility="@{TextUtils.isEmpty(viewModel.secHostName) ? View.GONE : View.VISIBLE}" android:layout_height="wrap_content" android:layout_width="match_parent"/> @@ -355,6 +386,7 @@ android:layout_height="52dp" android:layout_weight="1" android:layout_marginStart="8dp" + android:visibility="@{sharedViewModel.printerDisabled ? View.GONE : View.VISIBLE}" android:text="Print" android:onClick="@{()-> click.onPrint()}" android:background="@drawable/bg_rounded_btn_cv"