Skip to content
June 26, 2025

Pupli

  • .NET
    • .NET Core
    • ASP.NET
    • ASP.NET Blazor
    • ASP.NET MVC
    • ASP.NET Web APIs
    • ASP.NET Worker Services
    • async/await
    • AutoMapper
    • BenchmarkDotNet
    • C#
    • Dapper
    • DateTime
    • Dependency Injection
    • Entity Framework
    • EPPlus
    • FluentEmail
    • gRPC
    • Hangfire
    • HttpClient
    • Identity
    • Image Processing
    • MailKit
    • MassTransit
    • MediatR
    • MessagePipe
    • ML.NET
    • MongoDB
    • NuGet
    • Polly
    • PostgreSQL
    • Protobuf
    • Quartz.NET
    • Resources
    • RestSharp
    • Security
    • Selenium
    • Seq
    • Serilog
    • Sharp7
    • SharpVectors
    • SharpZipLib
    • SignalR
    • SOAP
    • StackExchange.Redis
    • String
    • Syncfusion
    • Windows
    • WPF
    • XML
  • C/C++
    • Qt
  • Database
    • Hibernate
    • MongoDB
    • MySQL
    • PostgreSQL
    • Redis
  • Electrical
    • PLC
  • Go
  • Java
    • Apache POI
    • Gradle
    • Groovy
    • Gson
    • Java
    • Joda
    • Kotlin
    • OkHttp
    • Quartz
    • RxJava
    • Spring
  • JavaScript
    • Express
    • JavaScript
    • Moment.js
    • Mongoose
    • Node.js
    • PM2
    • RxJS
    • Socket.IO
    • TypeScript
    • Yarn
  • Linux
    • Apache
    • Bash
    • Fedora
    • Git
    • Kali
    • Linux
    • Manjaro
    • Mint
    • Nginx
    • PDF
    • SSH
    • Tools
      • Certbot
      • cron
      • cURL
      • DNS
      • FFmpeg
      • GPG
      • grep
      • HAProxy
      • ip
      • iptables
      • Nmap
      • ProxyChains
      • rsync
      • sch
      • Superset
      • systemd
      • ufw
    • Ubuntu
    • VPN
  • Math
    • Formula
  • Microsoft
    • BAT
    • BI
    • Excel
    • PowerShell
    • Windows
      • DNS
    • Windows Server
    • WSL
  • Mobile
    • Android
    • Ionic
  • MQ
    • MQTT
    • RabbitMQ
  • Network
    • Cisco
    • Network+
  • Programming
    • Architectural Patterns
  • Python
    • Bokeh
    • Celery
    • Django
    • dnspython
    • Flask
    • Gunicorn
    • Network
    • NumPy
    • OpenCV
    • openpyxl
    • Pandas
    • PIL
    • psutil
    • PyInstaller
    • PyScreeze
    • PySide
    • pytesseract
    • Python
    • requests
    • Selenium
    • SQLAlchemy
    • SQLite
    • Telegram Bot
    • Virtualenv
    • Windows
  • Tools
    • GitHub Copilot
  • Web
    • Angular
    • Bootstrap
    • HTML
    • Next.js
    • PWA
    • React
    • Tailwind CSS
    • Vite
    • WordPress
    • XPath
    • CSS
Main Menu

Invalidate the whole view on Android

May 12, 2017

Invalidate the whole view. If the view is visible, onDraw(android.graphics.Canvas) will be called at some point in the future.

This must be called from a UI thread. To call from a non-UI thread, call postInvalidate().

gauge.invalidate();

References
https://developer.android.com/reference/android/view/View.html#invalidate()
http://stackoverflow.com/questions/10647558/when-its-necessary-to-execute-invalidate-on-a-view

Related

Taggedandroid
Copyright © 2025 Pupli.
Powered by WordPress and HitMag.