ActionBarSize, leaves an emptyspace in layout below

Dimitris Christoforidis 301 Reputation points
2022-02-23T17:21:41.58+00:00

I am using the code below for changing actionbar size.

<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">  
   <item name="colorPrimary">@color/colorPrimary</item>  
   <item name="colorPrimaryDark">@color/colorPrimaryDark</item>  
   <item name="colorAccent">@color/colorAccent</item>  
   <item name="android:textAllCaps">false</item>  
   <item name="android:windowFullscreen">true</item>  
   <item name="actionBarSize">26.0dip</item>  
</style>  

Here is my result:

177295-tni61.jpg

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,352 questions
{count} votes

Accepted answer
  1. JarvanZhang 23,961 Reputation points
    2022-02-25T05:39:51.217+00:00

    Hello,​DimChris

    I've reproduced the issue on my side. The Xamarin.Google.Android.Material package works as expected with 1.0.0.1. The white space will occur if updating the package to larger version. This may be a petential issue, it's suggested to report the problem to the github repo at: https://github.com/xamarin/AndroidX/issues

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.