Tumgik
#sachtech
Video
youtube
Radio buttons allow the user to select one option from a set. You should use radio buttons for optional sets that are mutually exclusive if you think that the user needs to see all available options side-by-side. If it's not necessary to show all options side-by-side, use a spinner instead.
0 notes
sachtech123-blog · 7 years
Video
youtube
The final keyword in java is used to restrict the user. The java final keyword can be used in many context. Final can be:
variable
method
class
0 notes
hellosachtech-blog · 7 years
Video
youtube
Text Formatting Tags by STS Mentor  
0 notes
Video
youtube
0 notes
Video
youtube
A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars. The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar. The smaller RatingBar style ( ratingBarStyleSmall) and the larger indicator-only style (ratingBarStyleIndicator) do not support user interaction and should only be used as indicators. When using a RatingBar that supports user interaction, placing widgets to the left or right of the RatingBar is discouraged. The number of stars set (via setNumStars(int) or in an XML layout) will be shown when the layout width is set to wrap content (if another layout width is set, the results may be unpredictable).
0 notes
Video
youtube
Every Button is styled using the system's default button background, which is often different from one device to another and from one version of the platform to another. If you're not satisfied with the default button style and want to customize it to match the design of your application, then you can replace the button's background image with a state list drawable. A state list drawable is a drawable resource defined in XML that changes its image based on the current state of the button. Once you've defined a state list drawable in XML, you can apply it to your Button with the android:background attribute.
0 notes
Video
youtube
Every Button is styled using the system's default button background, which is often different from one device to another and from one version of the platform to another. If you're not satisfied with the default button style and want to customize it to match the design of your application, then you can replace the button's background image with a state list drawable. A state list drawable is a drawable resource defined in XML that changes its image based on the current state of the button. Once you've defined a state list drawable in XML, you can apply it to your Button with the android:background attribute.
0 notes
sachtech123-blog · 7 years
Video
youtube
Subscribe : http://bit.ly/2j0HVAp App Link: http://bit.ly/2iE62qv FB : https://www.facebook.com/stsmentor/
0 notes
sachtech123-blog · 7 years
Video
youtube
// Inheritance class Parent { private void jewellery() { System.out.println("Private Jwellery"); } void bmw() { System.out.println("Parent BMW"); } void flat() { System.out.println("Parent Flat"); } } class Child extends Parent { void swift() { System.out.println("Child Swift"); } public static void main(String args[]) { Parent p1=new Parent(); p1.flat(); p1.bmw(); // p1.swift(); Child c1=new Child(); c1.swift(); c1.flat(); c1.bmw(); c1.jewellery(); } }
0 notes
sachtech123-blog · 7 years
Video
youtube
Subscribe : http://bit.ly/2j0HVAp App Link: http://bit.ly/2iE62qv FB : https://www.facebook.com/stsmentor/
0 notes
sachtech123-blog · 7 years
Video
youtube
Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects. The Javaplatform provides the String class to create and manipulate strings.
0 notes
sachtech123-blog · 7 years
Video
youtube
Let's see the simple example of the Java Scanner class which reads the int, string and double value as an input:
import java.util.Scanner;
class ScannerTest{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
System.out.println("Enter your rollno");
int rollno=sc.nextInt();
0 notes
sachtech123-blog · 7 years
Video
youtube
Subscribe : http://bit.ly/2j0HVAp App Link: http://bit.ly/2iE62qv FB : https://www.facebook.com/stsmentor/
0 notes
sachtech123-blog · 7 years
Video
youtube
Constructor in java is a special type of method that is used to initialize the object.
Java constructor is invoked at the time of object creation. It constructs the values i.e. provides data for the object that is why it is known as constructor.
0 notes
sachtech123-blog · 7 years
Video
youtube
For All the update download STS Mentor Android APP
0 notes
sachtech123-blog · 7 years
Video
youtube
If we decide to choose a three-dimensional array, here's how the array might be declared:
int[][][] colorImage = new int[numRows][numColumns][3];
However, wouldn't it be more effective like this?
int[][][] colorImage = new int[3][numRows][numColumns];
Where 3 is the rgb values, 0 being red, 1 being green, and 2 being blue
0 notes