This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
from PIL import Image | |
import cairosvg | |
# Supported extensions | |
SUPPORTED_EXTENSIONS = ['.png', '.svg'] | |
# Dictionary to store the multipliers for density suffixes | |
density_multipliers = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from PIL import Image | |
import os | |
# Create a dictionary to store the multipliers for density suffixes | |
density_multipliers = { | |
'-ldpi': 0.75, | |
'-mdpi': 1.0, | |
'-hdpi': 1.5, | |
'-xhdpi': 2.0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.prabhatpandey.android.utils | |
import android.transition.ChangeBounds | |
import android.transition.Fade | |
import android.transition.Transition | |
import android.transition.TransitionManager | |
import android.transition.TransitionSet | |
import android.view.View | |
import android.view.ViewGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// before onCreate() in acivity/fragment | |
private val mainHandler = Handler(Looper.getMainLooper()) | |
private val updateBannerItemTask = object : Runnable { | |
override fun run() { | |
updateCurrentBannerItem() | |
mainHandler.postDelayed(this, 3000) | |
} |