社区
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
...全文
176
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
作业
写回复
配置赞助广告
用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
鸿蒙HarmonyOS 开发通过 @BuilderParam装饰器:引用@Builder函数实现自定义标题栏
通过
这种
方式,开发者可以在代码中以更加灵活的方式组装和配置标题栏组件。 以下是一个简单的示例,展示如何使用@BuilderParam和@Builder来实现自定义标题栏: ```typescript // 定义标题栏构建器类 class ...
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....
EXT2.0中文教程
6.3.2. 再试试
title
bar 6.3.3. 还不够,还不够,让四周的区域可以缩起来 6.3.4. 给这些区域都加上个关闭按钮 6.3.5. 用NestedLayoutPanel在五块中再进行分割,实现更复杂的布局 6.4. 2.0的ViewPort是完全不同的实现 ...
JavaScript
写
的一个DIV 弹出网页对话框
表格的首行(`tr`)包含一个单元格(`td`,即`
title
Bar`),用于显示对话框标题,并且可以被拖动以调整位置。对话框的标题区域还设置了鼠标指针样式为“move”,表明它可以被移动。 对话框的移动功能是通过监听鼠标...
Android
80,471
社区成员
91,385
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章