Skip to content

Instantly share code, notes, and snippets.

@STAR-ZERO
STAR-ZERO / FontFitTextView.java
Created June 15, 2012 03:18
【Android】横幅に合わせてテキストサイズを調整するTextView
import android.content.Context;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.TextView;
/**
* サイズ自動調整TextView
*
*/
#!/usr/bin/env perl
use strict;
use warnings;
my $flickrRss = $ARGV[0] or die $!;
my $photoNo = 1;
open(RSS,"curl '$flickrRss' | grep jpg | sed 's/.*http/http/g' | sed 's/jpg\".*\$/jpg/g' | grep -v m.jpg |") or die $!;
while(<RSS>){
chomp;