Border in shape XML October 24, 2022 by Tarik It looks like you forgot the prefix on the color attribute. Try <stroke android:width="2dp" android:color="#ff00ffff"/>