I have a FrameLayout (all the screen is the FL) wich haves a openGLview and a header image on the top of the screen. Now i want to display a menu of two buttons, created with a LinearLayout.
My LL Menu must be floating on the framelayout, aligned to the right of the screen and must be 100px below the top of the screen. How can i achieve that? i tryed with this code, but is not working, the Menu is being displayed on the left on the screen and it is painting the upper part of the menu, and i dont want that, i need that the upper part of the menu it's not painted with the colour of the menu. Must be a floating menu. ///////////////sub menu de shareit//////////////// LinearLayout sharell = new LinearLayout(this); sharell.setOrientation(LinearLayout.VERTICAL); sharell.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); sharell.setGravity(Gravity.RIGHT); sharell.setPadding(10, 100, 10, 10); sharell.setBackgroundColor(0xFF383838); share= new ImageButton(this); selector(share, R.drawable.but_share_up,R.drawable.but_share_down); LinearLayout.LayoutParams shareParams = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); shareParams.setMargins(0, 0, 0, 10); //dejo un espacio entre este botón y el siguiente share.setLayoutParams(shareParams); sharell.addView(share); web= new ImageButton(this); selector(web, R.drawable.but_web_up,R.drawable.but_web_down); sharell.addView(web); ////////////////////////////////////////////////// . . . fl.addView(squareGLSurfaceView); fl.addView(rl); fl.addView(sharell); setContentView(fl); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en