I have 2 buttons with two different colors and border colors. So I need to create a XML in drawable folder with shape attribute and:
<solid android:color="#F78340" />`
<solid android:color="#000000" />
No, this is not possible. Unlike other components,
drawable resources are not given IDs, so they are referenced only by part filename through
R.drawable. They must be handled in separate files.
See developer documentation on referencing a
drawable types are on that same bit of documentation, if interested.)