安卓 控件属性填不进去,如何简单解决

BCBPLC 2013-11-03 05:43:03
Eclipse可视化主窗体中,拖进一控件 textView1,
要改变字体大小,需填属性TextSize为30sp或40dp,
但发现根本填不进去。
但只好在它的XML中加上一行
android:textSize=""
即:
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="@string/hello_world"
android:textSize="30sp" />
这才发现 控件 textView1的属性textSize可以手工填入了,
有没有简单的办法解决这一问题?
...全文
200 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
狠有内涵 2014-03-21
  • 打赏
  • 举报
回复
android:textSize="30sp" />我加入这句 Unexpected text found in layout file: "android:textSize="30sp" />" 什么情况啊。
BCBPLC 2013-11-12
  • 打赏
  • 举报
回复
上贴子要有闭环,给别人带来方便,之所以这样,我许多问题都是从网上搜到 后解决的,所以,要有回报。
mizac32 2013-11-08
  • 打赏
  • 举报
回复
也遇到了这个问题,没想到真能解决哈。在Ubuntu上新安装了Eclipse的Android开发环境,选API19时所有属性都填不进去。
BCBPLC 2013-11-04
  • 打赏
  • 举报
回复
BCBPLC 2013-11-04
  • 打赏
  • 举报
回复
原因找到了,可视化窗体上,要选 API18 4.3就行了,
被我点成了 API19 4.4就不行了。
BCBPLC 2013-11-03
  • 打赏
  • 举报
回复
难道无解了?新版本出了这事,旧版可能没问题
tantahe 2013-11-03
  • 打赏
  • 举报
回复
你的还新一点,我的是v21
BCBPLC 2013-11-03
  • 打赏
  • 举报
回复
Android Developer Tools Build: v22.2.1-833290 This product includes Eclipse Platform, JDT, CDT, EMF, GEF and WTP, all of which are Copyright (c) Eclipse contributors and others. Visit http://eclipse.org/ Android Developer Tools are Copyright (c) The Android Open Source Project. Visit http://developer.android.com -------------------- 比一比ECLIPSE 版本号呢
tantahe 2013-11-03
  • 打赏
  • 举报
回复
引用 6 楼 BCBPLC 的回复:
只要是发灰色的属性,你是填不进去的,发白的属性才能填; 只有在XML里加这一属性项,就发白了,就能填了。
我这里是可以的
BCBPLC 2013-11-03
  • 打赏
  • 举报
回复
难道我的设定与你不同?还是我的版本与你不同?
BCBPLC 2013-11-03
  • 打赏
  • 举报
回复
outline选中也填不进的,只要发灰色。
BCBPLC 2013-11-03
  • 打赏
  • 举报
回复
只要是发灰色的属性,你是填不进去的,发白的属性才能填; 只有在XML里加这一属性项,就发白了,就能填了。
tantahe 2013-11-03
  • 打赏
  • 举报
回复
引用 4 楼 BCBPLC 的回复:
你提到EditText,又不顶用,仍填不进去,
右击没有 Edit TextSize,嗨

TextView是一样的,不是要在TextView上点右键,是要在outline中选中这个TextView。
看图:
BCBPLC 2013-11-03
  • 打赏
  • 举报
回复
你提到EditText,又不顶用,仍填不进去, 右击没有 Edit TextSize,嗨
BCBPLC 2013-11-03
  • 打赏
  • 举报
回复
填不进去的,老兄。 我解决了,右击控件,选Edit TextSize... 哈。这eclipse的可视化太精糙,没有 C++BUILDER和DELPHI的好用
tantahe 2013-11-03
  • 打赏
  • 举报
回复
发给你的是EditText的,TextView也是一样。
tantahe 2013-11-03
  • 打赏
  • 举报
回复
Outline窗口选中这个EditText,Properties窗口里的TextView目录下就有Text Size了,在这里填入30sp。

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧