I'm having trouble getting an ImageView that has been scaled down to center in my application. I've tried different scaleTypes (fitCenter, centerInside both give the correct dimensions but neither is centered), I've tried using RelativeLayout instead of LinearLayout, I've tried adding empty Views with a weight of 0.25 to either side, I've tried setting layout_width to a specific width rather than using layout_weight...nothing appears to do the trick, the image is just left aligned. Thoughts?
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:weightSum="1">
<ImageView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5"
android:layout_gravity="center"
android:src="@drawable/logo"
android:adjustViewBounds="true"
android:scaleType="centerInside" />
</LinearLayout>