Android OS Forum banner
1 - 2 of 2 Posts

·
Registered
Joined
·
29 Posts
Discussion Starter · #1 ·

·
Premium Member
Joined
·
1,768 Posts
lets try setting an id for this LinearLayout and apply the padding @ runtime
Code:
<br />
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/Widget.Layout.ComponentEntry" android:padding="@dimen/preferred_padding" /><br />
	<include layout="@layout/component_entry_summary" /><br />
</LinearLayout>
actually since you already have a reference to the view use the View class's setPadding(int, int, int, int) <-(left, top, right, bottom) method
... just an idea, when ever I run into problems with with xml I revert to using the java equivalent usually with better results
 
1 - 2 of 2 Posts
Top