On your question: Yes It is possible. A simple example:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:orientation="vertical" android:layout_height="match_parent" > <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:background="#f0f" android:layout_marginLeft="-50dp" android:layout_marginRight="-50dp" /> </LinearLayout>
And ImageViewWidth == LinearLayoutWidth + 100dp .
We hope for his help.
source share