Android OS Forum banner
1 - 2 of 2 Posts

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

· Premium Member
Joined
·
1,752 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
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top