Created
October 5, 2018 20:14
-
-
Save cutiko/8c72eb8e268bb8798c8884118594b9eb to your computer and use it in GitHub Desktop.
Android what is a drawable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Look in android we can use drawables written on xml | |
Like this: | |
--> | |
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | |
<solid android:color="@android:color/white" /> | |
<corners android:radius="4dp" /> | |
<stroke android:width="1.7dp" android:color="@color/colorAccent" /> | |
</shape> | |
<!--That is a white rectangle with rounded corners and a green border--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment