app/src/main/java/com/amol/testlogin/HomePage.java
void showUpAboutUs(){
        LayoutInflater layoutInflater = getLayoutInflater();
        View view = layoutInflater.inflate(R.layout.show_about_us,null);
        Toast toast = new Toast(getApplicationContext());
        toast.setView(view);
        toast.setDuration(Toast.LENGTH_LONG);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.show();
    }
/**This will show a layout in toast message*/
This will show a layout in toast message
This will show a layout in toast message
void showUpAboutUs(){
        LayoutInflater layoutInflater = getLayoutInflater();
        View view = layoutInflater.inflate(R.layout.show_about_us,null);
        Toast toast = new Toast(getApplicationContext());
        toast.setView(view);
        toast.setDuration(Toast.LENGTH_LONG);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.show();
    }
void showUpAboutUs ( ) { LayoutInflater layoutInflater = getLayoutInflater ( ) ; View view = layoutInflater . inflate ( R . layout . show_about_us , null ) ; Toast toast = new Toast ( getApplicationContext ( ) ) ; toast . setView ( view ) ; toast . setDuration ( Toast . LENGTH_LONG ) ; toast . setGravity ( Gravity . CENTER , 0 , 0 ) ; toast . show ( ) ; }
This will show a layout in toast message
This will show a layout in toast message