There is a theme attribute exactly for this:

http://developer.android.com/reference/android/R.attr.html#expandableListPreferredItemPaddingLeft

so one could do:

        
android:layout_marginLeft="?android:attr/expandableListPreferredItemPaddingLeft"

or

        
android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"

...

-- K

2013/1/22 TreKing <[email protected]>:
> On Tue, Jan 22, 2013 at 9:26 AM, saex <[email protected]> wrote:
>>
>> This is not the solution,
>
>
> It might the be *the* solution, but it is *a* solution. I know. I've used
> it. And it works.
>
>>
>> i tryed it, but the padding is insufficient on some large screen phones.
>> And i if put a lot of padding the text appears a lot to the right on smal
>> screen resolution phones.
>
>
> Then I would guess you are using pixels instead of DP units, which accounts
> for screen density. Do it correctly and it should work.
>
>
> On Tue, Jan 22, 2013 at 9:46 AM, Nobu Games <[email protected]>
> wrote:
>>
>> Alternatively you could call setGroupIndicator(null) and provide your own
>> custom group indiciator icon integrated in your group item view layout.
>
>
> You still have to account for the indicator icon and text overlapping, don't
> you?
>
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to