Skip to content

Instantly share code, notes, and snippets.

View shuanghua's full-sized avatar
🍃
I

Sam.Mo shuanghua

🍃
I
  • Android Engineer
  • CN
View GitHub Profile
@shuanghua
shuanghua / RestartAppUtil.java
Created April 21, 2023 01:44 — forked from imhet/RestartAppUtil.java
Android 重启应用的5种方式
/**
* 多种方式重启应用自身
*/
public class RestartAppUtil
{
/**
* 使用 AlarmManager 来帮助重启
@shuanghua
shuanghua / ohmyposhv3-v2.json
Created October 20, 2021 05:34 — forked from shanselman/ohmyposhv3-v2.json
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@shuanghua
shuanghua / IconView.kt
Created March 15, 2019 09:59 — forked from nickbutcher/IconView.kt
A prototype implementation of a shadow effect inspired by the Google Play Games app (https://play.google.com/store/apps/details?id=com.google.android.play.games).
/*
* Copyright 2017 Google Inc.
*
* 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 distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY