Post Reply

[Q] Padding for ExpandableListView-Group

OP Auroratic

27th May 2014, 02:58 PM   |  #1  
Auroratic's Avatar
OP Member
Flag Austria
Thanks Meter: 0
 
45 posts
Join Date:Joined: Jun 2013
More
Hello,
I have a ExpandableListView and I'm using a custom layout for the groups:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:textAppearance="?android:attr/textAppearanceListItem" >

    <TextView
        android:id="@+id/tvGroup"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="10dp"
        android:paddingLeft="0dp"
        android:paddingRight="10dp"
        android:paddingTop="10dp"
        android:textAppearance="?android:attr/textAppearanceListItem"
        android:textIsSelectable="false" />

</LinearLayout>
The problem: The padding displays only right in Android 4.4, in older versions the padding is ignored..why?

The image I attached shows four different virtual devices running different Android versions.
Attached Thumbnails
Click image for larger version

Name:	Unbenannt.PNG
Views:	25
Size:	40.1 KB
ID:	2765706  
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Java for Android App Development by ThreadRank