Tag: 透明的

Android透明TextView?

简单地说, 如何使TextView透明? (不完全透明) 我搜查了文档和StackNetwork,找不到它? 我猜这是这样的。 谢谢。 UPDATE 这是XML代码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_horizontal" android:orientation="vertical" android:background="@drawable/background"> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/header" android:src="@drawable/logo1" /> <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:paddingRight="5dp" android:scrollbarStyle="outsideOverlay" android:cacheColorHint="#00000000" /> <TextView android:id="@+id/footer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="25sp" android:singleLine="true" android:background="#07000000" android:textColor="#FFFFFF" android:text="rrrrr" /> </LinearLayout> 我希望页脚 TextView是透明的, so that the ListView items can be seen while scrolling

与three.js的透明背景

代码的工作,但我有一个问题,设置与three.jscanvas的透明背景。 我用: Background.renderer.setClearColor(0xffffff, 0); 但是背景变黑了。 我如何改变它是透明的? 代码: var camera, scene, renderer; var mouseX = 0, mouseY = 0; var p; var windowHalfX = site.Width / 2; var windowHalfY = site.Height / 2; Background.camera = new THREE.PerspectiveCamera( 35, site.Width / site.Height, 1, 2000 ); Background.camera.position.z = 300; //camera.position.y = 200; // scene Background.scene = new THREE.Scene(); […]