Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Android Studio/Java I Need help writing the code that asks the user to select 3 points on a colorwheel/Image. Selection 1=Point1 Selection 2=Point2 Selection 3=Point3
Android Studio/Java I Need help writing the code that asks the user to select 3 points on a colorwheel/Image. Selection 1=Point1 Selection 2=Point2 Selection 3=Point3 public class MainActivity extends AppCompatActivity { private int Point1; private int Point2; private int Point3; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // ask user to select 3 points on color wheel selectPoints(); // obtain RGB values for each point int[] Point1RGB = Color.valueOf(Point1).toArgb(); int[] Point2RGB = Color.valueOf(Point2).toArgb(); int[] Point3RGB = Color.valueOf(Point3).toArgb();
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started