背景我已经改成白色的,怎么还是黑的
解决方案 »
- 关于surfaceView的相关问题
- windows下如何下载android源代码
- 关于在对话框里弹出对话框的问题
- android的BroadcastReceiver启动Activity的问题
- 在ListView中加载BaseAdapter的getView()方法,加载了十个EditText,当第一个EditText中输入数据后第八个Edittex也有
- 超级菜,想咨询一下 学android 学的是什么?
- android社交app用了哪些技术?
- GridView控件的行间距
- CoordinatorLayout无法预览的问题
- eclipse 在主项目中引入library项目,library项目的全局类应该怎么处理,才能在主项目中使用?
- 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不就完了嘛