Skip to content

Instantly share code, notes, and snippets.

@linbercsu
linbercsu / delete_git_submodule.md
Created September 29, 2018 03:42 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule

Binder (native | java)

ActivityManagerService

WindowManagerService

SurfaceFlingger

TouchEvent

FFmpeg

VM

Lock

ThreadPool

DB

java 范型测试

github

class for testing.

    public static class TTT<A, B, C> extends ArrayList<Integer> {

    }

##Introducing Fresco: A new image library for Android

Displaying images quickly and efficiently on Facebook for Android is important. Yet we have had many problems storing images effectively over the years. Images are large, but devices are small. Each pixel takes up 4 bytes of data — one for each of red, green, blue, and alpha. If a phone has a screen size of 480 x 800 pixels, a single full-screen image will take up 1.5 MB of memory. Phones often have very little memory, and Android devices divide up what memory they have among multiple apps. On some devices, the Facebook app is given as little as 16 MB — and just one image could take up a tenth of that!

##android TextView、EditText对部分内容进行设置 以下代码是从网上取下来的,做了部分修改。

//android TextView、EditText对部分内容设置颜色、字体、超链接、图片; 
    //这里是以一个TextView为例子,EditText的设置方法和TextView一样

    //TextView对象
    TextView txtInfo = new TextView(this);

    //文本内容