Android Cardview Border

5 Development Essentials - Java Edition Print and eBook (ePub/PDF. Most of the time the android developers use a third-party library for creating a circular profile image, but this tutorial will explain how to create a circular image view without the help of the third-party library and plugins as well. (This Android border tutorial assumes that Android Studio is installed; a basic App can be created and run; and code can be correctly copied into Studio. com/apk/res-auto" xmlns:tools="http://schemas. Android CardView was introduced in the Android SDK with material design through support v7 library. 2017-07-19 布局 阴影背景 Android. layout to tight - you just can findViewById on your parent: parentView. As with material design a new view was introduced through the support v7 library, called CardView. Android – All com. Card View is a View format consist with proper rounded edges with drop shadow effect known as Elevation in android application, CardView is used to show information in a Card format with nice layout,Creating Card View in Android iOS react native App Example Tutorial. Planned Functions IN Future Updates:-1) Scrobbling via last. I might be late in the game, but I had the same issue. let’s say that you looking for how implement shadow at your View at android, you will google somethings and you probably find these 3 answers. -Mexico bound said he was attacked by three individuals and accursed his weapon in self-defense. What I want is to. IMPORTANT: CardView’s shadows will be clipped if it reaches to the parent view’s borders or padding area. The Android platform provides a large collection of styles and themes that you can use in your applications. Just use 5–6 shapes that they have padding, and. To prevent it, either add padding and clipToPadding=”false” to the parent or add cardUseCompatPadding=”true” to the card view. Clients have to call setChecked(boolean). The new support library in Android L introduced two new UI widgets: RecyclerView and CardView. I did this a little simpler by making the cardBackgroundColor green and contentPadding 1dp and inside the card having a ConstraintLayout (or other layout) with a white background, like this:. I wrote a post on Android ToolBar with Material Design so this post will be partially build on top of it. 其余参考Android目录. You can see the effect of the cardCornerRadius and cardElevation below. My next issue comes with custom renderers. arrow_back Android Asset Studio Launcher icon generator. Android Cardview Border Color - border in card view | border in card view The addendum were acutely arresting as the president, 73, boarded Air Force One in Mountain View, California, on Tuesday. ViewPager in Android is a class that allows the user to flip left and right through pages of data. 阴影不显示 阴影显示 阴影 CardView Label WPF 让Border显示外阴影 2012-02-23 android layout encoding qq Android. None of the Above answers worked for me. Pendahuluan. Drawables are used to define shapes, colors, borders, gradients, etc. CardView step by step complete tutorial using recyclerview example in Android Studio. CardView - Android CardView UI component shows information inside cards. DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, Delphi, HTML5 or iOS & Android development. Task bars are the bars that are displayed horizontally in Gantt and Calendar Views, and vertically on the left side of cards in Card View. This tutorial teaches you how to build a quality Android chat and messaging UI using RecyclerView and ConstraintLayouts. 1" Multiple ItemDecorations can be added to a single RecyclerView. In this tutorial we will show some information inside the CardView using RecyclerView. I might be late in the game, but I had the same issue. MaterialCardView provides all of the features of CardView, but adds attributes for customizing the stroke and uses an updated Material style by default. NET Controls and Libraries (includes 30 days of free technical support). What is Retrofit? Retrofit is a type-safe HTTP client for Android and Java developed by Square. net how to call a c# function in a href onclick event. 99) format Android Studio 3. 0 (API level 21) and above and falls back to a programmatic shadow implementation on earlier versions. If you’re supporting older android versions, you can make use of fragment-compatibility support library. New -> Android Project 2. This guide explains how to use and customize CardView in Xamarin. The Layout View ( LayoutView class) offers more layout modes and is significantly more advanced in terms of provided features and customization flexibility. Android cardview example will show you how to implement a basic cardview in android. In this codelab, you'll learn the principles of this design language by building a sample Android app. Shadow effect not working for cardview on above lollypop devices while it works with pre-lollypop ShahanaHabeeb US Member December 2016 edited December 2016 in Xamarin. 这里的CircleImageView还可以为头像设置描边。 我们新建一个项目,选择Navigation Drawer Activity自动生成初始布局。 修改nav_header_main,添加圆角. xmlns:app="http://schemas. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. So you must add space to draw the shadow. (Large preview) 30- Great now you can see Gridlayout filled with pictures and their titles, next you want to add the click function so that when you tap on any of those images, you will move to another page which shows you the picture and a description. How to set-apply different color on android. Schedule What is Accessibility? Android vs iOS Exploring Android Accessibility Features Coding Accessible Apps 3. I would like to remove the border around my Card View - how do I do that? I've marked it in red in the attach screen image. Your Next Great ASP. change the border and background of the card view. The Android platform provides a large collection of styles and themes that you can use in your applications. Pendahuluan. 4 Edition of this book. Android ImageView that supports different radii on each corner. It provides a more advanced and flexible way of implementing complex and custom listview with more functionality that is required now a days in our apps. Summary: Margins and paddings help to arrange layout elements. Android cardview example will show you how to implement a basic cardview in android. CardView - Android CardView UI component shows information inside cards. 1' } Create Cards; In order to use the CardView you need to add it to your layout file. Now in android creating card views has gotten even more simpler. 我有一个内部有两个视图的相对布局,一个CardView和一个ImageButton,我需要将IB放在cardview上面,但是cardview不尊重z索引顺序. ConstraintLayout was built from the ground up alongside the new layout editor that makes it easier than ever to build an Android UI. change the border and background of the card view. build:gradle:3. Shadow effect not working for cardview on above lollypop devices while it works with pre-lollypop ShahanaHabeeb US Member December 2016 edited December 2016 in Xamarin. Android cardview example will show you how to implement a basic cardview in android. gradle file and sync the project. -Mexico bound said he was attacked by three individuals and accursed his weapon in self-defense. Although you can edit a ConstraintLayout in XML, you never have to. In android\gradle\wrapper\gradle-wrapper. It is supposed to be the successor of ListView and GridView. As monitors with rounded border look appealing on android device screen so we will select CardView to be the base layout of our monitors. Use ListView and create items in Card to create stunning. CardView) in the XML just like in the original question. This page provides Java source code for HomeAdapter. If you want to use two apps simultaneously on your Android Pie device, you have to use split-screen mode. They work exactly in the same way as other margins and paddings, but set the space before or after the text. 0 (API level 21) and above and falls back to a programmatic shadow implementation on earlier versions. Changing divider color: It's pretty easy to set an color for a itemDecoration. 0 introduces a new widget called CardView which essentially can be thought of as a FrameLayout with rounded corners and shadow based on its elevation. when I click anywhere on the card. 可以设置阴影,圆角,等等. It is supposed to be the successor of ListView and GridView. Nah, saya di sini akan memberikan Tutorial Membuat Project Aplikasi Baru di Android Studio yang Super Lengkap dari awal! Seperti bagaimana memilih SDK, bagaimana. As monitors with rounded border look appealing on android device screen so we will select CardView to be the base layout of our monitors. Android(安卓)-----CardView的更多相关文章. gradle only depends on plugin version 3. fm official app 2)Lyrics Finder 3)Auto Missing Album Art Downloader 4)export playlist and many more For any issues ,please drop us a mail instead of giving 1 star. Android applications while maintaining backward compatibility with earlier versions of Android. The Layout View ( LayoutView class) offers more layout modes and is significantly more advanced in terms of provided features and customization flexibility. Cards implement Checkable, a default way to switch to android:checked_state is not provided. An online code editor, learning environment, and community for front-end web development using HTML, CSS and JavaScript code snippets, projects, and web applications. Android CardView is UI widget and its very useful when you want to display information in Card. It enables: Facebook Analytics - Understand how people are using your product. Clients have to call setChecked(boolean). let's say that you looking for how implement shadow at your View at android, you will google somethings and you probably find these 3 answers. The RecyclerView is a more advanced and more flexible version of the ListView. What I want is to. Without a strokeColor, the card will not render a stroked border, regardless of the strokeWidth value. Shadow effect not working for cardview on above lollypop devices while it works with pre-lollypop ShahanaHabeeb US Member December 2016 edited December 2016 in Xamarin. modern christmas layout with golden pine …. With React-Native-Smart-Status-Bar we try to make status bar consistent across both Android iOS. The exciting Wedding Card Frame Border picture below, is section of Border For Card write-up which is labeled within Card, border card for canada, border card for mexico, border for card design, border for card wedding, border for cards, border for cards in bootstrap, border for cardview, border for cardview in android, border for invitation card, border punches for card making and posted at. The Facebook SDK for Android is the easiest way to integrate your Android app with Facebook. A while back, I wrote a blog on Google Place Autocomplete feature. fm official app 2)Lyrics Finder 3)Auto Missing Album Art Downloader 4)export playlist and many more For any issues ,please drop us a mail instead of giving 1 star. findViewById(vmax_tv_desc). Most of the time the android developers use a third-party library for creating a circular profile image, but this tutorial will explain how to create a circular image view without the help of the third-party library and plugins as well. However, it does not mean that it is impossible to achieve this goal. Use these properties to customize the appearance of the CardView widget: To set the corner radius in your layouts, use the card_view:cardCornerRadius attribute. There are 4 functions, 2 get the panel width/height for a given cardview and another 2 get the needed width/height of the cardview if the inner panel needs to be of a specific size. In Android, there is a very little known API called Outline that is providing the required information for a Material sheet to project a shadow. As with material design a new view was introduced through the support v7 library, called CardView. CardView is a FrameLayout with a rounded corner background and shadow. 0 API Level 21) and are available for use on devices running API Level 7 and above through the Support Libraries. 2005-03-01 css 浏览器 border ie div stylesheet CSS. Note that this project is no longer maintained. 这里的CircleImageView还可以为头像设置描边。 我们新建一个项目,选择Navigation Drawer Activity自动生成初始布局。 修改nav_header_main,添加圆角. The RecyclerView is a ViewGroup that renders any adapter-based view in a similar way. The new support library in Android L introduced two new UI widgets: RecyclerView and CardView. Just use 5–6 shapes that they have padding, and. 2015-01-16 launcher3 桌面阴影 systemUI阴影 Android. I would like to remove the border around my Card View - how do I do that? I've marked it in red in the attach screen image. Note that a CardView wraps a layout and will often be the container used in a layout for each item within a ListView or RecyclerView. Here, you'll find: - News for Android developers - Thoughtful, informative articles - Insightful talks and presentations - Useful libraries - Handy tools - Open source applications for studying. You can specify the type of a shape using android:shape XML attribute in the shape tag. BluetoothAdapter; import android. iOS, ANDROID & XAMARIN Xamarin Hi, just wondering how to get of the Cardview border. The new support library in Android L introduced two new UI widgets: RecyclerView and CardView. gradle file and sync the project. Android tutorial about integrating CardView with RecyclerView. How to set-apply different color on android. So you must add space to draw the shadow. This Android tutorial is to add cardview in apps with recyclerview. Android – All com. Follow complete ConstraintLayout tutorial step by step and learn how to use A ConstraintLayout with example in Android Studio. I am trying to add a colored vertical border at the beginning of the cardview. Create CardView in Kotlin Programmatically In this short Kotlin code example we will learn how to create a single CardView in Kotlin programmatically. How to correctly update my layout (based weight attribute) with cardview? (Android) - Codedump. Perlu dicatat bahwa sebuah CardView membungkus suatu layout dan biasanya dipakai sebagai container untuk setiap item di dalam ListView atau RecyclerView. Creating a custom card unifies the experience for the user, gives us more control on the design of the app and speeds up the cross-platform UI/UX workflows. TextView text foreground color and background color in source code. !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module. CardView is a type of separate frame layout and rounded corners background and shadow. The RecyclerView is a ViewGroup that renders any adapter-based view in a similar way. Thank you for your help. NET Controls and Libraries (includes 30 days of free technical support). New -> Android Project 2. 可以设置阴影,圆角,等等. Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. technologies For beginners. get the field values on the same event and also access repository item values. Note that this project is no longer maintained. Android ImageView that supports different radii on each corner. Use these properties to customize the appearance of the CardView widget: To set the corner radius in your layouts, use the card_view:cardCornerRadius attribute. 2, which supports a plugin version of up to 3. Use ListView and create items in Card to create stunning. xml file which is located on drawable folder. This page provides Java source code for DatePicker. Retrofit can be used as the best alternative to V. DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, Delphi, HTML5 or iOS & Android development. 1" compile "com. This example will tell you how to set android. X'}Add the card view to the layout. Some useful attributes that you can use when defining a shape: 1. Card and Layout Views In Card View ( CardView class), data source records are represented as cards arranged down and then across. It provides a more advanced and flexible way of implementing complex and custom listview with more functionality that is required now a days in our apps. The Android platform provides a large collection of styles and themes that you can use in your applications. Create CardView in Kotlin Programmatically In this short Kotlin code example we will learn how to create a single CardView in Kotlin programmatically. It is supposed to be the successor of ListView and GridView. Android Squared CardView Recently, I had to add a perfect square CardView and I wanted to achieve this without hardcoding its width and height. CardView) in the XML just like in the original question. Android Coding World is all about the fundamentals of Programming Language,Software Design,Problem Solving Skills(Complexity) ,Core-Java,Data-Structures,Algorithms,Design-Patterns and Android Application Development. The Layout View ( LayoutView class) offers more layout modes and is significantly more advanced in terms of provided features and customization flexibility. Also, I would like to remove the Card View header marked in Green. Just wanted to share a simple solution! My custom view extended a CardView and I had a margin applied to the root element (i. net, gridview cardview android, gridview css styles in asp. У меня есть подобный вопрос - Аналог position absolutе в android cardview где благодаря ответу я почти нашел решение для своей проблемы. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. -Mexico bound said he was attacked by three individuals and accursed his weapon in self-defense. CardView is a type of separate frame layout and rounded corners background and shadow. Forms controls also utilize controls and features from the Telerik UI for UWP, providing common API that allows the developer to use the native Telerik components on all three. 可以设置阴影,圆角,等等. Shadow effect not working for cardview on above lollypop devices while it works with pre-lollypop ShahanaHabeeb US Member December 2016 edited December 2016 in Xamarin. I was confused why my Frame did not show a border so I thought I would just customize the renderer and draw the border myself. The CardView element allows us to add certain properties like rounded corners, elevation etc. 2015-01-16 launcher3 桌面阴影 systemUI阴影 Android. findViewById(vmax_tv_desc). Use these properties to customize the appearance of the CardView widget: To set the corner radius in your layouts, use the card_view:cardCornerRadius attribute. For other android UI components, it is similar to change foreground and […]. I have border style set to No Border for Card View. support libraries must use the exact same version specification If you have encountered a notification similar to the following “All com. The first is the normal android namespace which holds all of the inherited attributes for CardView like width or height or scale. 1 (classpath 'com. I have a Cardview, which has images and text fields. Use it as a view group to contain other views. CardView - Android CardView UI component shows information inside cards. Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. I am recomending you refer Android cardview example before starting to implement this. 0 mengenalkan sebuah widget baru bernama CardView yang sebetulnya FrameLayout dengan sudut yang membulat dan shadow berdasarkan nilai elevation-nya. You can find a reference of all available styles in the R. The bound bearings is heating up. Follow our simple easy to grasp step by step tutorial on ViewPager with example in Android Studio. cardview widget on button click dynamically. Purchase the fully updated Android Studio 3. [Update] Navigation arrows now supported in Android and iOS [Android] Fixing ViewRenderer constructor [Android] ListView scrolls to the top as you swipe right and left on the CarouselView bug #258 [Android] On Property changed not fired when carousel view is inside ViewCell (Listview) #183 4. Home » Android » Android RecyclerView, Android CardView Example Tutorial Android RecyclerView and Android CardView got introduced in Android Lollipop with Material Design. An online code editor, learning environment, and community for front-end web development using HTML, CSS and JavaScript code snippets, projects, and web applications. У меня есть подобный вопрос - Аналог position absolutе в android cardview где благодаря ответу я почти нашел решение для своей проблемы. {"en":{"translation":{"biometrics":{"fingerprint":{"push_notif_body":"push_notif_body","push_notif_title":"push_notif_title"}},"csastandard_fields":{"timezone_55":{"0. If you look at the attached screen shot, I have got everything hidden except. Use ListView and create items in Card to create stunning. You can see the effect of the cardCornerRadius and cardElevation below. In this short tutorial I show you how you can change the background of your app using color-codes and adding a gradient in the color. With the use of CardView android developer can easily create custom views with automatically added background. modern christmas layout with golden pine …. Note that a CardView wraps a layout and will often be the container used in a layout for each item within a ListView or RecyclerView. Home » Android » Android SearchView Example Tutorial using DataBinding Today we will look into Android SearchView widget and develop an application that filters a ListView by the queried text. NET App Starts Here Get started today and download your 30-day trial of ASP. Android CardView 101: Everything you should know We will assume you have at least basic knowledge of the how-tos of Android development. Rounded button with shadow in Android. !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module. Do you want to display a questionaire? A survey for a medical trial? SurveyKit is an Android library that allows you to create exactly that. In this tutorial, you will learn how to implement a Button and an onclicklistener to open a new activity in your Android application. BluetoothAdapter; import android. New App to create your native app. 5 / Android 10 / Jetpack Edition of this publication in eBook ($29. Perlu dicatat bahwa sebuah CardView membungkus suatu layout dan biasanya dipakai sebagai container untuk setiap item di dalam ListView atau RecyclerView. Set the stroke color using the strokeColor attribute. Thank you for your help. It is a container used to display large amount of data sets that can be scrolled very efficiently by maintaining a limited number of views. Android TableLayout. Adding Border to the Top and Bottom of an Android View Android ImageButton Example Android Example: How to Make/Create Transparent Background of Android Button It’s very simple just create a button where you want and add background color according to your need using background attribute like android:background="#000000". If you’re building an android application, then most likely you’ll need to implement a search in it to let the user search through a set of data that could be emails, messages, chats, photos, files, etc. change the border and background of the card view. Make sure that you have already created a brand to associate your app with. In Xamarin Studio, Visual Studio is also available. I wrote a post on Android ToolBar with Material Design so this post will be partially build on top of it. Making Your Android Frame Shadows. Android shadow drawable xml. You may don't like the CardView's black shadow which we can't change it's color. The Cardview widget is a UI component that presents text and image content in views that resemble cards. support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Cardview is a new widget for Android, which can be used to display a card sort of a layout in android. Pendahuluan. CardView is a FrameLayout with a rounded corner background and shadow. technologies For beginners. CardView step by step complete tutorial using recyclerview example in Android Studio. Android Squared CardView Recently, I had to add a perfect square CardView and I wanted to achieve this without hardcoding its width and height. Now you have understood what dialogs are used for, it's now time to learn how. step is: creating a divider. However, as of January 29, 2019, the Google Play Services version of the Places SDK for Android is deprecated. 0 and it improves the visual appeal of the apps. 浙公网安备 33030202000166号. Make sure that you have already created a brand to associate your app with. change the border and background of the card view. In android\gradle\wrapper\gradle-wrapper. I wrote a post on Android ToolBar with Material Design so this post will be partially build on top of it. The Android platform provides a large collection of styles and themes that you can use in your applications. Facebook Login - Authenticate people with their Facebook credentials. NET App Starts Here Get started today and download your 30-day trial of ASP. In Android, CardView is another main element that can represent the information in a card manner with a drop shadow called elevation and corner radius which looks consistent across the platform. The Cardview widget is a UI component that presents text and image content in views that resemble cards. Android ImageView that supports different radii on each corner. Android – All com. get the field values on the same event and also access repository item values. In Android, GridView let you arranges components in a two-dimensional scrolling grid. 1" compile "com. The value to show for the text input. 4 Edition of this book. Pendahuluan. I have a Cardview, which has images and text fields. How can I achieve it on xml ?. In this short tutorial I show you how you can change the background of your app using color-codes and adding a gradient in the color. My solution is Use a card inside a card with outer card with the border color. Hi How can I remove the Border from the Card(This includes the shadow) and from the GridControl? I also want the content of each card to fit perfectly into the card, no padding nor margins. The bound bearings is heating up. Just use 5–6 shapes that they have padding, and. Whether using WPF, ASP. Purchase the fully updated Android Studio 3. 0 and it improves the visual appeal of the apps. Android TableLayout organizes its views in the form of rows and columns. 2, which supports a plugin version of up to 3. CardView is a FrameLayout with a rounded corner background and shadow. cardview widget on button click dynamically. support:cardview-v7:27. With the use of CardView android developer can easily create custom views with automatically added background. Each row has zero or more cells and each cell can hold one View object. change the border and background of the card view. How to set-apply different color on android. IMPORTANT: CardView’s shadows will be clipped if it reaches to the parent view’s borders or padding area. Android cardview example will show you how to implement a basic cardview in android. With the use of CardView android developer can easily create custom views with automatically added background. Just wanted to share a simple solution! My custom view extended a CardView and I had a margin applied to the root element (i. when I click anywhere on the card. The first is the normal android namespace which holds all of the inherited attributes for CardView like width or height or scale. gradle file and sync the project. Without a strokeColor, the card will not render a stroked border, regardless of the strokeWidth value. Using them you could. Android shadow drawable xml. -Mexico bound said he was attacked by three individuals and accursed his weapon in self-defense. How to obtain a CardView (support library) with a Image and rounded corners for API<21 - MainActivity. In this tutorial, you will learn how to implement a Button and an onclicklistener to open a new activity in your Android application. Nah, saya di sini akan memberikan Tutorial Membuat Project Aplikasi Baru di Android Studio yang Super Lengkap dari awal! Seperti bagaimana memilih SDK, bagaimana. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. Same to CardView wrap content and set shadow radius. Build a simple contacts manager. toolbar不显示阴影,cardview不显示圆. In Android, RecyclerView is an advance and flexible version of ListView and GridView. You can see this debug this code that i have written It will display all set of Bluetooth active device in as a toast message: [code]package com. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. gl/qUZ0XV3), DZone MVB and founder of stacktips. xml file which is located on drawable folder. CardView is a type of separate frame layout and rounded corners background and shadow. You can change shadow color, foreground color and corner radius everywhere. In Xamarin Studio, Visual Studio is also available. Android cardview example will show you how to implement a basic cardview in android. (Large preview) 30- Great now you can see Gridlayout filled with pictures and their titles, next you want to add the click function so that when you tap on any of those images, you will move to another page which shows you the picture and a description. How can I achieve it on xml ?. You are free to change this example for your own requirements. In a about unreported adventure in the aboriginal morning hours on May 29, a U. In this codelab, you'll learn the principles of this design language by building a sample Android app. Without a strokeColor, the card will not render a stroked border, regardless of the strokeWidth value. We start with font and background colors, but beside a standard text color there are also other options, like links, highlight and hint colors. Forms app from the XS/VS template, it seems to create an AppCompat Android app. Android ImageView that supports different radii on each corner. Android CardView Sample - XML and Java Raw. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. Nah, saya di sini akan memberikan Tutorial Membuat Project Aplikasi Baru di Android Studio yang Super Lengkap dari awal! Seperti bagaimana memilih SDK, bagaimana. You could also expect tutorials on web hosting as well FreshByte Labs: RecyclerView with sqlite database android tutorial. cardview bootstrap, cardview border android, beautiful cardview android, gridview c#, gridview css, gridview control in asp. 0 才引入的,所以需要导入这个依赖包。 dependencies { implementation 'com. 2017-07-19 布局 阴影背景 Android. This new component is a big step because the ListView is one of the most used UI widgets. How to add border on Android TextView. How to obtain a CardView (support library) with a Image and rounded corners for API<21 - MainActivity. It is supposed to be the successor of ListView and GridView. They work exactly in the same way as other margins and paddings, but set the space before or after the text. MaterialCardView provides all of the features of CardView , but adds attributes for customizing the stroke and uses an updated Material style by default. ConstraintLayout was built from the ground up alongside the new layout editor that makes it easier than ever to build an Android UI. In this tutorial we are going to change the CardView widget background color on button click with completely dynamic method using MainActivity.