Skip to content

Instantly share code, notes, and snippets.

@davemorrissey
davemorrissey / InputStreamImageDecoder.java
Created November 9, 2017 10:40
Subsampling Scale Image View Input Stream Decoder
package com.davemorrissey.labs.subscaleview.decoder.inputstream;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.BitmapRegionDecoder;
import android.net.Uri;
import com.davemorrissey.labs.subscaleview.decoder.DecoderFactory;
@davemorrissey
davemorrissey / PicassoDecoder.java
Last active November 26, 2021 14:17 — forked from gokhanbarisaker/PicassoDecoder.java
Picasso decoder for subsampling-scale-image-view
/**
* Created by gokhanbarisaker on 8/30/15.
*/
public class PicassoDecoder implements ImageDecoder
{
private String tag;
private String picasso;
public PicassoDecoder(String tag, Picasso picasso) {
this.tag = tag;
public class CustomSubsamplingScaleImageView extends SubsamplingScaleImageView {
private final AtomicBoolean scaleSet = new AtomicBoolean(false);
public CustomSubsamplingScaleImageView(Context context, AttributeSet attr) {
super(context, attr);
setAlpha(0);
}
public void onDraw(Canvas canvas) {
<?php
$host="localhost";
$username="******";
$password="*******";
$db_name="signuplist";
$tbl_name="signupbydate";
$myusername=$_SESSION['logname'];
?>
<html>