修改主题样式,采用订制actionbar样式
This commit is contained in:
parent
f73d38c017
commit
501daa0a50
|
@ -1,5 +1,6 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.zftlive.android"
|
||||
android:installLocation="preferExternal"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
|
@ -57,22 +58,24 @@
|
|||
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
|
||||
<!-- 读写手机状态和身份 -->
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
<!--向外拨打电话的权限 -->
|
||||
<uses-permission android:name="android.permission.CALL_PHONE"/>
|
||||
<!-- 向外拨打电话的权限 -->
|
||||
<uses-permission android:name="android.permission.CALL_PHONE" />
|
||||
<!-- 调用照相机相关权限 -->
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
|
||||
<!-- 发送短信权限 -->
|
||||
<uses-permission android:name="android.permission.SEND_SMS"/>
|
||||
<uses-permission android:name="android.permission.SEND_SMS" />
|
||||
<!-- 读送短信权限 -->
|
||||
<uses-permission android:name="android.permission.READ_SMS"/>
|
||||
<uses-permission android:name="android.permission.READ_SMS" />
|
||||
<!-- 写短信权限 -->
|
||||
<uses-permission android:name="android.permission.WRITE_SMS"/>
|
||||
<!-- 接收短信权限 -->
|
||||
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
|
||||
|
||||
<permission android:protectionLevel="normal" android:name="oem.permission.SENDMAIL"/>
|
||||
|
||||
<uses-permission android:name="android.permission.WRITE_SMS" />
|
||||
<!-- 接收短信权限 -->
|
||||
<uses-permission android:name="android.permission.RECEIVE_SMS" />
|
||||
|
||||
<permission
|
||||
android:name="oem.permission.SENDMAIL"
|
||||
android:protectionLevel="normal" />
|
||||
|
||||
<uses-feature android:name="android.hardware.camera" />
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera.autofocus"
|
||||
|
@ -102,17 +105,18 @@
|
|||
android:allowBackup="false"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/CustomAppTheme" >
|
||||
android:theme="@style/AppTheme" >
|
||||
|
||||
<!-- 在本应用中导入需要使用的包,放在application里面activity外面 -->
|
||||
<uses-library android:name="android.test.runner" />
|
||||
|
||||
<!-- 配置程序启动界面 -->
|
||||
<activity android:name=".Launcher"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
>
|
||||
<activity
|
||||
android:name=".Launcher"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
@ -120,25 +124,27 @@
|
|||
<!-- 程序主界面 -->
|
||||
<activity
|
||||
android:name=".sample.MainActivity"
|
||||
android:logo="@drawable/ic_list_white_48dp"
|
||||
android:label="@string/MainActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/MainActivity"
|
||||
android:launchMode="singleTask"
|
||||
android:logo="@drawable/ic_list_white_48dp"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<!-- android:windowSoftInputMode="adjustPan" 键盘就会覆盖屏幕 -->
|
||||
<!-- android:windowSoftInputMode="stateVisible|adjustResize" 屏幕整体上移 -->
|
||||
|
||||
|
||||
|
||||
<!-- 引导界面 -->
|
||||
<activity
|
||||
android:name=".common.GuideActivity"
|
||||
android:label="@string/GuideActivity"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/GuideActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
@ -146,12 +152,13 @@
|
|||
<!-- 意见反馈界面 -->
|
||||
<activity
|
||||
android:name=".common.FeedbackActivity"
|
||||
android:label="@string/FeedbackActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/FeedbackActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
@ -166,38 +173,41 @@
|
|||
<!-- 底部泡泡菜单 -->
|
||||
<activity
|
||||
android:name=".sample.popupwindow.PopDialogMenuActivity"
|
||||
android:label="@string/PopDialogMenuActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/PopDialogMenuActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
|
||||
<!-- 曲线图样例 -->
|
||||
<activity
|
||||
android:name=".sample.chart.LineChartActivity"
|
||||
android:label="@string/LineChartActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/LineChartActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
|
||||
<!-- 异步加载列表图片样例 -->
|
||||
<activity
|
||||
android:name=".sample.image.ImageListviewActivity"
|
||||
android:label="@string/ImageListviewActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/ImageListviewActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
@ -205,64 +215,69 @@
|
|||
<!-- 调用摄像头拍照样例 -->
|
||||
<activity
|
||||
android:name=".sample.camera.CameraPictureActivity"
|
||||
android:label="@string/CameraPictureActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/CameraPictureActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
</activity>
|
||||
|
||||
<!-- 数据库操作示例 -->
|
||||
<activity
|
||||
android:name=".sample.db.DBDemoActivity"
|
||||
android:label="@string/DBDemoActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/DBDemoActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
|
||||
<!-- 生成二维码/验证码示例 -->
|
||||
<activity
|
||||
android:name=".sample.zxing.ZxingGenBinActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/ZxingGenBinActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- 扫描二维码/条形码示例 -->
|
||||
<activity
|
||||
android:name=".sample.zxing.ZxingSacnnerActivity"
|
||||
android:label="@string/ZxingSacnnerActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- 调用webservice接口SOAP协议查看天气示例 -->
|
||||
|
||||
<!-- 扫描二维码/条形码示例 -->
|
||||
<activity
|
||||
android:name=".sample.soap.ProviceActivity"
|
||||
android:label="@string/SOAP"
|
||||
android:name=".sample.zxing.ZxingSacnnerActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/ZxingSacnnerActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- 调用webservice接口SOAP协议查看天气示例 -->
|
||||
<activity
|
||||
android:name=".sample.soap.ProviceActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/SOAP"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
@ -277,56 +292,60 @@
|
|||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
</activity>
|
||||
|
||||
</activity>
|
||||
|
||||
<!-- 发送手机短信验证码示例 -->
|
||||
<activity
|
||||
android:name=".sample.sms.PhoneValidateCodeActivity"
|
||||
android:label="@string/PhoneValidateCodeActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/PhoneValidateCodeActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
|
||||
<!-- 各种进度条示例 -->
|
||||
<activity
|
||||
android:name=".sample.progressbar.ProgressBarActivity"
|
||||
android:label="@string/ProgressBarActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/ProgressBarActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
|
||||
<!-- 自动获取表单数据示例 -->
|
||||
<activity
|
||||
android:name=".sample.data.AutoGainFormActivity"
|
||||
android:label="@string/AutoGainFormActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/AutoGainFormActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
</activity>
|
||||
|
||||
<!-- Activity过场动画示例 -->
|
||||
<activity
|
||||
android:name=".sample.animation.AnimationInActivity"
|
||||
android:label="@string/AnimationInActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/AnimationInActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
@ -336,75 +355,79 @@
|
|||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
</activity>
|
||||
|
||||
|
||||
<!-- 发送短信/拦截示例 -->
|
||||
<activity
|
||||
android:name=".sample.sms.SMSOperationActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/SMSOperationActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- 基本常用操作测试样例 -->
|
||||
<activity
|
||||
android:name=".sample.basic.BasicTestActivity"
|
||||
android:label="@string/BasicTestActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
|
||||
<!-- 基本常用操作测试样例 -->
|
||||
<activity
|
||||
android:name=".sample.basic.BasicTestActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/BasicTestActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- DrawerLayout侧滑菜单样例 -->
|
||||
<activity
|
||||
android:name=".sample.menu.DrawerLayoutActivity"
|
||||
android:label="@string/DrawerLayoutActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/DrawerLayoutActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
</activity>
|
||||
|
||||
<!-- 水平+垂直滚动+首行首列固定+翻页Listview样例 -->
|
||||
<activity
|
||||
android:name=".sample.fixed.HVScorllListviewActivity"
|
||||
android:label="@string/HVScorllListviewActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/HVScorllListviewActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="com.zftlive.android.SAMPLE_CODE" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- 静态注册短信广播接收器 -->
|
||||
<receiver android:name=".sample.sms.SMSBroadcastReceiver">
|
||||
<intent-filter android:priority="2147483647">
|
||||
</activity>
|
||||
<!-- 静态注册短信广播接收器 -->
|
||||
<receiver android:name=".sample.sms.SMSBroadcastReceiver" >
|
||||
<intent-filter android:priority="2147483647" >
|
||||
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!-- 动态注册短信拦截Service http://blog.csdn.net/zhujunwang/article/details/7912829 -->
|
||||
<!-- <service android:name=".sample.sms.SMSInterceptService" android:exported="false" android:permission="oem.permission.SENDMAIL" > -->
|
||||
<!-- <intent-filter > -->
|
||||
<!-- <action android:name="com.zftlive.android.sample.sms.service.SMSReceived" /> -->
|
||||
<!-- <category android:name="android.intent.category.DEFAULT" /> -->
|
||||
<!-- </intent-filter> -->
|
||||
<!-- </service> -->
|
||||
|
||||
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!-- 动态注册短信拦截Service http://blog.csdn.net/zhujunwang/article/details/7912829 -->
|
||||
<!-- <service android:name=".sample.sms.SMSInterceptService" android:exported="false" android:permission="oem.permission.SENDMAIL" > -->
|
||||
<!-- <intent-filter > -->
|
||||
<!-- <action android:name="com.zftlive.android.sample.sms.service.SMSReceived" /> -->
|
||||
<!-- <category android:name="android.intent.category.DEFAULT" /> -->
|
||||
<!-- </intent-filter> -->
|
||||
<!-- </service> -->
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
Loading…
Reference in New Issue