Overlap the layout in the android ExpandableListView -
in following template , @ above new vhd text, overlap row , want fix problem .i tried change height of main file no used.i increase text size 14 15 px in template ,size increased in main template programmatically, problem occur. attached code question see commented section in xml file.please suggest me solution if any.i new android .not familiar android.i attached image below.thank you.
//main file
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" //changed height not work android:background="#ffffff"> <linearlayout android:layout_width="match_parent" android:layout_height="35dp" android:orientation="vertical" android:background="@color/green"> <textview android:id="@+id/queue_header" android:layout_width="match_parent" android:layout_height="match_parent" android:textcolor="@color/white" android:text="inbox" android:textstyle="bold" android:gravity="center_vertical" android:layout_marginleft="10dp" /> </linearlayout> <expandablelistview android:id="@+id/que_list" android:layout_width="fill_parent" android:layout_height="wrap_content" //changed fill_parent not worked android:groupindicator="@drawable/settings_selector"/> </linearlayout>
//second file
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"> //changed fill_parent not worked <textview android:id="@+id/groupname" android:paddingleft="50px" android:paddingtop="10px"//changed 15px not worked android:paddingbottom="10px"//changed 15px not worked android:textsize="15px" android:textcolor="#0b730b" android:layout_width="250px" android:layout_height="wrap_content"/>//changed fill_parent not worked </linearlayout>
//third file
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">//changed fill_parent not worked <imageview android:id="@+id/imageview1" android:paddingleft="40px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:src="@drawable/green" /> <textview android:id="@+id/childname" android:paddingleft="20px" android:paddingtop="10px" android:paddingbottom="10px" android:textsize="15px" android:textcolor="#0b730b" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <textview android:id="@+id/child_id" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <textview android:id="@+id/dept_id" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <textview android:id="@+id/rgb" android:textsize="16px" android:layout_marginleft="10px" android:textcolor="#0b730b" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </linearlayout>
Comments
Post a Comment