如何编辑活动的属性

时间:2013-01-20 14:42:45

标签: android properties android-activity

我使用ADT Bundle。我的项目中有4个活动。 activity_main是主要活动,是在创建项目时创建的。用File创建其他活动后 - >新 - >其他。在这个向导中,我有chechbox“Lauuncher Activity”。我选择了它。在我明白此复选框显示您在设备主菜单中的活动之后。我该如何取消选择?

`

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:layout_marginLeft="16dp"
    android:layout_marginTop="14dp"
    android:text="Bu oyun adamlarda hasaplamalary gechirmani owretmek uchin duzulendir!!!"
    android:textAppearance="?android:attr/textAppearanceLarge" />

<TextView
    android:id="@+id/textView2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentRight="true"
    android:layout_below="@+id/textView1"
    android:layout_marginRight="22dp"
    android:layout_marginTop="21dp"
    android:text="Habarlashmak uchin: +99365814342" />

`

1 个答案:

答案 0 :(得分:0)

打开AndroidManifest.xml,转到XML视图,然后从启动器中不需要的活动中删除以下intent-filter

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>