Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

set icon to fab programmatically in android studio

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            floatingActionButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_full_sad, context.getTheme()));
        } else {
            floatingActionButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_full_sad));
    }
Comment

PREVIOUS NEXT
Code Example
Java :: Duplicate class android.support.v4.app. 
Java :: array slice java 
Java :: Java algorithm for drawing a line 
Java :: java how to get elapsedTime 
Java :: Could not initialize class org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSetKt 
Java :: fullscreen in java 
Java :: textview set text bold programmatically 
Java :: java split first occurrence 
Java :: java take screenshot 
Java :: iterate over string java 
Java :: system.out.println 
Java :: clsoe keyboard android studio 
Java :: javafx get window in controller 
Java :: difference between premitive and non-premitive 
Java :: wat is voorbereiden voltooid deelwoord 
Java :: appcompatdelegate.setdefaultnightmode(appcompatdelegate.mode_night_yes) not working 
Java :: int to string java 
Java :: java load file from resources 
Java :: cast double to string java 
Java :: youTubeInitializationResult gives SERVICE_MISSING error in android 
Java :: android java get current date 
Java :: how to build a java main menu 
Java :: java print type of object 
Java :: map java get first key 
Java :: java int to binary 
Java :: how to set landscape in android studio 
Java :: primefaces calendar min date validation 
Java :: string starts with alphabet java 
Java :: org.mockito.exceptions.misusing.WrongTypeOfReturnValue 
Java :: hashmap.foreach example 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =