Improve listview item layout
This commit is contained in:
		
							parent
							
								
									17d6916e95
								
							
						
					
					
						commit
						773b78a363
					
				| @ -1,28 +1,39 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
| 	android:id="@+id/vw1" android:layout_width="fill_parent" | 		android:layout_width="fill_parent" | ||||||
| 	android:layout_height="wrap_content" android:orientation="horizontal"> | 		android:layout_height="wrap_content" | ||||||
|  | 		android:orientation="vertical" | ||||||
|  | 		android:paddingTop="5dp" | ||||||
|  | 		android:paddingBottom="5dp" | ||||||
|  | 		android:paddingLeft="10dp" | ||||||
|  | 		android:paddingRight="10dp"> | ||||||
| 
 | 
 | ||||||
| 	<RelativeLayout android:layout_width="fill_parent" |   <TextView android:id="@+id/buildtype" | ||||||
| 		android:layout_height="wrap_content" android:orientation="vertical"> | 	    android:textSize="12sp" | ||||||
|  | 	    android:layout_alignParentRight="true" | ||||||
|  | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:layout_width="wrap_content" /> | ||||||
| 
 | 
 | ||||||
| 		<TextView android:id="@+id/buildtype" android:textSize="12sp" |   <TextView android:id="@+id/version" | ||||||
| 			android:layout_alignParentRight="true" android:layout_height="wrap_content" | 	    android:textStyle="bold" | ||||||
| 			android:layout_width="wrap_content" /> | 	    android:singleLine="true" | ||||||
|  | 	    android:ellipsize="marquee" | ||||||
|  | 	    android:layout_width="fill_parent" | ||||||
|  | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:textSize="18sp" /> | ||||||
| 
 | 
 | ||||||
| 		<TextView android:id="@+id/version" android:textStyle="bold" |   <TextView android:id="@+id/status" | ||||||
| 			android:singleLine="true" android:ellipsize="marquee" | 	    android:textSize="12sp" | ||||||
| 			android:layout_width="fill_parent" android:layout_height="wrap_content" | 	    android:layout_below="@id/version" | ||||||
| 			android:textSize="18sp" /> | 	    android:layout_alignParentRight="false" | ||||||
|  | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:layout_width="wrap_content" /> | ||||||
| 
 | 
 | ||||||
| 		<TextView android:id="@+id/status" android:textSize="12sp" |   <TextView android:id="@+id/size" | ||||||
| 			android:layout_below="@id/version" android:layout_alignParentRight="false" | 	    android:textSize="12sp" | ||||||
| 			android:layout_height="wrap_content" android:layout_width="wrap_content" /> | 	    android:layout_below="@id/version" | ||||||
|  | 	    android:layout_alignParentRight="true" | ||||||
|  | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:layout_width="wrap_content" /> | ||||||
| 
 | 
 | ||||||
| 		<TextView android:id="@+id/size" android:textSize="12sp" | </RelativeLayout> | ||||||
| 			android:layout_below="@id/version" android:layout_alignParentRight="true" |  | ||||||
| 			android:layout_height="wrap_content" android:layout_width="wrap_content" /> |  | ||||||
| 
 |  | ||||||
| 	</RelativeLayout> |  | ||||||
| 
 |  | ||||||
| </LinearLayout> |  | ||||||
|  | |||||||
| @ -1,39 +1,46 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
| 	android:id="@+id/vw1" android:layout_width="fill_parent" | 		android:orientation="vertical" | ||||||
| 	android:layout_height="wrap_content" android:orientation="vertical"> | 		android:layout_width="fill_parent" | ||||||
|  | 		android:layout_height="wrap_content" | ||||||
|  | 		android:paddingTop="0dp" | ||||||
|  | 		android:paddingBottom="5dp" | ||||||
|  | 		android:paddingLeft="5dp" | ||||||
|  | 		android:paddingRight="10dp"> | ||||||
| 
 | 
 | ||||||
| 	<LinearLayout android:id="@+id/vw2" android:layout_width="fill_parent" |   <ImageView android:id="@+id/icon" | ||||||
| 		android:layout_height="wrap_content" android:orientation="horizontal"> | 	     android:scaleType="centerInside" | ||||||
|  | 	     android:layout_width="50dp" | ||||||
|  | 	     android:layout_height="50dp" | ||||||
|  | 	     android:padding="5dp"/> | ||||||
| 
 | 
 | ||||||
| 		<ImageView android:id="@+id/icon" android:cropToPadding="true" |   <TextView android:id="@+id/name" | ||||||
| 			android:padding="4px" android:scaleType="centerInside" | 	    android:textSize="18sp" | ||||||
| 			android:layout_height="50px" android:layout_width="50px" /> | 	    android:textStyle="bold" | ||||||
|  | 	    android:singleLine="true" | ||||||
|  | 	    android:ellipsize="marquee" | ||||||
|  | 	    android:layout_width="fill_parent" | ||||||
|  | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:layout_toRightOf="@id/icon"/> | ||||||
| 
 | 
 | ||||||
| 		<RelativeLayout android:layout_width="fill_parent" |   <TextView android:id="@+id/status" | ||||||
| 			android:layout_height="wrap_content" android:orientation="vertical"> | 	    android:textSize="12sp" | ||||||
|  | 	    android:layout_width="fill_parent" | ||||||
|  | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:layout_toRightOf="@id/icon" | ||||||
|  | 	    android:layout_below="@id/name"/> | ||||||
| 
 | 
 | ||||||
| 			<TextView android:id="@+id/name" android:textStyle="bold" |   <TextView android:id="@+id/license" | ||||||
| 				android:singleLine="true" android:ellipsize="marquee" | 	    android:textSize="12sp" | ||||||
| 				android:layout_width="fill_parent" android:layout_height="wrap_content" | 	    android:layout_width="wrap_content" | ||||||
| 				android:textSize="18sp" /> | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:layout_below="@id/name" | ||||||
|  | 	    android:layout_alignParentRight="true"/> | ||||||
| 
 | 
 | ||||||
| 			<TextView android:id="@+id/license" android:textSize="12sp" |   <TextView android:id="@+id/summary" | ||||||
| 				android:layout_below="@id/name" android:layout_alignParentRight="true" | 	    android:layout_width="fill_parent" | ||||||
| 				android:layout_height="wrap_content" android:layout_width="wrap_content" /> | 	    android:layout_height="wrap_content" | ||||||
|  | 	    android:layout_below="@id/icon" | ||||||
|  | 	    android:paddingLeft="5dp"/> | ||||||
| 
 | 
 | ||||||
| 			<TextView android:id="@+id/status" android:layout_toLeftOf="@id/license" | </RelativeLayout> | ||||||
| 				android:layout_below="@id/name" android:layout_alignParentLeft="true" |  | ||||||
| 				android:textSize="12sp" android:layout_height="wrap_content" |  | ||||||
| 				android:layout_width="fill_parent" /> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 		</RelativeLayout> |  | ||||||
| 
 |  | ||||||
| 	</LinearLayout> |  | ||||||
| 
 |  | ||||||
| 	<TextView android:id="@+id/summary" android:layout_height="wrap_content" |  | ||||||
| 		android:layout_width="fill_parent" /> |  | ||||||
| 
 |  | ||||||
| </LinearLayout> |  | ||||||
| 	 |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Henrik Tunedal
						Henrik Tunedal