Android 自定义标题栏运用
来源:互联网 发布:制作手机电子书软件 编辑:程序博客网 时间:2024/05/21 09:43
-------------.java
super.onCreate(savedInstanceState);
requestWindowFeature
(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt
(Window.FEATURE_CUSTOM_TITLE,
R.layout.main_titlebar);
------------.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/main_title"
android:layout_width="160.0dip"
android:layout_height="48.0dip"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:paddingTop="10.0dip"
android:text="@string/app_name"
android:textColor="@color/white"
android:textSize="20.0dip" />
</LinearLayout>
------------------Manifest.xml
<activity
android:name=".Start"
android:theme="@style/titlebarstyle" >
</activity>
- Android 自定义标题栏运用
- android自定义标题栏progressBar
- Android自定义标题栏
- 自定义android标题栏
- android实现自定义标题栏
- Android自定义标题栏
- Android 自定义标题栏
- Android 自定义标题栏
- Android自定义标题栏
- Android自定义标题栏
- android之自定义标题栏
- Android自定义标题栏
- Android 自定义标题栏
- android ListView+自定义标题栏
- Android 自定义标题栏
- Android:自定义标题栏
- Android Actionbar自定义标题栏
- 自定义Android标题栏TitleBar
- CString::GetBuffer()都有这么大学问啊
- JS页面刷新
- 数据在路上,云端加密的另一面
- 鼠标移动太快,mouseout事件不触发解决方案
- Linux终端图形库 Curses简介和实例分析
- Android 自定义标题栏运用
- 感动ing:两岁8个月的儿子给老爸倒茶喝
- Linux查看进程
- change organization
- 保护VBA源码
- 播放器插件实现系列 —— 序言
- struts2 iterator标签 status属性
- 颜色选择器-bigcolorpicker
- 视频压缩ffmpeg与mencoder使用