python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Get context in xml for "onDraw" in a custom view
I want to load an image from url in onDraw method for the view preview. I tried to do this using Picasso. But, I get an error in the xml. This is the onDraw method.
@Override
protected void onDraw...
Sambhav Khandelwal
Votes: 0
Answers: 2
How to inflate custom view with XML layout with use of ViewBinding?
I have layout in XML:
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="...
Baterka
Votes: 0
Answers: 1
Android. Font size too large to fit in cache. how to get cache size?
This is not duplicate, please read it first.
I've been recently working with a custom view that displays text and scales it with 'scaleX' and 'scaleY'. problem with this approach is that if you rotate...
Mohammad312
Votes: 0
Answers: 1
Custom view lifecycle when device screen is locked
I have a custom view where I want to do some actions when it gets visible or invisible to the user.
I know I can override onVisibilityChanged(changedView: View, visibility: Int) or onDetachedFromWindo...
Daniel
Votes: 0
Answers: 0