Android studio 右侧的属性窗口中显示的属性不够全面是怎么回事

谁学逆向工程 2016-09-01 05:47:18
下面的界面是纯手工输入(照书打的)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/root"
android:orientation="vertical">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="我爱Java"
android:textSize="20pt"
android:drawableEnd="@drawable/w"
android:drawableRight="@drawable/w" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="我爱Java我爱Java我爱Java我爱Java我爱Java我爱Java"
android:ellipsize="middle"
android:textAllCaps="true"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="邮件是 kongyeeku@163.com 电话是02088888888"
android:autoLink="phone|email" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="测试文字"
android:id="@+id/textView2"
android:shadowColor="#00f"
android:shadowDx="10.0"
android:shadowDy="8.0"
android:shadowRadius="3.0"
android:textColor="#f00"
android:textSize="18pt" />
<TextView
android:id="@+id/passwd"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="string/hello"
android:password="true"/>

<CheckedTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="课勾选的文本"
android:checkMark="@drawable/w"/>


</LinearLayout>


第四个 TextView 中的 shadowDx 和 shadowDy 在属性窗口中找不到,无法设置,只能手工输入。然后输入以后属性窗口就出现了这两个属性,而且还是蓝色斜体显示的。难不成Android studio 不让用这两个属性?



下面是手机真机运行结果
...全文
878 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
一不小心_ 2016-09-01
  • 打赏
  • 举报
回复
shadowDX、shadowDy代表阴影的横坐标偏移和纵坐标偏移
默认是这样:
点击右上角显示全部:
然后就会全部显示了,as只是默认没全显示而已,并不是不能使用

80,490

社区成员

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

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