diff --git a/app/src/main/java/eu/faircode/email/FragmentRules.java b/app/src/main/java/eu/faircode/email/FragmentRules.java index 0c807b8c16..5bafbb71af 100644 --- a/app/src/main/java/eu/faircode/email/FragmentRules.java +++ b/app/src/main/java/eu/faircode/email/FragmentRules.java @@ -34,6 +34,7 @@ import androidx.annotation.Nullable; import androidx.constraintlayout.widget.Group; import androidx.fragment.app.FragmentTransaction; import androidx.lifecycle.Observer; +import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; @@ -80,6 +81,10 @@ public class FragmentRules extends FragmentBase { adapter = new AdapterRule(getContext(), getViewLifecycleOwner()); rvRule.setAdapter(adapter); + DividerItemDecoration itemDecorator = new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL); + itemDecorator.setDrawable(getContext().getDrawable(R.drawable.divider)); + rvRule.addItemDecoration(itemDecorator); + fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { diff --git a/app/src/main/res/layout/item_answer.xml b/app/src/main/res/layout/item_answer.xml index e391d21d41..cdc4a9a5ed 100644 --- a/app/src/main/res/layout/item_answer.xml +++ b/app/src/main/res/layout/item_answer.xml @@ -2,15 +2,15 @@ + android:layout_height="wrap_content"> + android:foreground="?attr/selectableItemBackground" + android:padding="6dp"> + android:foreground="?attr/selectableItemBackground" + android:padding="6dp"> - - \ No newline at end of file