2. Transparent Drawer Get link Facebook X Pinterest Email Other Apps - May 09, 2020 final LinearLayout _nav_view = (LinearLayout) findViewById(R.id._nav_view); _nav_view.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(Color.TRANSPARENT)); Get link Facebook X Pinterest Email Other Apps Comments
3. Block Screenshot - May 09, 2020 Code-1 getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE); Code-2 getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SECURE); Read more
4. Custom dialog using custom view - May 09, 2020 final AlertDialog dialog2 = new AlertDialog.Builder(MainActivity.this).create(); View inflate = getLayoutInflater().inflate(R.layout.cust, null); dialog2.setView(inflate); dialog2.setTitle("Welcome"); Button but1 = (Button) inflate.findViewById(R.id.button1); Button but2 = (Button) inflate.findViewById(R.id.button2); but1.setOnClickListener(new OnClickListener() { public void onClick(View view) { MainActivity.this.finish(); } }); but2.setOnClickListener(new OnClickListener() { public void onClick(View view) { dialog2.dismiss(); } }); dialog2.show(); Read more
Comments
Post a Comment