(一)
requestWindowFeature(Window.FEATURE_NO_TITLE);// 填充标题栏
具体的操作是:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);// 填充标题栏
setContentView(R.layout.main);
requestWindowFeature();
这句需要在setContentView之前使用
(二)
在配置文件中:
android:theme="@android:style/Theme.NoTitleBar"
具体操作:
<application
android:theme="@android:style/Theme.NoTitleBar"
android:name=".TodayApplication"
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:name=".activity.ActivityOpenedShopDynamic"
android:screenOrientation="portrait" >
</activity>
</application>