How to optimize 'class name' in Android XML Layout ?

Posted by Mac on Stack Overflow See other posts from Stack Overflow or by Mac
Published on 2010-12-28T08:43:19Z Indexed on 2010/12/28 8:53 UTC
Read the original article Hit count: 192

Filed under:
|

Hello,

I am using some custom components in my project for that I am using following code.

 <view
  class="com.android.mypackage.myclass" 
  id="@+id/button"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="@android:drawable/button"
  android:padding="10dip"
  />

Its working perfectly fine, I am using this code near about 35 times in my application. so while creating new clone application from same project, I need to update package name in 35 places. Is there any way to reduce these efforts? I had tried with "class="@string/class_name" but its not working.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-layout