Overlay view over another view

 

Code:

RelativeLayout rl = new RelativeLayout(this); RelativeLayout.LayoutParams lparams = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT); rl.setLayoutParams(lparams); background.removeAllViews(); rl.addView(view2); rl.addView(view1); background.addView(rl);

Comments

  1. Give instructions on how to use this code

    ReplyDelete
    Replies
    1. watch https://www.youtube.com/watch?v=7KMZGN7_M3U

      Delete
  2. How to you overlay a navigation bar sir?

    ReplyDelete
  3. If I want to more linear to overlay, the name view1 and other can I change right?

    ReplyDelete
  4. I got error "type Fragment deprecated "

    ReplyDelete

Post a Comment

Popular posts from this blog

Background video in Sketchware