我是 Android 新手,我无法正确执行此操作。
我有一个布局,它有一个 setOnTouchListener,
 arg0.setBackgroundColor(Color.parseColor("#4096EE"));
 Intent i = new Intent(getApplicationContext(), AddWebsiteActivity.class);
 NewsRecoveryActivity.this.startActivity(i);
但是我想在我开始其他活动后恢复我的布局的背景,因为如果我回去,就像我正在触摸我的布局......我该怎么做?
先感谢您
编辑:选择器结果:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/add_website_layout"
    android:padding="8dp"
    android:background="@drawable/selector_add_website"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
 >
当我删除背景线时,它正在工作。