相对布局

<?xml version="1.0" encoding="utf-8"?><RelativeLayout  xmlns:android="http://schemas.android.com/apk/res/android"  android:layout_width="fill_parent"  android:layout_height="fill_parent">    <AnalogClock   android:id="@+id/aclock"  android:layout_width="wrap_content"    android:layout_height="wrap_content"  android:layout_centerInParent="true"  />    <DigitalClock  android:id="@+id/dclock"  android:layout_width="wrap_content"    android:layout_height="wrap_content"  android:layout_below="@id/aclock"  android:layout_alignLeft="@id/aclock"  android:layout_marginLeft="40px"  />    <TextView  android:layout_width="wrap_content"    android:layout_height="wrap_content"  android:text="当前时间"  android:layout_toLeftOf="@id/dclock"  android:layout_alignTop="@id/aclock"  />    </RelativeLayout>

更多相关文章

  1. Android布局属性全面剖析
  2. android 布局边框
  3. android 布局简括
  4. android 表单布局 左右布局
  5. Android常用布局之LinearLayout(线性布局)仿酷狗登录界面
  6. 线性布局控件间的布局设置
  7. android的布局属性(转)
  8. Android中的相对布局
  9. Android的布局方法

随机推荐

  1. Android中的okHttp
  2. Android(安卓)Lottie动画实战踩坑
  3. 在Visual Studio 2010/2012/2013/2015上
  4. Android Studio教程从入门到精通
  5. Android 8.0 Activity启动崩溃异常:"Only
  6. ADK的安装
  7. Android下uptime获取系统启动和运行时间
  8. Android 代码风格指南
  9. 必须知道的Android屏幕自适应解决方案
  10. Android篮球计分器App