Update Widget Layout on Button Click
I've created a homescreen widget app and have 2 layouts with me. On Button click, the layout should be switched to layout_friday
But It's not getting updated at all :(
Given below is my Widget Code in Kotlin
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.content.Intent
import android.widget.RemoteViews
import com.pranav.timetableactivity.R
// Implementation of App Widget...