Last active
February 27, 2016 08:59
-
-
Save BMomani/9b2007e37d75e19955ec to your computer and use it in GitHub Desktop.
list item contain image and tow lerner layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
looks like this | |
________________________________ | |
|image|text 15| | |
|_____|text__________________7_| | |
--> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
android:minHeight="?android:attr/listPreferredItemHeight" | |
android:padding="16dp" | |
> | |
<ImageView | |
android:src="@drawable/ic_launcher" | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:id="@+id/imageView" /> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:paddingLeft="16dp" | |
> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Tomorrow" | |
android:id="@+id/textView" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Clear" | |
android:id="@+id/textView2" /> | |
</LinearLayout> | |
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="25°" | |
android:id="@+id/textView3" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textAppearance="?android:attr/textAppearanceSmall" | |
android:text="6°" | |
android:id="@+id/textView4" /> | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment