第一种方法:在drawable文件夹下新建一个文件设置背景样式 代码: 在drawable文件夹下面新建text_view_border.xml <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android ...
第一种方法:在drawable文件夹下新建一个文件设置背景样式 代码: 在drawable文件夹下面新建text view border.xml java view plain copy lt xmlversion . encoding UTF gt lt shapexmlns:android http: schemas.android.com apk res android gt lt sol ...
2014-08-06 16:11 0 3389 推荐指数:
第一种方法:在drawable文件夹下新建一个文件设置背景样式 代码: 在drawable文件夹下面新建text_view_border.xml <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android ...
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android ...
textview1.setTextColor(Color.argb(255, 0, 255, 0)); //文字透明度 控件设为半透明: 最关键部分,设置字体透明度 argb(Alpha, R, G, B) ...
要引头: 代码如下: ...
圆角的Veiw XML <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/gray_white" /> 背景 ...
Adndroid 2.x的设置 在Android 2.x下,设置webview背景为透明的方法: wvContent.setBackgroundColor(0); Adndroid 4.0 由于硬件加速导致以上的设置无效,关闭webview的硬件加速: android ...
做dialog的全透明无边框背景,网上找了n久,都有问题,其实很简单,就两句搞定。 其他的都可以不用设置,有些属性会继承下来,唯一一个没被继承的是 <item name=" android:windowIsTranslucent ">true< ...