android中的自定义控件

 

  详情看附近代码

 

<?xml version="1.0" encoding="utf-8"?>
<com.ant.component.SeasonalWallpaper
	xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="408px" android:layout_height="204px"
	android:orientation="horizontal" android:paddingTop="64px">

	<TextView android:id="@+id/home_wallpaper_month_front"
		android:layout_width="wrap_content" android:layout_height="match_parent"
		android:gravity="center" android:paddingLeft="5px"
		android:paddingRight="5px" android:textSize="130px" android:textColor="#ffffff" />

	<TextView android:id="@+id/home_wallpaper_month_after"
		android:layout_width="wrap_content" android:layout_height="match_parent"
		android:gravity="center" android:textSize="130px" android:textColor="#ffffff"
		android:paddingLeft="5px" android:paddingRight="5px" />



	<TextView android:id="@+id/home_wallpaper_label_month"
		android:layout_width="wrap_content" android:layout_height="match_parent"
		android:gravity="center" android:textSize="35px" android:textColor="#ffffff"
		android:text="@string/home_label_month" android:paddingLeft="5px"
		android:paddingRight="5px" />




	<TextView android:id="@+id/home_wallpaper_day_front"
		android:layout_width="wrap_content" android:layout_height="match_parent"
		android:gravity="center" android:textSize="130px" android:textColor="#ffffff"
		android:paddingLeft="5px" android:paddingRight="5px" />


	<TextView android:id="@+id/home_wallpaper_day_after"
		android:layout_width="wrap_content" android:layout_height="match_parent"
		android:gravity="center" android:textSize="130px" android:textColor="#ffffff"
		android:paddingLeft="5px" android:paddingRight="5px" />



	<TextView android:id="@+id/home_wallpaper_label_day"
		android:layout_width="wrap_content" android:layout_height="match_parent"
		android:gravity="center" android:textSize="35px" android:textColor="#ffffff"
		android:text="@string/home_label_day" android:paddingLeft="5px"
		android:paddingRight="5px" />
</com.ant.component.SeasonalWallpaper>
 

你可能感兴趣的:(android)