[Sony Cross-Device Development Themes and Apps] whalesplaho:
Xperia Z5 1080x1920 px....... yhu know in OP there is a place we added phone width!

tha padding is same with stock & also layout_width in horizontalscrollview has fill_parent as stock LinearLayout has!

<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
<HorizontalScrollView android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="1080.0px" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/newmenu" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="82" />
<FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="end" android:id="@id/menu" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="end" android:id="@id/ime_switcher" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_ime_switcher_default" android:contentDescription="@string/accessibility_ime_switch_button" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/lights_out" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/back_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin_lights_out" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id="@id/home_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_large" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id="@id/recent_apps_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin_lights_out" />
</LinearLayout>
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModDown" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/downwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="20" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModLeft" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/leftwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="21" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModRight" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/rightwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="22" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModUp" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/upwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="19" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModCamera" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/camerawhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="27" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModCall" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/phonewhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="5" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModMusic" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/musicwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="209" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModBackTrack" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/backwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="88" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModPlayPause" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/playwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="85" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModForwardTrack" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/forwardwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="87" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/ModPower" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/powerwhite" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin" systemui:keyCode="26" />
<com.android.systemui.statusbar.policy.DeadZone android:layout_gravity="top" android:id="@id/deadzone" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:minSize="@dimen/navigation_bar_deadzone_size" systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" systemui:holdTime="@integer/navigation_bar_deadzone_hold" systemui:decayTime="@integer/navigation_bar_deadzone_decay" systemui:orientation="horizontal" />
</LinearLayout>
</HorizontalScrollView>
</FrameLayout>