Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
How to compare .getCurrentTextColor() with Hex Code (Android)

just wondering how I can compare the current color of a TextView with a Hex code. The code snippet looks like this:

public void topButtonClicked(View view) {
    if(color_top.getCurrentTextColor() == Color.parseColor("#000000")) {
        score_top += 1;
        button_top.setText("Score "+score_top);
    } else {    
        //
    }

Would be awesome if someone could help me

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Actually, it works just fine as it is! I was the Hex code I used was just the wrong one..

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!