home / blog

Android dev: custom view classes

Instantiating custom views. There is a no class attribute etc. if you’re trying to find one in the XML, instead the fully-qualified class name is used as the tag.

<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical">

  <com.adamish.android.dmxapp.DmxView2d
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    android:id="@+id/laser_pos_panel" />

</LinearLayout>
This entry was posted in geek and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.