偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

一鍵換膚

移動(dòng)開(kāi)發(fā)
APP一鍵換膚的實(shí)現(xiàn)

源碼簡(jiǎn)介

APP一鍵換膚的實(shí)現(xiàn)
源碼運(yùn)行截圖

 

源碼片段:

  1. public final static String SHARED_PREFERENCES_NAME = "andnav_preferences"
  2.   
  3.     public final static String PREF_THEME_RESID_ID = "theme_resid"
  4.       
  5.     public final static String TITLE_ID ="title_id"
  6.       
  7.     public static void setTitle(Activity act) 
  8.     { 
  9.           SharedPreferences sPref = act.getSharedPreferences(SHARED_PREFERENCES_NAME, 0); 
  10.         TextView title = (TextView) act.findViewById(R.id.titleTv); 
  11.         int title_resid = sPref.getInt(TITLE_ID, R.drawable.color1); 
  12.         title.setBackgroundResource(title_resid); 
  13.     } 
  14.     public static void setValue(Activity act,int theme_resid,int title_resid) 
  15.     { 
  16.          SharedPreferences sPref = act.getSharedPreferences(SHARED_PREFERENCES_NAME, 0); 
  17.          Editor editor = sPref.edit(); 
  18.          editor.putInt(PREF_THEME_RESID_ID, theme_resid); 
  19.          editor.putInt(TITLE_ID, title_resid); 
  20.          editor.commit(); 
  21.     } 

源碼下載:http://down.51cto.com/data/1982408

責(zé)任編輯:chenqingxiang 來(lái)源: 網(wǎng)絡(luò)整理
相關(guān)推薦

2022-04-07 13:56:13

前端一鍵換膚

2021-04-23 10:38:52

Spring BootSpringMVC源碼

2015-11-03 15:29:49

ONOS開(kāi)放網(wǎng)絡(luò)操作系統(tǒng)SDN

2025-04-17 04:00:00

2023-06-15 10:00:00

Jenkins任務(wù)操作

2025-04-02 09:10:00

LinuxShell腳本

2018-03-20 12:30:44

iOSPush抓包

2021-12-02 07:50:29

分支服務(wù)git worktre

2025-09-08 01:15:00

2024-10-17 11:09:46

2020-11-24 11:00:24

前端

2023-05-29 09:08:27

SQL日志數(shù)據(jù)

2012-03-01 14:00:08

2022-01-09 23:09:08

Windows 10Windows微軟

2021-08-03 15:25:09

數(shù)據(jù)庫(kù)Sharding SpSQL

2018-08-02 11:05:00

安全狗

2024-03-15 14:34:12

Oracle數(shù)據(jù)庫(kù)一鍵巡檢

2024-04-08 13:59:03

大模型Replicate

2022-08-02 14:27:01

HDF驅(qū)動(dòng)框架驅(qū)動(dòng)開(kāi)發(fā)

2011-01-27 10:40:08

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)