Manish Tewatia

Manish Tewatia

  • 20
  • 48.2k
  • 3.3m

Absolute Button in android application

Jul 5 2011 12:49 AM
Hello every-body, I want to know how to place a button on LinearLayout in android application. I am trying this code:

In this code I define the Layout_x and Layout_y, but it does't work.
<Button
 android:id="@+id/Button1"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:layout_x="9px"
 android:layout_y="24px"
 android:text="Click to Count"
/>

Thank You in Advance..

Answers (1)