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 / TextViewStringStyle.java
Created August 14, 2020 23:44
android 设置指定字符样式
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String str1 = "你有${ccccc}财产需要领";
//String str1 = "${ccccc}你有财产需要领$";
//String str1 = "你有财产需要领${ccccc}";
@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 / RestartAppUtil.java
Created April 21, 2023 01:44 — forked from imhet/RestartAppUtil.java
Android 重启应用的5种方式
/**
* 多种方式重启应用自身
*/
public class RestartAppUtil
{
/**
* 使用 AlarmManager 来帮助重启