自定义标题栏

requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.custom_title);



custom_title.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/screen"    android:layout_width="match_parent" android:layout_height="match_parent"    android:orientation="vertical">    <TextView android:id="@+id/left_text"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_alignParentLeft="true"        android:text="@string/custom_title_left" />    <TextView android:id="@+id/right_text"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_alignParentRight="true"        android:text="@string/custom_title_right" /></RelativeLayout>



更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 转:基于 Android NDK 的学习之旅----- C调
  2. 在service和BroadCastReceiver中 启动act
  3. Mac下Android(安卓)Studio中获取SHA1和MD
  4. android shape 的使用。
  5. Android修改icon和roundIcon后,显示的图标
  6. 【摘录】Android Building System 分析
  7. Android中使用SQlite进行数据操作
  8. 四极管:Android(安卓)rameworks/base/libs
  9. 开发android,我们需要哪些技能基础
  10. Android 专栏整理