<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/shandong"
tools:context=".MainActivity">
<TextClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:format12Hour="MM月dd日 hh:mm:ss"
android:format24Hour="MM月dd日 hh:mm:ss"
android:layout_marginTop="-690dp"
android:textSize="30dp"
android:textColor="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:format12Hour="MM月dd日 00:08:20"
android:format24Hour="MM月dd日 00:08:20"
android:layout_marginTop="230dp"
android:layout_marginRight="-150dp"
android:textSize="16dp"
android:textColor="#FF018001"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
山东健康骚骚骚
最新推荐文章于 2025-11-26 15:59:01 发布
本文展示了一个具体的Android应用XML布局文件实例,详细说明了如何使用ConstraintLayout进行界面设计,包括背景设置、TextClock组件的使用及其约束布局属性。
1万+

被折叠的 条评论
为什么被折叠?



