diff --git a/app/src/main/java/net/foucry/pilldroid/DrugDetailActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugDetailActivity.java
index 5dbd2ad..b228af7 100644
--- a/app/src/main/java/net/foucry/pilldroid/DrugDetailActivity.java
+++ b/app/src/main/java/net/foucry/pilldroid/DrugDetailActivity.java
@@ -1,7 +1,5 @@
package net.foucry.pilldroid;
-import static net.foucry.pilldroid.R.id.detail_toolbar;
-
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
@@ -13,8 +11,7 @@ import android.widget.TextView;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
-import androidx.appcompat.widget.Toolbar;
-
+import com.google.android.material.appbar.MaterialToolbar;
import net.foucry.pilldroid.dao.PrescriptionsDAO;
import net.foucry.pilldroid.databases.PrescriptionDatabase;
import net.foucry.pilldroid.models.Prescription;
@@ -43,7 +40,7 @@ public class DrugDetailActivity extends AppCompatActivity {
Log.d(TAG, "aPrescription == " + aPrescription);
setContentView(R.layout.drug_detail_activity);
- Toolbar toolbar = findViewById(detail_toolbar);
+ MaterialToolbar toolbar = findViewById(R.id.toolbar);
if (toolbar != null) {
setSupportActionBar(toolbar);
diff --git a/app/src/main/java/net/foucry/pilldroid/DrugDetailFragment.java b/app/src/main/java/net/foucry/pilldroid/DrugDetailFragment.java
index 763746a..a155349 100644
--- a/app/src/main/java/net/foucry/pilldroid/DrugDetailFragment.java
+++ b/app/src/main/java/net/foucry/pilldroid/DrugDetailFragment.java
@@ -8,9 +8,7 @@ import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
-
-import com.google.android.material.appbar.CollapsingToolbarLayout;
-
+import com.google.android.material.appbar.MaterialToolbar;
import net.foucry.pilldroid.models.Prescription;
/**
@@ -52,7 +50,7 @@ public class DrugDetailFragment extends Fragment {
Activity activity = this.getActivity();
assert activity != null;
- CollapsingToolbarLayout appBarLayout = activity.findViewById(R.id.toolbar_layout);
+ MaterialToolbar appBarLayout = activity.findViewById(R.id.toolbar);
if (appBarLayout != null) {
appBarLayout.setTitle(prescription.getName());
}
diff --git a/app/src/main/res/drawable/ic_save_black_24dp.xml b/app/src/main/res/drawable/ic_save_black_24dp.xml
index 085eb41..7a19b6b 100644
--- a/app/src/main/res/drawable/ic_save_black_24dp.xml
+++ b/app/src/main/res/drawable/ic_save_black_24dp.xml
@@ -1,4 +1,4 @@
-
+
diff --git a/app/src/main/res/layout/drug_detail_activity.xml b/app/src/main/res/layout/drug_detail_activity.xml
index d289151..0244c34 100644
--- a/app/src/main/res/layout/drug_detail_activity.xml
+++ b/app/src/main/res/layout/drug_detail_activity.xml
@@ -12,27 +12,25 @@
+ android:layout_height="wrap_content">
+ app:contentScrim="#0000"
+ app:layout_scrollFlags="scroll|exitUntilCollapsed" />
-
-
+ app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
+ app:titleTextColor="@color/white"/>
+
-
+ app:srcCompat="@drawable/ic_save_black_24dp"
+ app:backgroundTint="@color/colorPrimary" />