diff --git a/app/res/drawable/button_green_background.xml b/app/res/drawable/button_green_background.xml
index 7c1d045bc2..bdf260cce5 100644
--- a/app/res/drawable/button_green_background.xml
+++ b/app/res/drawable/button_green_background.xml
@@ -5,4 +5,5 @@
+
\ No newline at end of file
diff --git a/app/res/drawable/rounded_button.xml b/app/res/drawable/rounded_button.xml
new file mode 100644
index 0000000000..b8647d59d6
--- /dev/null
+++ b/app/res/drawable/rounded_button.xml
@@ -0,0 +1,17 @@
+
+
+
+ -
+
+
+
+
+
+
+ -
+
+
+
+
+
+
diff --git a/app/res/layout-land/activity_crash_warning.xml b/app/res/layout-land/activity_crash_warning.xml
index 92bde2be99..a609c98889 100644
--- a/app/res/layout-land/activity_crash_warning.xml
+++ b/app/res/layout-land/activity_crash_warning.xml
@@ -93,12 +93,11 @@
-
+ android:layout_margin="@dimen/content_min_margin"/>
diff --git a/app/res/layout/activity_crash_warning.xml b/app/res/layout/activity_crash_warning.xml
index c6cc992e65..10c229f44c 100644
--- a/app/res/layout/activity_crash_warning.xml
+++ b/app/res/layout/activity_crash_warning.xml
@@ -108,12 +108,11 @@
-
+ android:layout_margin="@dimen/content_min_margin"/>
diff --git a/app/res/layout/activity_drawing_boundary.xml b/app/res/layout/activity_drawing_boundary.xml
index 89f742fdee..5c3c235b3b 100644
--- a/app/res/layout/activity_drawing_boundary.xml
+++ b/app/res/layout/activity_drawing_boundary.xml
@@ -44,32 +44,36 @@
android:layout_width="match_parent"
android:orientation="horizontal">
-
-
-
-
-
-
diff --git a/app/res/layout/activity_report_problem.xml b/app/res/layout/activity_report_problem.xml
index a9b473fd4e..36879a55ec 100644
--- a/app/res/layout/activity_report_problem.xml
+++ b/app/res/layout/activity_report_problem.xml
@@ -8,6 +8,7 @@
-
-
-
\ No newline at end of file
diff --git a/app/res/layout/dots_detail.xml b/app/res/layout/dots_detail.xml
index f29952483e..5e4ba46ad4 100644
--- a/app/res/layout/dots_detail.xml
+++ b/app/res/layout/dots_detail.xml
@@ -40,18 +40,20 @@
android:id="@+id/dotsbuttonframe"
android:weightSum="1">
-
+ android:layout_weight="0.5"/>
-
+ android:layout_weight="0.5"/>
diff --git a/app/res/layout/dotsdoses.xml b/app/res/layout/dotsdoses.xml
index c11b044085..d71a563174 100644
--- a/app/res/layout/dotsdoses.xml
+++ b/app/res/layout/dotsdoses.xml
@@ -61,10 +61,11 @@
android:id="@+id/dots_dose_four">
-
+ android:layout_alignParentBottom="true"/>
diff --git a/app/res/layout/draw_layout.xml b/app/res/layout/draw_layout.xml
index 203a239874..a4ff50b4da 100644
--- a/app/res/layout/draw_layout.xml
+++ b/app/res/layout/draw_layout.xml
@@ -19,7 +19,8 @@
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
-
-
-
diff --git a/app/res/layout/entity_detail.xml b/app/res/layout/entity_detail.xml
index 38458c1a22..1f0b406e3d 100644
--- a/app/res/layout/entity_detail.xml
+++ b/app/res/layout/entity_detail.xml
@@ -1,6 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/res/layout/http_request_layout.xml b/app/res/layout/http_request_layout.xml
index 44cd60fc01..ab782d8a88 100644
--- a/app/res/layout/http_request_layout.xml
+++ b/app/res/layout/http_request_layout.xml
@@ -38,16 +38,15 @@
android:layout_height="wrap_content"
android:orientation="vertical" />
-
+ android:paddingTop="@dimen/content_start" />
diff --git a/app/res/layout/install_permission_requester.xml b/app/res/layout/install_permission_requester.xml
index 138276605d..88345cfb99 100644
--- a/app/res/layout/install_permission_requester.xml
+++ b/app/res/layout/install_permission_requester.xml
@@ -52,16 +52,15 @@
android:layout_marginStart="@dimen/content_min_margin"
android:layout_marginEnd="@dimen/content_min_margin" />
-
+ android:paddingTop="@dimen/content_start" />
diff --git a/app/res/layout/layout_note_msg.xml b/app/res/layout/layout_note_msg.xml
index 7ba15d9060..d7e2f73b79 100644
--- a/app/res/layout/layout_note_msg.xml
+++ b/app/res/layout/layout_note_msg.xml
@@ -42,7 +42,8 @@
android:text="What to do about it"
android:textAppearance="?android:attr/textAppearanceMedium"/>
-
-
-
-
-
-
-
-
-
+
-
+
-
@@ -23,7 +24,8 @@
android:id = "@+id/recordingprogress"
android:background="@color/blue"/>
-
diff --git a/app/res/layout/recording_fragment.xml b/app/res/layout/recording_fragment.xml
index b43b1e2fff..b276f1362e 100644
--- a/app/res/layout/recording_fragment.xml
+++ b/app/res/layout/recording_fragment.xml
@@ -68,9 +68,9 @@
android:layout_height="wrap_content"
android:visibility="invisible" />
-
+ android:visibility="visible" />
diff --git a/app/res/layout/screen_form_dump.xml b/app/res/layout/screen_form_dump.xml
index 426e8deac2..3b4d35b4f5 100644
--- a/app/res/layout/screen_form_dump.xml
+++ b/app/res/layout/screen_form_dump.xml
@@ -43,20 +43,21 @@
android:layout_centerHorizontal="true"
android:layout_margin="10dp"
android:gravity="center"
- android:layout_below="@+id/screen_multimedia_inflater_filefetch"
android:text="From here you can dump your forms to an SD card or submit the forms on your SD card"/>
-
-
-
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:backgroundTint="@color/cc_light_cool_accent_bg"
+ android:textColor="@color/cc_light_cool_accent_text"
+ />
-
+ />
diff --git a/app/res/layout/screen_multimedia_inflater.xml b/app/res/layout/screen_multimedia_inflater.xml
index c5afe131c7..92e17019cd 100644
--- a/app/res/layout/screen_multimedia_inflater.xml
+++ b/app/res/layout/screen_multimedia_inflater.xml
@@ -53,14 +53,14 @@
android:layout_below="@id/screen_multimedia_inflater_frame_location"
android:layout_centerHorizontal="true"/>
-
+ android:paddingVertical="8dp"/>
\ No newline at end of file
diff --git a/app/res/layout/screen_permission_request.xml b/app/res/layout/screen_permission_request.xml
index 6cc1f74851..0b94d6185f 100644
--- a/app/res/layout/screen_permission_request.xml
+++ b/app/res/layout/screen_permission_request.xml
@@ -33,13 +33,15 @@
android:layout_marginStart="30dp"
android:layout_marginEnd="30dp">
-
-
-
-
-
-
-
-
-
-
-
#005ab2
#d0e3ff
+
+
+ #3A42C7
+
+
diff --git a/app/res/values/styles.xml b/app/res/values/styles.xml
index b0d745bb15..9e3d78f16f 100644
--- a/app/res/values/styles.xml
+++ b/app/res/values/styles.xml
@@ -305,4 +305,32 @@
- "@color/black"
- @color/black
+
+
+
+
+
+
diff --git a/app/src/org/commcare/views/widgets/IntentWidget.java b/app/src/org/commcare/views/widgets/IntentWidget.java
index 67f38d9f22..47ea4d96d9 100644
--- a/app/src/org/commcare/views/widgets/IntentWidget.java
+++ b/app/src/org/commcare/views/widgets/IntentWidget.java
@@ -19,8 +19,11 @@
import android.widget.TextView;
import android.widget.Toast;
+import com.google.android.material.button.MaterialButton;
+
import org.commcare.activities.components.FormEntryConstants;
import org.commcare.android.javarosa.IntentCallout;
+import org.commcare.dalvik.R;
import org.commcare.logic.PendingCalloutInterface;
import org.commcare.utils.CompoundIntentList;
import org.javarosa.core.model.FormDef;
@@ -93,7 +96,7 @@ protected IntentWidget(Context context, FormEntryPrompt prompt, Intent in, Inten
} else {
mStringAnswer = new TextView(getContext());
}
- launchIntentButton = new AppCompatButton(getContext());
+ launchIntentButton = new MaterialButton(getContext());
setupTextView();
setupButton();
}
@@ -119,6 +122,9 @@ protected void setupTextView() {
private void setupButton() {
setOrientation(LinearLayout.VERTICAL);
+ launchIntentButton.setBackgroundResource(R.drawable.rounded_button);
+ launchIntentButton.setTextColor(getResources().getColor(R.color.white));
+ launchIntentButton.setGravity(Gravity.CENTER);
WidgetUtils.setupButton(launchIntentButton,
getButtonLabel(),