Skip to content

Instantly share code, notes, and snippets.

View liuzhitao2000's full-sized avatar

akira liuzhitao2000

View GitHub Profile
@natelandau
natelandau / .bash_profile
Last active July 24, 2024 15:28
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@errord
errord / gist:7801466
Created December 5, 2013 07:25
android面试
一. Android问题
为适应多机型适配作出的努力。
使用dip代替px。
通过创建values-hdpi, values-mdpi, values-xhdpi分别为不同的屏幕大小的机型定制不同的布局。
设置字体大小的时候通过TextAppearnce="@android:style/TextAppearance.[Large, Small, Medium]"来设置大小。
设想我们要做一个app,这个app中间有一个登陆的逻辑。在用户完成登陆后需要改变其他activity的一些界面,这怎么做比较好?
如果他的描述中有"BroadcastReceive"就是正确答案.
有没有写过custom view.
@kojiokb
kojiokb / ConnectivityReceiver.java
Created August 22, 2012 11:30
ネットワークの接続・切断を検知して処理を行う
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
public class ConnectivityReceiver extends BroadcastReceiver {
/*
@nicklockwood
nicklockwood / ARCHelper.h
Last active November 20, 2018 10:02
ARC Helper
//
// ARC Helper
//
// Version 2.2
//
// Created by Nick Lockwood on 05/01/2012.
// Copyright 2012 Charcoal Design
//
// Distributed under the permissive zlib license
// Get the latest version from here: