Android(安卓)设置背景透明
16lz
2021-12-04
layout文件里的写法:
java文件的写法(0x80000000是灰色,值可以自己选):
<TextView android:id="@+id/disable_div" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:visibility="gone" />
java文件的写法(0x80000000是灰色,值可以自己选):
disable_div = (TextView) findViewById(R.id.disable_div);disable_div.setBackgroundColor(0x80000000);
更多相关文章
- Android(安卓)Studio:一个空格导致的错误
- radio button 旁边放图片以及强制程序本地化以及string含有参数
- android listview custom style 自定义样式
- 【转】Android(安卓)xml资源文件中@、@android:type、@*、?、@+含
- Android(安卓)xml资源文件中@、@android:type、@*、?、@+含义和区
- 在程序中设置android:gravity 和 android:layout_Gravity属性
- Android(安卓)xml资源文件中@、@android:type、@*、?、@+含义和区
- 通过在xml布局文件中设置android:onClick=""来实现组件单击事件
- android 入门xml布局文件