2
NougatのxmlはmarginRightPercentを無視しています。PercentRelativeLayout margin_percentが動作しない場合があります
<?xml version="1.0" encoding="utf-8"?>
<android.support.percent.PercentRelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_alignParentRight="true"
app:layout_heightPercent="3.45%"
app:layout_marginRightPercent="5.07%"
app:layout_marginTopPercent="2.85%"
app:layout_widthPercent="6.13%"
android:scaleType="fitCenter"
android:src="@drawable/action_bar_notification"/>
.
.
.
.
.
</android.support.percent.PercentRelativeLayout>
私は、それが無視されていない私のアプリの他の場所を持っているが、これらの他の場所ではlayout_widthPercentを持っていません。これは6.0でもうまくいきますが、7.0のバグだと思います。