diff --git a/app/res/layout-land/home_screen.xml b/app/res/layout-land/home_screen.xml index c75d3d91b..7c9904756 100644 --- a/app/res/layout-land/home_screen.xml +++ b/app/res/layout-land/home_screen.xml @@ -1,75 +1,107 @@ - - - - - - + + - + android:padding="10dp" + android:visibility="visible"> + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + android:layout_marginEnd="10dp" + android:layout_marginBottom="10dp" /> - - - - - - - - - + android:layout_marginStart="5dp" + android:layout_marginTop="2dp" + android:layout_marginEnd="5dp" + android:visibility="visible" + app:layout_constraintTop_toBottomOf="@id/connect_delivery_refresh"> + + + + + + + + + + + android:layout_marginTop="10dp" + android:layout_marginEnd="10dp" + android:layout_marginBottom="10dp" /> @@ -165,11 +199,11 @@ android:id="@+id/connect_delivery_progress_tabs" android:layout_width="match_parent" android:layout_height="?actionBarSize" + android:background="@color/connect_background_color" app:tabGravity="fill" app:tabIndicator="@drawable/ic_connect_pager_indicator" app:tabIndicatorColor="@color/connect_blue_color" app:tabInlineLabel="true" - android:background="@color/connect_background_color" app:tabMode="fixed" app:tabSelectedTextColor="@color/connect_blue_color" app:tabTextAppearance="@style/TabTextStyle" diff --git a/app/res/layout/fragment_connect_jobs_list.xml b/app/res/layout/fragment_connect_jobs_list.xml index 4331f45ca..05625b379 100644 --- a/app/res/layout/fragment_connect_jobs_list.xml +++ b/app/res/layout/fragment_connect_jobs_list.xml @@ -4,16 +4,16 @@ xmlns:tools="http://schemas.android.com/tools" android:id="@+id/connect_fragment_jobs_list" android:layout_width="match_parent" - android:background="@color/connect_background_color" android:layout_height="match_parent" + android:background="@color/connect_background_color" tools:context="org.commcare.fragments.connect.ConnectJobsListsFragment"> - - + android:padding="10dp" + android:visibility="visible"> - + - + - - + + + + + + + app:layout_constraintTop_toBottomOf="@id/connect_alert_tile" /> + app:layout_constraintTop_toBottomOf="@id/connect_alert_tile" + tools:listitem="@layout/item_login_connect_home_apps" /> \ No newline at end of file diff --git a/app/res/layout/home_screen.xml b/app/res/layout/home_screen.xml index 8cb6ef496..747b4d7ed 100644 --- a/app/res/layout/home_screen.xml +++ b/app/res/layout/home_screen.xml @@ -9,58 +9,88 @@ android:padding="4dp" tools:viewBindingIgnore="true"> - + android:layout_marginStart="16dp" + android:layout_marginTop="10dp" + android:layout_marginEnd="16dp" + android:layout_marginBottom="2dp" + android:clickable="true" + android:focusable="true" + android:shadowColor="@color/connect_light_grey_transparent" + android:shadowDx="30" + android:shadowDy="30" + android:shadowRadius="50" + app:cardBackgroundColor="@color/white" + app:cardCornerRadius="10dp" + app:cardElevation="5dp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/connect_jobs_last_update"> - + android:padding="10dp" + android:visibility="visible"> - + - + - - + + + + + + { tile.setVisibility(View.GONE); }); diff --git a/app/src/org/commcare/fragments/connect/ConnectDeliveryProgressFragment.java b/app/src/org/commcare/fragments/connect/ConnectDeliveryProgressFragment.java index 13a09cd5c..4b89355ee 100644 --- a/app/src/org/commcare/fragments/connect/ConnectDeliveryProgressFragment.java +++ b/app/src/org/commcare/fragments/connect/ConnectDeliveryProgressFragment.java @@ -27,6 +27,7 @@ import org.commcare.connect.network.ConnectNetworkHelper; import org.commcare.dalvik.R; import org.commcare.google.services.analytics.FirebaseAnalyticsUtil; +import org.commcare.views.connect.RoundedButton; import org.commcare.views.connect.connecttextview.ConnectBoldTextView; import org.commcare.views.connect.connecttextview.ConnectMediumTextView; import org.commcare.views.connect.connecttextview.ConnectRegularTextView; @@ -46,7 +47,7 @@ public class ConnectDeliveryProgressFragment extends Fragment { private TextView updateText; private ConstraintLayout paymentAlertTile; - private TextView paymentAlertText; + private ConnectRegularTextView paymentAlertText; private ConnectJobPaymentRecord paymentToConfirm = null; private boolean showLearningLaunch = true; private boolean showDeliveryLaunch = true; @@ -93,13 +94,13 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, paymentAlertTile = view.findViewById(R.id.connect_delivery_progress_alert_tile); paymentAlertText = view.findViewById(R.id.connect_payment_confirm_label); - TextView paymentAlertNoButton = view.findViewById(R.id.connect_payment_confirm_no_button); + RoundedButton paymentAlertNoButton = view.findViewById(R.id.connect_payment_confirm_no_button); paymentAlertNoButton.setOnClickListener(v -> { updatePaymentConfirmationTile(getContext(), true); FirebaseAnalyticsUtil.reportCccPaymentConfirmationInteraction(false); }); - TextView paymentAlertYesButton = view.findViewById(R.id.connect_payment_confirm_yes_button); + RoundedButton paymentAlertYesButton = view.findViewById(R.id.connect_payment_confirm_yes_button); paymentAlertYesButton.setOnClickListener(v -> { final ConnectJobPaymentRecord payment = paymentToConfirm; //Dismiss the tile diff --git a/app/src/org/commcare/fragments/connect/ConnectJobsListsFragment.java b/app/src/org/commcare/fragments/connect/ConnectJobsListsFragment.java index a6fe048cd..2b36b3634 100644 --- a/app/src/org/commcare/fragments/connect/ConnectJobsListsFragment.java +++ b/app/src/org/commcare/fragments/connect/ConnectJobsListsFragment.java @@ -19,6 +19,7 @@ import android.widget.ImageView; import android.widget.TextView; +import androidx.cardview.widget.CardView; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.fragment.app.Fragment; import androidx.navigation.NavDirections; @@ -61,7 +62,7 @@ * @author dviggiano */ public class ConnectJobsListsFragment extends Fragment { - private ConstraintLayout connectTile; + private CardView connectTile; private TextView updateText; private IConnectAppLauncher launcher; ArrayList jobList;