文件名称:Android换肤Demo
文件大小:6.01MB
文件格式:ZIP
更新时间:2018-09-30 03:34:25
Android换肤
Android换肤Demo public void init(){ btn1 = (Button) findViewById(R.id.btn_skin1); btn2 = (Button) findViewById(R.id.btn_skin2); btn3 = (Button) findViewById(R.id.btn_skin3); btn1.setOnClickListener(new MyBtnListener(R.layout.skin1)); btn2.setOnClickListener(new MyBtnListener(R.layout.skin2)); btn3.setOnClickListener(new MyBtnListener(R.layout.skin3)); } public class MyBtnListener implements OnClickListener{ private final int layout_id; public MyBtnListener(int layout) { layout_id = layout; } @Override public void onClick(View v) { setContentView(layout_id); init(); } }
【文件预览】:
ChangeSkinDemo
----AndroidManifest.xml(866B)
----res()
--------layout()
--------values-w820dp()
--------drawable-ldpi()
--------menu()
--------drawable-mdpi()
--------values-v11()
--------drawable-hdpi()
--------drawable-xhdpi()
--------values-v14()
--------drawable-xxhdpi()
--------values()
----src()
--------com()
----proguard-project.txt(781B)
----bin()
--------classes()
--------dexedLibs()
--------AndroidManifest.xml(866B)
--------res()
--------jarlist.cache(120B)
--------classes.dex(1.29MB)
--------resources.ap_(1.16MB)
--------ChangeSkinDemo.apk(1.49MB)
----.classpath(475B)
----assets()
----project.properties(563B)
----ic_launcher-web.png(258KB)
----.settings()
--------org.eclipse.jdt.core.prefs(177B)
----libs()
--------android-support-v4.jar(972KB)
----.project(850B)
----gen()
--------com()