【发布时间】:2017-04-28 06:05:41
【问题描述】:
我有一个应用程序,我从包名称中找到应用程序图标并将其设置为 textview drawable top。我该怎么做,请指导我。
代码:-
try {
Drawable icon = getPackageManager().getApplicationIcon("com.example.testnotification");
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
【问题讨论】:
-
textView drawable top是什么意思?
标签: android android-studio package drawable