社区
Android
帖子详情
这种titlebar怎么写?
zzxap
2014-09-04 09:26:15
I want to develop a title bar in android like this
1.Home Button - Left aligned
2.Application Title - At the center
3. Image Icon - Right Aligned
...全文
158
5
打赏
收藏
这种titlebar怎么写?
I want to develop a title bar in android like this 1.Home Button - Left aligned 2.Application Title - At the center 3. Image Icon - Right Aligned
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
zzxap
2014-09-05
打赏
举报
回复
已经用relativelayout 写好 多谢
fireyou
2014-09-04
打赏
举报
回复
实在不会在eclipse里图形界面搞,可以直接拖动控件的位置。
junyuyi
2014-09-04
打赏
举报
回复
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="HOME" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Application Title" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher"
android:layout_alignParentRight="true"/>
</RelativeLayout>
junyuyi
2014-09-04
打赏
举报
回复
随便用个relativelayout不就能搞定了吗
韩曙亮
2014-09-04
打赏
举报
回复
用 frameLayout
Android 组合控件实现布局的复用的方法
看到很多项目会有实现自己的标题栏的做法,通常的界面是左边按钮或文字,加上中间的标题和右边的...首先,我们需要
写
出布局文件layout_custom_
title
bar.xml。 <?xml version=1.0 encoding=utf-8?> <merge
掏钱学Ext(完整版) 附全部源码
1.5. 为什么自己按照例子
写
的代码,显示出来总找不到图片 1.6. 我们还需要什么? 2. 震撼吧!让你知道ext表格控件的厉害。 2.1. 功能丰富,无人能出其右 2.2. 让我们搞一个grid出来耍耍吧。 2.3. 上边那个是1....
EXT教程EXT用大量的实例演示Ext实例
6.3.2. 再试试
title
bar 6.3.3. 还不够,还不够,让四周的区域可以缩起来 6.3.4. 给这些区域都加上个关闭按钮 6.3.5. 用NestedLayoutPanel在五块中再进行分割,实现更复杂的布局 6.4. 2.0的ViewPort是完全不同的...
EXT2.0中文教程
6.3.2. 再试试
title
bar 6.3.3. 还不够,还不够,让四周的区域可以缩起来 6.3.4. 给这些区域都加上个关闭按钮 6.3.5. 用NestedLayoutPanel在五块中再进行分割,实现更复杂的布局 6.4. 2.0的ViewPort是完全不同的实现 ...
vfp6.0系统免费下载
另外还加入了一些新的属性,如表单的 ScrollBars 和
Title
Bar 属性,以便包容到 Internet Explorer 中时可以与其用户界面标准保持一致。 应该注意,在 Internet Explorer 所运行的 Visual FoxPro ActiveDoc 只是一...
Android
80,359
社区成员
91,290
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章