Issue
Id like a button shadow and text like the Apple App Store. Does anyone know how I could achieve this in android studio?
Like the images below, id like to have a button with an image as a background with a greyed out section over the image and text over the top of the greyed out area with that nice shadowing like on the apple App Store.
I have a button I have created in Xcode to demonstrate what I mean.
I know how to do this in Xcode but I'm lost in android studio.
help would be much appreciated
Solution
Put item in the cardView, with elevation
like this :
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="6dp"
card_view:cardUseCompatPadding="true"
card_view:cardElevation="4dp"
card_view:cardCornerRadius="3dp">
Answered By - Alireza
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.