Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void altbildirim(Activity context,String yazi,int sure) {
- View parentLayout = context.findViewById(android.R.id.content);
- Snackbar snackbar = Snackbar.make(parentLayout, yazi, sure);
- View snackbarLayout = snackbar.getView();
- TextView textView = (TextView)snackbarLayout.findViewById(android.support.design.R.id.snackbar_text);
- textView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.erroricon, 0, 0, 0);
- textView.setCompoundDrawablePadding(10);
- snackbar.show();
- }
- textView.setCompoundDrawablePadding(getResources().getDimensionPixelOffset(R.dimen.icon_padding));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement