80,351
社区成员
发帖
与我相关
我的任务
分享
<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>
用模拟器运行了下,第一次运行失败,后来在模拟器里通过桌面图标重新运行了