时钟控件布局
16lz
2021-01-23
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@drawable/a"
android:orientation="vertical"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
android:textColor="#00FF00"
android:textSize="20sp"/>
<!-- 时钟控件 -->
<AnalogClock
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<DigitalClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#00ff00"
android:textSize="30sp" />
</LinearLayout>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@drawable/a"
android:orientation="vertical"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
android:textColor="#00FF00"
android:textSize="20sp"/>
<!-- 时钟控件 -->
<AnalogClock
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<DigitalClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#00ff00"
android:textSize="30sp" />
</LinearLayout>
更多相关文章
- Android 自定义组合控件
- 一个java android 时钟 非常精致!android 小创意
- 简单控件的UI界面设计
- 第十二节(android常用控件三)
- android控件相对布局
- Android CheckBox控件使用OnClickListener和OnCheckedChangeList
- Android 基本控件
- Android下拉刷新控件
- android之AutoCompleteTextView控件用法