我是一名新的移动开发人员,我知道如何在一个应用程序中添加主题,到目前为止,我已经能够制作2个移动应用程序,但我想尝试为手机定制一个主题。我想知道有没有人在下面的问题上有想法。
1.how to make a customized theme for phone.
2.what is the format of the theme.
3.is it possible to make it in eclipse.
4.what are the things needed to consider to make a theme for phone.
5.how to implement customized theme on phone.
6.available tutorial on making a customized phone theme.发布于 2014-03-08 13:24:54
如果您想更改特定主题应用程序(如GO Launcher或aHome )的主题,您可以在他们的站点上找到一个链接,有关更多信息,请参阅此问题Android的主题?。
但是您也可以编写启动程序,如果您想这样做,您可以看到以下链接:为Android构建一个应用程序启动程序
但是,如果您想更改应用程序的主题,那么您可以阅读这些文档和教程:
我认为构建几个主题的另一个方法是为应用程序的每个主题构建一个apk,这个解决方案使您的应用程序更小。像这样的功能:
public static Resources getResource() {
resourcePackageName = "com.mine.MyApp";
PackageManager packageManager = mContext.getPackageManager();
Resources resources = null, resources2 = null;
try {
resources = mContext.getResources();
resources2 = packageManager
.getResourcesForApplication("com.mine.MyAppTheme");
resourcePackageName = "com.mine.MyAppTheme";
} catch (Exception e) {
Log.d("ss", e.toString());
}
if (resources2 != null)
mResource = resources2;
else
mResource = resources;
return mResource;
}在这段代码中,您的应用程序名为com.mine.MyApp,并且您有一个com.mine.MyApp中包含所有资源的应用程序,它是您的主题,主题apk应用程序的名称是com.mine.MyAppTheme。您可以使用多个apk作为几个主题。只需将您的资源放在主题apk文件中。你可以看到这个问题:用Android编写主题应用程序
https://stackoverflow.com/questions/22188234
复制相似问题