1
我製作了一個RelativeLayout可點擊的,但我希望整個佈局在用戶觸摸時變成橙色。我怎樣才能做到這一點?如何使用橙色製作相對佈局渲染ontouch?
我製作了一個RelativeLayout可點擊的,但我希望整個佈局在用戶觸摸時變成橙色。我怎樣才能做到這一點?如何使用橙色製作相對佈局渲染ontouch?
您可以使用方法here。
<LinearLayout android:id="@+id/LinearLayout02"
android:layout_height="50px"
android:layout_width="fill_parent"
// Layout Click enable
android:clickable="true"
// Setting Highlight Option in background property
android:background="@android:drawable/list_selector_background" />
</LinearLayout>