1 Commits

Author SHA1 Message Date
341d2c5229 Add dynamic header setting
This makes the 'no breastfeeding' setting irrelevant.
2025-12-11 23:33:34 +01:00
3 changed files with 12 additions and 2 deletions

View File

@@ -1293,7 +1293,7 @@ class MainActivity : AppCompatActivity() {
// Add buttons to create other events
for (type in currentPopupItems) {
val view = inflater.inflate(R.layout.more_events_popup_item, null)
val view = layoutInflater.inflate(R.layout.more_events_popup_item, linearLayout, false)
val textView = view.findViewById<TextView>(R.id.tv)
textView.text = LunaEvent.getPopupItemTitle(applicationContext, type)
textView.setOnClickListener {

View File

@@ -15,7 +15,6 @@
android:id="@+id/button_statistics"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:padding="10dp"
android:background="@drawable/dropdown_list_item_background"
style="@style/OverflowMenuText"

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:padding="10dp"
android:background="@drawable/dropdown_list_item_background"
style="@style/OverflowMenuText"
android:text="Item Template"/>