以下文件看不懂:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<five.itcast.cn.Chessboard android:id="@+id/chessboard"
android:layout_width="match_parent"
android:layout_height="match_parent"
tileSize="24"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/text"
android:text="@string/hello"
android:visibility="visible"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textColor="#ff0000"
android:textSize="24sp"/>
</RelativeLayout></FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<five.itcast.cn.Chessboard android:id="@+id/chessboard"
android:layout_width="match_parent"
android:layout_height="match_parent"
tileSize="24"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/text"
android:text="@string/hello"
android:visibility="visible"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textColor="#ff0000"
android:textSize="24sp"/>
</RelativeLayout></FrameLayout>
解决方案 »
- 注册一个收件箱监听器发生Exported receiver does not require permission 警告
- 求助官网下载的Android SDK安装后用SDK Manager安装没反应。。。求助。。求助
- 如何获取list里每个apk的大小
- android JNI 用C读写文件操作
- 在application的theme为Dialog下,admob广告不能显示
- android传参问题
- 求助:使用NDK编程,fread读取文件,返回值总是0?
- android下popwindow +Spinner问题
- CSipSimple注册问题Unable to create/send REGISTER
- Android VideoView.getCurrentPosition()获取的值不为0。为什么下次还是从0开始播放呢?
- 装了JDK-SDK-Eclipse后提示
- 请问,Android2.2和2.3的模拟器中使用的键盘驱动是哪个?谢谢
//framelayout是一个层式布局,不做控制的话,后面的图层都会覆盖前面的图层
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"> //背景色
//自定义的一个控件
<five.itcast.cn.Chessboard android:id="@+id/chessboard"
android:layout_width="match_parent"
android:layout_height="match_parent"
tileSize="24"/>
<RelativeLayout //相对布局
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/text" //textview id
android:text="@string/hello" //文本
android:visibility="visible" // textview可见
android:layout_width="wrap_content"
android:layout_height="wrap_content" //宽高
android:layout_centerHorizontal="true" //水平垂直居中
android:layout_centerVertical="true"
android:textColor="#ff0000" //字体颜色
android:textSize="24sp"/> //字体大小
</RelativeLayout></FrameLayout>没什么捷径,只有多写,多想