背景我已经改成白色的,怎么还是黑的
解决方案 »
- SecurityException:ConnextivityService,permission.ACCESS_NETWORK_STATE
- android中ListView能不能实现抬起事件,只有点击无抬起
- android 透明图片叠加显示
- android有没有和symbian的PC Connectivity SDK类似的东西?
- 请问大家android开发分为哪些类型呢?
- 新浪微博api里要用到curl 有人懂吗
- 求助:如何在多个底部tab上加载webview?
- 求一个安卓网络开发的例子
- 如何同步更新图片的标题名称?
- Android 深入开发的路怎么走?求大神推荐最新开发技术
- LinearLayout 能否让其中的少量成员靠中显示吗?
- Android Listview Listactivity
xml发上来看看。
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/TableLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#0099cc"
tools:context=".FullscreenActivity" > <!--
The primary full-screen view. This can be replaced with whatever view
is needed to present your content, e.g. VideoView, SurfaceView,
TextureView, etc.
--> <EditText
android:id="@+id/editText4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:ems="10"
android:hint="@string/app_name"
android:text="@string/ch1" /> <EditText
android:id="@+id/editText3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:ems="10"
android:hint="@string/app_name"
android:text="@string/ch2" /> <EditText
android:id="@+id/editText2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:ems="10"
android:hint="@string/app_name"
android:text="@string/ch3" /> <EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:ems="10"
android:hint="@string/app_name"
android:text="@string/ch4"
android:textAlignment="textStart" /> <ImageButton
android:id="@+id/imageButton1"
android:layout_height="48dp"
android:contentDescription="@string/app_name"
android:scaleType="fitStart"
android:src="@android:drawable/btn_star" /> <com.example.fstest.ImageTextButton
android:id="@+id/imageTextButton1"
android:layout_height="48dp"
android:background="#00000000"
android:contentDescription="@string/app_name"
android:scaleType="fitStart"
android:src="@android:drawable/btn_star"
android:text="@string/itbutton"
android:textColor="#cc0000" > </com.example.fstest.ImageTextButton> <LinearLayout
android:layout_width="wrap_content"
android:layout_height="48dp" > <LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent" > <ImageView
android:id="@+id/imageView1"
android:layout_width="50dp"
android:layout_height="match_parent"
android:contentDescription="@string/name_test"
android:scaleType="fitXY"
android:src="@android:drawable/ic_menu_report_image" /> </LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/clor_white"
android:orientation="vertical" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="24dp"
android:background="@color/clor_white" > <TextureView
android:id="@+id/textureView_Name"
android:layout_width="128dp"
android:layout_height="wrap_content"
android:background="@color/clor_white"
android:text="@string/name_test"
android:textAlignment="textStart"
android:textStyle="bold" /> <TextureView
android:id="@+id/textureView_Date"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="0dp"
android:layout_weight="0.72"
android:background="@color/clor_white"
android:text="@string/time_test" /> </LinearLayout> <TextureView
android:id="@+id/textureView_Message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/clor_white"
android:text="@string/message_test" /> </LinearLayout> </LinearLayout> <TextView
android:id="@+id/fullscreen_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:keepScreenOn="true"
android:text="@string/dummy_content"
android:textColor="#33b5e5"
android:textSize="50sp"
android:textStyle="bold" /> <!--
This FrameLayout insets its children based on system windows using
android:fitsSystemWindows.
--></TableLayout>用模拟器运行了下,第一次运行失败,后来在模拟器里通过桌面图标重新运行了
TextureView我在左边的控件箱里只找到了TextureView,没找到TextView
Canvas canvas = lockCanvas();
想要啥颜色自己canvas.drawColor不就完了嘛