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 com.example.pinnedheaderlistviewtest; | |
import java.util.ArrayList; | |
import java.util.List; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.widget.ArrayAdapter; |
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
@echo off | |
echo ====== | |
echo The Argument Specification of ImageResizer.jar | |
echo arg1: Original image file path | |
echo arg2: Output image file path | |
echo arg3: Output image format. Only support JPEG,PNG,BMP,WBMP,GIF. | |
echo arg4: Output image width | |
echo arg5: Output image height | |
echo ------ | |
echo Start converting... |
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 org.diao.tools.copyright; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics2D; | |
import java.awt.font.LineBreakMeasurer; | |
import java.awt.font.TextLayout; | |
import java.awt.image.BufferedImage; | |
import java.io.BufferedReader; | |
import java.io.File; |
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 org.codehaus.groovy.runtime.StringBufferWriter; | |
def downloadSingleImage(String imageUrl, String savePath) { | |
try { | |
URL url = new URL(imageUrl); | |
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); | |
DataInputStream is = new DataInputStream(connection.getInputStream()); | |
FileOutputStream fos=new FileOutputStream(savePath) | |
DataOutputStream os = new DataOutputStream(fos); | |
byte[] buffer = new byte[4096]; |
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 java.nio.file.Files | |
import java.nio.file.Paths | |
import java.nio.file.StandardCopyOption | |
def renameImages(def dirPath,def saveDirPath){ | |
new File(saveDirPath).mkdirs() | |
def dirFile=new File(dirPath) | |
dirFile.listFiles().eachWithIndex {inFile,i-> | |
String name=inFile.getName() | |
def number=Math.pow(2, i+1) as int |
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
buildscript { | |
repositories { mavenCentral() } | |
dependencies { classpath 'com.android.tools.build:gradle:1.0.0' } | |
} | |
apply plugin: 'com.android.application' | |
dependencies { | |
compile 'com.android.support:support-v4:21.0.0' | |
compile 'com.google.android.gms:play-services:+' | |
compile project(':CommonAdLib:CommonAdLib') |
OlderNewer