Android 带有ExpandableListActivity的窗口功能\u左\u图标不工作
我用的是API 10姜饼 我没有使用布局,虽然我尝试过使用布局,但仍然不起作用。正常活动子类可以正常工作,我不知道问题出在哪里Android 带有ExpandableListActivity的窗口功能\u左\u图标不工作,android,Android,我用的是API 10姜饼 我没有使用布局,虽然我尝试过使用布局,但仍然不起作用。正常活动子类可以正常工作,我不知道问题出在哪里 public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_LEFT_ICON); setFeatureDrawableResource(Window.FEATU
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_LEFT_ICON);
setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,R.drawable.ic_launcher);
不管它值多少钱,使用FEATURE_NO_TITLE都很好。有什么好处?有人有什么建议吗?试试这段代码
requestWindowFeature(Window.FEATURE_LEFT_ICON);
setContentView(R.layout.main); //or whatever layout is shows
setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,R.drawable.ic_launcher);
请尝试此代码
requestWindowFeature(Window.FEATURE_LEFT_ICON);
setContentView(R.layout.main); //or whatever layout is shows
setFeatureDrawableResource(Window.FEATURE_LEFT_ICON,R.drawable.ic_launcher);
见