In Android we can customize a Snackbar
We can change the Text Color, Action text color, Background color and chnage/add an image
TextView mainTextView = (TextView) (mSnackBar.getView()).findViewById(android.support.design.R.id.snackbar_text);
TextView actionTextView = (TextView) (mSnackBar.getView()).findViewById(android.support.design.R.id.snackbar_action);
// change background color
mSnackBar.getView().setBackgroundColor(Color.WHITE);
Typeface font = Typeface.createFromAsset(getAssets(), "LatoRegular.ttf");
// Change the Font
mainTextView.setTypeface(font);
actionTextView.setTypeface(font);
// Change the colors
mainTextView.setTextColor(Color.BLACK);
actionTextView.setTextColor(Color.BLACK);
We can change the Text Color, Action text color, Background color and chnage/add an image
TextView mainTextView = (TextView) (mSnackBar.getView()).findViewById(android.support.design.R.id.snackbar_text);
TextView actionTextView = (TextView) (mSnackBar.getView()).findViewById(android.support.design.R.id.snackbar_action);
// change background color
mSnackBar.getView().setBackgroundColor(Color.WHITE);
Typeface font = Typeface.createFromAsset(getAssets(), "LatoRegular.ttf");
// Change the Font
mainTextView.setTypeface(font);
actionTextView.setTypeface(font);
// Change the colors
mainTextView.setTextColor(Color.BLACK);
actionTextView.setTextColor(Color.BLACK);
Dịch vụ bán: Mã nguồn game đánh bài online đổi thưởng, Mã nguồn game bầu cua, Mã nguồn game Tài Xỉu, Mã nguồn game Nổ hũ, Mã nguồn game lô đề, Mã nguồn game Xổ Số, Mã nguồn game Bắn Cá, Mã nguồn game Xóc Đĩa
ReplyDeleteA debt of gratitude is in order for sharing the information, keep doing awesome... I truly delighted in investigating your site. great asset... Download Mini Militia God Mod + Apk Unlimited Ammo/Nitro
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteIn Android we can customize a Snackbar
ReplyDeleteWe can change the Text Color,
Action text color, Background color and chnage/add an image.
Steinco Industrial Solutions, Inc.
Gordon Bullard & Company builds revenue through identifying, recruiting, training, motivating, and managing sales agencies, distributors, and dealers for small to medium size businesses in the lighting industry. Located in Richland, MI.
ReplyDeleteAt Reliable Permit Solutions, LLC we realize that bidding on loads is highly competitive and fast paced. We have experienced agents with a vast knowledge of the costs that can be incurred throughout your permitting process to ensure you get the best rates when acquiring your trucking permits.
ReplyDeleteJ.E. Flores Bakery Services, Inc. is a full-service company committed to the bakery industry’s machinery operation. Flores Bakery Service installs, repairs and services new and legacy bakery equipment. We are specialists in Latendorf, BEW, and Baker Perkins equipment. Located in Bayonne, NJ.
ReplyDeleteFirst Motion Products offers an unmatched inventory of commercial truck part products. Our strength is the ability to service “truck down” and rush shipments. We can fill those requests for the everyday parts or hard-to-find parts. We specialize in Flywheels, Flywheel Ring Gears, Flywheel Housings, Oil Pans, and Clutch Accessories for truck applications. Located in Bourbon, MO.
ReplyDelete