1. activity加载Fragment
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction transaction = fragmentManager.beginTransaction();
// NotificationAppList为需要加载的Fragment
NotificationAppList notificationFragment = new NotificationAppList();
// id为activity
布局文件中的
id
transaction.add(R.id.fragement, notificationFragment);
transaction.commit();
2.Android5.0去除actionBar下面的阴影
验证通过:
getSupportActionBar().setElevation(
0
);
未测试:
<style
name
=
"MyAppTheme"
parent
=
"android:Theme.Holo.Light"
>
<item name=
"android:windowContentOverlay"
>@null</item>
</style>