Android Question widget layout

ehsan2521

Member
hi
I have problem with the widget layout
i wrote my program in manifest according to "sagenut" program (Widget test) but how i can put an image over another one like an image icon over a background image
this is the manifest code:

manifest:

B4X:
CreateResource(xml, widget_1x1_info.xml,
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minWidth="120dp"
android:minHeight="60dp"
android:resizeMode="none"
android:minResizeWidth="60dp"
android:widgetCategory="home_screen"
   android:previewImage="@drawable/preview2"
android:updatePeriodMillis="1800000" />
)
CreateResource(layout, widget_1x1_layout.xml,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"        android:layout_width="match_parent"        android:layout_height="match_parent">
<LinearLayout android:id="@+id/widget_4x1_panel2" android:layout_width="match_parent" android:layout_height="match_parent"  android:background="@drawable/widget_4x1_panel1_background" android:orientation="horizontal">
<ImageView android:id="@+id/widget_1x1_imageview1"      android:layout_width="match_parent"        android:layout_height="match_parent" />
    </LinearLayout>
</LinearLayout>
)




i want to put imagevew2 over imagevew1 in line 17 of code
how can i write the code ?

THX for your help
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…