Skip to content

Instantly share code, notes, and snippets.

@yongce
yongce / migrate_android_x
Last active June 17, 2019 07:33
The feature "Migrate to AndroidX" in Android Studio failed to replace some classes. Also, it's hard to find them out and correct them in XML files (because there are no build errors). This script maybe help you do the work.
#!/bin/sh
if [ $# -ne 1 ]; then
echo "Usage: migrate_android_x <root path of your project>"
exit
fi
project_root_dir="$1"
echo "Migrating to AndroidX in '$project_root_dir'..."

AsciiDoc Tester(中文)

@yongce
yongce / SystemUiHelper.java
Created December 22, 2015 08:02 — forked from chrisbanes/SystemUiHelper.java
SystemUiHelper
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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
@yongce
yongce / aosp_projects.list
Created July 22, 2015 13:10
AOSP projects list
accessories/manifest
device/asus/deb
device/asus/flo
device/asus/flo-kernel
device/asus/fugu
device/asus/fugu-kernel
device/asus/grouper
device/asus/tilapia
device/common
device/generic/arm64
@yongce
yongce / hello
Created January 4, 2014 15:24
just a test
int main() {
printf("Hellow, gist");
}