1 package com.xtremelabs.robolectric.util; 2 3 import android.content.Context; 4 import android.util.AttributeSet; 5 import android.widget.LinearLayout; 6 import com.xtremelabs.robolectric.R; 7 8 public class CustomView extends LinearLayout { 9 public int attributeResourceValue; 10 CustomView(Context context, AttributeSet attrs)11 public CustomView(Context context, AttributeSet attrs) { 12 super(context, attrs); 13 inflate(context, R.layout.inner_merge, this); 14 attributeResourceValue = attrs.getAttributeResourceValue("some namespace", "message", -1); 15 } 16 } 17