如题,让EditText控件的背景透明.
解决方案 »
- WifiManager.startScanActive()没有定义?(Android Wifi Scan的间隔可以控制吗)
- android查询数据库查询不到数据,不知道为什么
- jni thread 退出异常 , native thread exited without detaching
- android 显示TextView 的指定位置 周三下班(5:30)之前解决。
- android手机客户端访问web服务器的数据交互问题,求指点!已贴代码
- 关于android4.3的应用流量监测问题
- android的Wifi Direct功能
- Android APP更新问题
- Failed to resolve: multidex Failed to resolve: runtime Failed to resolve: co
- Android 跳转“未知应用权限界面”,如何只显示当前应用的设置项
- 安卓横竖屏切换抖动
- textview控件显示位置的设定
android:text="This is TextView,you can input anything you want"
android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:padding="10dip"
android:background="#cc0000"应该把这里的颜色改成0x80000000 就ok了
>
</EditText>我还看到可以在java代码里面实现透明的功能!
android:text="This is TextView,you can input anything you want"
android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:padding="10dip"
android:background="@drawable/Translucent"这儿可以用drawable定义颜色常数! >
</TextView>
<drawable name=color_name>0xe0000000/>
在xml中
<Textview android:textcolor="@drawable/colorname"/> 其他的你自己加颜色和不透明度 (alpha) 值以十六进制表示法表示。任何一种颜色的值范围都是 0 到 255(00 到 ff)。对于 alpha,00 表示完全透明,ff 表示完全不透明。表达式顺序是“aabbggrr”,其中“aa=alpha”(00 到 ff);“bb=blue”(00 到 ff);“gg=green”(00 到 ff);“rr=red”(00 到 ff)。例如,如果您希望对某叠加层应用不透明度为 50% 的蓝色,则应指定以下值:7fff0000