Set style for custom compound component
<p>After a long time of searching how to create custom compound component in android, I got the following in code:</p>

<pre><code>public class MyCustomView extends RelativeLayout {
    ...
    LayoutInflater inflater = (LayoutInflater) 
        context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    inflater.inflate(R.layout.my_custom_view, this, true);
}
</code></pre>

<p>To avoid double RelativeLayout, I have to use merge in my_custom_view.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;merge xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
    ...
&lt;/merge&gt;
</code></pre>

<p>But I cannot specify style in the merge tag, how can I set style for MyCustomView using styles defined in styles.xml? This requirement seems quite common, but I cannot figure out an answer even after spending a long time over the web. Hope some experienced android developer could help me out. Thx~</p>
