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);

Give instructions on how to use this code
ReplyDeletewatch https://www.youtube.com/watch?v=7KMZGN7_M3U
DeleteHow to you overlay a navigation bar sir?
ReplyDeleteIf I want to more linear to overlay, the name view1 and other can I change right?
ReplyDeleteI got error "type Fragment deprecated "
ReplyDelete