当前位置: 编程技术>移动开发
本页文章导读:
▪动态改变titleBar题目颜色 动态改变titleBar标题颜色
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final boolean customTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContent.........
▪ 设立 UITableViewCell 与导航条间距 设置 UITableViewCell 与导航条间距
UITableView 的 cell 默认出现在 uitableview 的第一行,如果你想自定义 UITableViewCell 与导航条间距的话,可以使用下面这行代码
tableview.tableHeaderView = [[[UIView allo.........
▪ TableView 上拉刷新 TableView 下拉刷新
参见:https://github.com/enormego/EGOTableViewPullRefresh
......
[1]动态改变titleBar题目颜色
来源: 互联网 发布时间: 2014-02-18
动态改变titleBar标题颜色
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final boolean customTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.main); if ( customTitleSupported ) { getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle); } final TextView myTitleText = (TextView) findViewById(R.id.myTitle); if ( myTitleText != null ) { myTitleText.setText("========= NEW TITLE =========="); myTitleText.setBackgroundColor(Color.GREEN); } }
[2] 设立 UITableViewCell 与导航条间距
来源: 互联网 发布时间: 2014-02-18
设置 UITableViewCell 与导航条间距
UITableView 的 cell 默认出现在 uitableview 的第一行,如果你想自定义 UITableViewCell 与导航条间距的话,可以使用下面这行代码
tableview.tableHeaderView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)]autorelease];
[3] TableView 上拉刷新
来源: 互联网 发布时间: 2014-02-18
TableView 下拉刷新
参见:https://github.com/enormego/EGOTableViewPullRefresh
最新技术文章: