主要类在 z.hol.net.download.file 包下.
- FileDownloadManager
- FileDownloadTask
- SimpleFile
- DownloadUIHandler
source /home/holmes/My/bash/http_proxy |
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
type item struct { | |
Name string | |
Comment string |
Debian with Popobox v1.0 | |
原文链接:http://pear.xiaojiublog.net/2013/11/debian-with-popobox-v1-0/ | |
## 部分内容由 felix021 修正、简化 ## | |
1: 制作Debian系统 | |
mkdir chroot && cd chroot | |
sudo debootstrap --foreign --arch=armel wheezy debian http://mirrors.ustc.edu.cn/debian/ | |
打包: |
{ | |
// Copy this file to Settings - User | |
// Set your real GOPATH in user's Godef.sublime-settings | |
// For example: | |
"gopath": "/home/holmes/My/go" | |
} |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path/filepath" | |
"strings" | |
) |
/******************************************************************************* | |
* Copyright 2011, 2012 Chris Banes. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
package z.hol.viewtest.view; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Point; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.view.View; |
package com.buy.apps.view; | |
import android.os.Handler; | |
import android.view.View; | |
/** | |
* 自动重试的Runnable, 用于等待UI完成一定程度后触发 | |
* @author holmes | |
* | |
*/ |
package com.example.imagetext.view; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.util.AttributeSet; | |
import android.widget.ImageView; | |
public class FixImageView extends ImageView{ | |
private int mFixWidth = -1; |