How to update the theme used by the AppBarLayout on Android

luisabreuluisabreu Member ✭✭

Hello guys,

I'm trying to migrate an existing kotlin app to Xamarin Forms. In order to complete this task, I'm just missing one thing: applying a predefined theme to the AppBarLayout. This is the code I' have in the existing android native app:

<android.support.design.widget.AppBarLayout
        android:id="@+id/appbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="@dimen/appbar_padding_top"
        android:theme="@style/AppTheme.AppBarOverlay">

How can I set the theme in a Xamarin Forms app? Btw, the only thing that is missing is changing the background color of the appbarlayout...if there's any other way of achieving that, please let me know...

thanks.

Sign In or Register to comment.