Most Questions will be answered Here
Possible work around for adding borders to the cardview layout xml
Asked by - Fitchman
View Post - #2
Possible answer -
Since applying the border to the template card layout, you have stated that you don't know how to define it in the layout I have provided. There is two ways to go about doing so, one is by using framelayout or by using a few simple lines of code.
Give the card layout an ID, so the code will know where to refer to.
For example - android:id="@+id/card_view_one"
Now go to the Activity (Code) that initiates the layout. For example MainActivity launches activity_main.xml.
In the onCreate method add the following code - here
View Post - #2
Possible answer -
Since applying the border to the template card layout, you have stated that you don't know how to define it in the layout I have provided. There is two ways to go about doing so, one is by using framelayout or by using a few simple lines of code.
Give the card layout an ID, so the code will know where to refer to.
For example - android:id="@+id/card_view_one"
Now go to the Activity (Code) that initiates the layout. For example MainActivity launches activity_main.xml.
In the onCreate method add the following code - here