Skip to content

ActionView doesn't center when width and height are changed during orientation change #11

@ssppgit

Description

@ssppgit

Hi!

I have using ActionView in my layout. I have define width and height in dimens.xml for landscape and portrait.

<at.markushi.ui.ActionView
        android:id="@+id/action"
        android:layout_width="@dimen/action_size"
        android:layout_height="@dimen/action_size"
        android:padding="16dp"
        android:background="#FF0000"
        app:av_action="drawer"
        app:av_color="@android:color/white"/>

action_size is 56dp for portrait and 48dp for landscape.

When i run my app i see well the ActionView. However if i change orientation of my device, Image of actionView doesn't center well. I don't know why because if a run my app only in landscape mode i see well the actionView.

You can see it in this image.

action

Any idea? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions