You have to surround the second Absolutelayout with two LinearLayouts and modify the second Absolutelayout slightly:
<AbsoluteLayout> [original from your example]
<LinearLayout android:id="@+id/base1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:layout_x="0dp" android:layout_y="0dp">
<LinearLayout android:id="@+id/base2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:gravity="center" android:layout_gravity="center_vertical">
[The second AbsoluteLayout from your example with additional attribute android:layout_gravity="center_horizontal"]
[Rest of your Layout]
</LinearLayout>
</LinearLayout>
</AbsoluteLayout>
You have to make the layout file read only AND all other resources used in the layout file, too. In your example you have to make the testwidget_panel2_background.xml file and the "test.xml" file in the drawable folder read only, too.
Hopefully Erel will enhance the support for widget layouts in the future. Perhaps with a widget layout template file and support for other layout variants like landscape.