1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-23 07:38:04 +01:00

ストア登録用に画像を追加。ランチャーアイコンも変わった

This commit is contained in:
tateisu 2017-04-23 16:36:10 +09:00
parent 8059878f86
commit 5310f9eab5
13 changed files with 54 additions and 3 deletions

View File

@ -9,8 +9,8 @@ android {
applicationId "jp.juggler.subwaytooter"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "0.0.1"
versionCode 2
versionName "0.0.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -93,7 +93,6 @@
<string name="confirm_boost">Boost this status? it\'s shown by all followers and your profile page.</string>
<string name="tags">tags</string>
<string name="mentions">mentions</string>
<string name="display_name_favourited_by">favourited by %1$s</string>
<string name="display_name_boosted_by">boosted by %1$s</string>
<string name="display_name_replied_by">replied by %1$s</string>

BIN
ic_launcher-1024.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

BIN
ic_launcher-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
ic_launcher.xcf Normal file

Binary file not shown.

52
resizeLauncherIcon.pl Normal file
View File

@ -0,0 +1,52 @@
#!perl --
use strict;
use warnings;
use Image::Magick;
sub resize{
my($src_file,$dst_file,$resize_w,$resize_h) = @_;
my $image = new Image::Magick;
$image->read($src_file);
my($src_w,$src_h) = $image->Get(qw( width height));
if( not $resize_w ){
$resize_w = $resize_h * $src_w / $src_h;
}elsif( not $resize_h ){
$resize_h = $resize_w * $src_h / $src_w;
}
$image -> Resize(
width => $resize_w,
height => $resize_h,
blur => 0.8,
);
$image -> Write( "png:$dst_file" );
print "$dst_file\n";
}
my @scale_list = (
[qw( mdpi 1 )],
[qw( hdpi 1.5 )],
[qw( xhdpi 2 )],
[qw( xxhdpi 3 )],
[qw( xxxhdpi 4 )],
);
sub resize_scales{
my($src,$res_dir,$dir_prefix,$res_name,$w,$h)=@_;
for(@scale_list){
my($dir_suffix,$scale)=@$_;
my $subdir = "$res_dir/$dir_prefix-$dir_suffix";
mkdir($subdir,0777);
resize( $src, "$subdir/$res_name.png", $scale * $w, $scale * $h );
}
}
my $res_dir = "app/src/main/res";
resize_scales( "ic_launcher-1024.png",$res_dir,"mipmap","ic_launcher",0,48);
#resize_scales( "ic_app_logo-512.png",$res_dir,"drawable","ic_app_logo",0,32);
#resize_scales( "ic_service-512.png",$res_dir,"drawable","ic_service",0,24);

BIN
store-header-1024.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

BIN
store-promo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB