LauncherActivity

可以启动别的程序的窗口,当然了,自己直接写个普通的activity也可以实现

 安卓学习-activity-LauncherActivity

item.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:paddingTop="20dp"
    android:paddingBottom="20dp"
     >

    <ImageView
        android:id="@+id/imageView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:paddingRight="20dp"
        android:src="@drawable/ic_launcher" />

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_toRightOf="@+id/imageView1"
        android:text="Large Text"
        android:textAppearance="?android:attr/textAppearanceLarge" />

    <TextView
        android:id="@+id/textView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/textView1"
        android:layout_below="@+id/textView1"
        android:text="Small Text"
        android:textAppearance="?android:attr/textAppearanceSmall" />

</RelativeLayout>
View Code

相关文章:

  • 2021-08-12
  • 2022-01-19
  • 2022-01-02
  • 2021-11-03
  • 2021-11-14
  • 2021-10-29
  • 2022-01-18
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-08-13
  • 2021-10-24
  • 2021-12-13
  • 2022-02-15
  • 2021-12-01
  • 2021-05-20
相关资源
相似解决方案