probleme superposition de vue
Bonjour à tous, je suis nouveau et je n'ai pas vraiment l'habitude des forums donc soyez indulgent svp ^^
voila le problème :
http://simpleclic.fr/image_galaxyS.html
comme vous le voyez sur l'image, il y a plusieurs vues
- la vue de la camera en fond
- la vue de des points d’intérêt au dessus
- la vue encore au dessus de la flèche
la flèche est réalisée en openGL, le fond est transparent comme on peut le voir car le fond de la flèche est celui de la camera.
pourquoi le fond de la flèche prend comme fond l'image de la caméra et pas celui la de la vue placée entre ?
voici un bout de code qui pourra peut être vous éclairer !
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| <?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
// vue de la camera
<taggik.project.ar.CamView android:id="@+id/cam_view"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</taggik.project.ar.CamView>
// vue des points d'interets
<taggik.project.ar.ARView android:id="@+id/ar_view"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:keepScreenOn="true">
</taggik.project.ar.ARView>
<RelativeLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
// vue de la fleche
<taggik.project.arrowwidget.ArrowView android:id="@+id/arrow_view"
android:layout_width="100dip"
android:layout_height="100dip"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:visibility="invisible"/>
<ProgressBar android:id="@+id/progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"/>
<TextView android:id="@+id/accuracy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@drawable/aractivity_gpsacc_background"
android:padding="3dip"/>
<TextView android:id="@+id/infos"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="center"
android:background="@drawable/aractivity_infos_background"
android:ellipsize="marquee"
android:maxLines="2"
android:padding="6dip"
android:visibility="invisible"/>
</RelativeLayout>
</FrameLayout> |
je ne sais pas si le code Java est très utile pour le moment donc je le mettrais plus tard si nécessaire !
si quelqu'un a une idée pour m'aider à faire en sorte que la vue de la flèche soit aussi transparent pour pour la vue des points d'intérêt !?!
merci d'avance