//If you want to set through xml using android's default color codes, then you need to do as below:
android:background="@android:color/white"
//If you have colors specified in your project's colors.xml, then use:
android:background="@color/white"
//If you want to do programmatically, then do:
linearlayout.setBackgroundColor(Color.WHITE);
Code Example |
---|
:: |
Java :: spring data rest format date |
:: |
Java :: |
Java :: |
Java :: |
:: |
Java :: |
Java :: |
Java :: java int to binary string |
:: |
:: |
Java :: |
Java :: add value with n variable with Arraylist in java |
:: onclicklistener in android studio |
Java :: |
Java :: leetcode patterns |
:: |
:: papermc api maven |
:: |
:: |
Java :: |
Java :: |
:: |
Java :: |
:: |
:: |
:: |
Java :: Java debug log |
:: |