Bubble(16)
来源:互联网 发布:淘宝淘气值怎么看 编辑:程序博客网 时间:2024/05/01 12:03
设置Title的种种
在自定义标题栏时遇到了问题,我需要在标题栏加两个button,并且字要居中。
解决方法是将网上流行的两种方法结合即可。
<?xml version="1.0" encoding="utf-8"?><resources> <style name="ThemeForCustomTitle" parent="android:Theme"> <item name="android:windowTitleStyle">@null</item> <item name="android:windowTitleBackgroundStyle">@style/StatusBarBackground</item> <item name="android:windowContentOverlay">@null</item> </style> <style name="StatusBarBackground"> <item name="android:background">@drawable/progress</item> </style></resources>
然后在manifest里面设置theme="ThemeForCustomTitle"。
Activity里面
super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.main); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar); TextView titleText = (TextView) findViewById(R.id.titleText); titleText.setText(R.string.listenPA);
- Bubble(16)
- Bubble(1)
- Bubble(8)
- Bubble(12)
- Bubble
- bubble
- 冒泡排序(Bubble Sort)
- 起泡排序(bubble sort)
- 冒泡排序(bubble sort)
- 冒泡排序(Bubble Sort)
- 冒泡排序 (Bubble sort)
- 冒泡排序(bubble sort)
- Bubble Sort(冒泡排序)
- 一、冒泡(Bubble)排序
- 冒泡排序(Bubble sort)
- 冒泡排序(Bubble Sort)
- 冒泡排序(Bubble Sort)
- 冒泡排序(Bubble Sort)
- VS 生成事件文件拷贝
- 中文标点UTF-8编码
- 企业证书打包
- HDU 2133 What day is it
- Bubble(15)
- Bubble(16)
- NSNotification的用法
- 1889_Ones(同余)
- 腾讯2012实习生笔试题2+答案解析
- Tortoise SVN安装
- 学科前沿技术(让用户来决定Windows任务管理器的CPU占用率)
- MFC消息映射机制
- 手贱-写链表玩玩
- oracle 两字段重复