My app has a custom extension and I want the separator height header (5 DP) and children (1 dp ) Is different for How could i This is my code:
bus_info.xml
& lt; linearLayout xmlns: android = "Http://schemaskandroidkcom/apk/res/android" Android: Layout_width = "match_parent" Android: Layout_height = "Match_parent" android: orientation = "vertical" & gt; & Lt; Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: layout_marginTop = "3DP" Android: Divider = "@ drawable / expandable_borde_padre" Android: childDivider = "@ Drawable:" ExpandableListView Android: ID = "@ + id / expandableBus" Android: layout_width = "match_parent" / Expandable_Borde_Ahzo "Android: Group Indicator =" @ Drawable / Trendy "Android: Scrollbar =" None "/> & Lt; / LinearLayout & gt;
expandable.xml
& lt; Selector xmlns: android = "http://schemas.android.com/apk/res/android" & gt; & Lt; Items Android: Drabbles = "@Drawable / Expandable_Advanced" Android: state_empty = "true" /> & Lt; Item Android: Dragon = "@ Drawable / Spreadable_RUBBA" Android: state_expanded = "true" /> & Lt; Items Android: Dragon = "@ Drable / Fasnable_bajo" /> & Lt; / Selector & gt;
expandable_borde_padre.xml
and & Lt; Size Android: height = "1dp" /> & Lt; / Size & gt;
expandable_borde_hijo.xml
& lt; Size xmlns: android = "http://schemas.android.com/apk/res/android" Android: Size = "Rectangle" & gt; & Lt; Solid Android: Color = "@color / Blanco" /> & Lt; Size Android: height = "1dp" /> & Lt; / Size & gt;
If I change the baby turns into expandable_borde_padre the 5dp is
expandable_hijo.java
& lt; LinearLayout xmlns: android = "Http://schemas.android.com/apk/res/android" android: layout_width = "match_parent" android: layout_height = "55dip" android: orientation = "vertical" android: background = "# 000000 "& Gt; & Lt; TextView android: id = "@ + id / lblListItem" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: textSize = "14sp" Android: paddingTop = "5dp" Android: paddingBottom = "5dp" Android: textcolor = "#FFFFFF" /> & Lt; / LinearLayout & gt;
expandable_padre.java
Set to distort both divider and child. Use Child Scene with Custom Headers and Custom Dividers.
For example:
For header:
For child:
& lt; TextView & gt; & Lt; / TextView & gt; & Lt; View Android: Height: "1 DP" & gt; & Lt; / View & gt;
Comments
Post a Comment