Splash Screen timer for android :-
Splash Sc
programming made easy
Splash Sc
Drawer demo project in android Step1: Main Activity where you want to show MainActivity.xml :- Step 2: Design nav_header layout in layout section nav_header.xml: – Step3:- right click on res folder create a new Android resources directory menu and create a menu resource file nav_menu.xml:- Step4: MainActivity.java Depedency for Circle Image view
View Binding Step1 : First go to build.gradle Module Place below code inside android{ }
Abstraction in java | what is Abstraction in java Abstraction is the process of hiding the implementation details and showing only functionality to the user. Another way , it shows only essential things to the user and hides the internal details, for example , sending sms where you type the text send the message . […]
What is java polymorphism |Method Overloading | Method Overriding Polymorphism means many forms, and it occurs when we have many classes that are related to each other by inheritance. Inheritance let us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks. this allows us to perform a single action […]
(What is subclass and superclass) It is possible to inherit attributes and methods from one class to another . we group the inheritance in to two categories. Subclass(Child) :- the class that inherits from another class. Superclass(Parent) :- the class being inherited from . To inherit from a class, use the extends keyword . In […]
Package :- It should be lowercase if multiple use dot like com.codingsansar Constant :- It should be in UPPERcase letter like RED, YELLOW if name contain multiple then seperated by _ like MAX_PRIORITY It may contain digits but not in first character exp – static final int MIN_AGE =18; Class :- Name should be start […]
What is Encapsulation | What is java encapsulation The Meaning of Encapsulation is to make sure that sensitive data is hidden from the users, To achieve this, you must Declare class variables/attributes as private provide public get and set methods to access and updates the value of a private variable Private variables can only be […]
Public Keyword is an access modifier , meaning that it is used to set the access level for classes , attributes, methods and constructors. We divide modifiers in to two groups Access Modifier Non Access Modifier Access Modifier :- Controls the access level Non Access Modifier :- Do not control Access level but provides functionality […]
What is java method :- Java method is a block of code which only runs when it is called. Methods are used to perform certain actions, and they are also knowns fuctions Void indicates that method should not return value. you can use primitive data type (int, char) instead of void , and use the […]