package com.kris.reskin;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
public class Re_SkinActivity extends Activity {
private LinearLayout layout;
private Button btnSet;
private Context friendContext;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
btnSet = (Button)findViewById(R.id.button1);
layout = (LinearLayout)findViewById(R.id.layout);
layout.setBackgroundResource(R.drawable.bg);
//com.kris.reskin1
try {
friendContext = createPackageContext("com.kris.reskin1", Context.CONTEXT_IGNORE_SECURITY);
} catch (NameNotFoundException e) {
e.printStackTrace();
}
btnSet.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
new Handler().post(new Runnable() {
@Override
public void run() {
layout.setBackgroundDrawable(friendContext.getResources().getDrawable(R.drawable.bg));
}
});
}
});
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Android 换肤.zip (71个子文件)
Android 换肤
Android 换肤
Re_Skin1
AndroidManifest.xml 723B
res
layout
main.xml 382B
drawable-ldpi
icon.png 2KB
drawable-mdpi
bg.png 41KB
icon.png 3KB
drawable-hdpi
icon.png 4KB
values
strings.xml 175B
proguard.cfg 1KB
src
com
kris
reskin1
Re_Skin1Activity.java 344B
bin
com
kris
reskin1
Re_Skin1Activity.class 525B
R.class 477B
R$layout.class 388B
R$attr.class 334B
R$string.class 421B
R$drawable.class 420B
classes.dex 2KB
resources.ap_ 52KB
Re_Skin1.apk 54KB
.classpath 273B
assets
default.properties 362B
.project 811B
gen
com
kris
reskin1
R.java 662B
__MACOSX
Re_Skin1
res
layout
._main.xml 82B
drawable-ldpi
._icon.png 82B
drawable-mdpi
._icon.png 82B
._bg.png 82B
drawable-hdpi
._icon.png 82B
values
._strings.xml 82B
src
com
kris
reskin1
._Re_Skin1Activity.java 82B
._AndroidManifest.xml 82B
._default.properties 82B
._.classpath 82B
._proguard.cfg 82B
._.project 82B
Re_Skin
res
layout
._main.xml 82B
drawable-ldpi
._icon.png 82B
drawable-mdpi
._icon.png 82B
._bg.png 82B
drawable-hdpi
._icon.png 82B
values
._strings.xml 82B
src
com
kris
reskin
._Re_SkinActivity.java 82B
._AndroidManifest.xml 82B
._default.properties 82B
._.classpath 82B
._proguard.cfg 82B
._.project 82B
Re_Skin
AndroidManifest.xml 721B
res
layout
main.xml 548B
drawable-ldpi
icon.png 2KB
drawable-mdpi
bg.png 69KB
icon.png 3KB
drawable-hdpi
icon.png 4KB
values
strings.xml 173B
proguard.cfg 1KB
src
com
kris
reskin
Re_SkinActivity.java 1KB
bin
com
kris
reskin
Re_SkinActivity.class 2KB
Re_SkinActivity$1$1.class 1KB
R.class 510B
Re_SkinActivity$1.class 1KB
R$layout.class 385B
R$attr.class 331B
R$id.class 406B
R$string.class 418B
R$drawable.class 417B
classes.dex 4KB
Re_Skin.apk 78KB
resources.ap_ 74KB
.classpath 273B
assets
default.properties 362B
.project 810B
gen
com
kris
reskin
R.java 805B
共 71 条
- 1
资源评论
yxkfw
- 粉丝: 76
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功