android wear设备320x320上的ActionPage中图像未居中

android wear设备320x320上的ActionPage中图像未居中,android,android-layout,wear-os,Android,Android Layout,Wear Os,在android wear应用程序中,我有一个带有图像的操作页面。在分辨率为280x280的设备上,图像放置在圆的中心,但在设备上,图像移动为320x320(参见屏幕截图) 320x320上的ActionPage需要与280x280上的一样。有什么想法吗? <android.support.wearable.view.ActionPage xmlns:android="http://schemas.android.com/apk/res/android"

在android wear应用程序中,我有一个带有图像的操作页面。在分辨率为280x280的设备上,图像放置在圆的中心,但在设备上,图像移动为320x320(参见屏幕截图)

320x320上的ActionPage需要与280x280上的一样。有什么想法吗?

    <android.support.wearable.view.ActionPage
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/action_page"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:color="@android:color/white"
        android:background="@android:color/transparent"
        app:rippleColor="@color/kis_primary_color"
        app:imageScaleMode="fit"
        />
    public abstract class ButtonFragment extends Fragment {
        @Override
        public View onCreateView(final LayoutInflater inflater, 
                final ViewGroup container, final Bundle savedInstanceState) {
            final View root = inflater.inflate(R.layout.fragment_button, container, false);
            final ActionPage actionPage = (ActionPage) root.findViewById(R.id.action_page);
            actionPage.setImageResource(getImageResourceId());
            return root;
        }