Thursday, 9 May 2013

Android: Touch Delegates to increase touch area


http://www.thomas-manthey.net/2012/03/04/android-basics-using-touchdelegates/



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/parent"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="center_horizontal|center_vertical"
    android:orientation="vertical" >

    <Button
        android:id="@+id/cmdClickMe"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/clickme"
        android:onClick = "cmdClickMe_OnClick" />

</LinearLayout>

No comments:

Post a Comment