Created
December 5, 2014 04:17
-
-
Save Krishan14sharma/31f4e4be72071897e2da to your computer and use it in GitHub Desktop.
Contains standard List item 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
<android.support.v4.widget.DrawerLayout | |
android:id="@+id/drawer_layout" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="?attr/colorPrimaryDark" /> | |
<com.dnn.zapbuild.commons.view.SlidingTabLayout | |
android:id="@+id/sliding_tabs" | |
android:background="?attr/colorPrimaryDark" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
<android.support.v4.view.ViewPager | |
android:id="@+id/viewpager" | |
android:layout_width="match_parent" | |
android:layout_height="0px" | |
android:layout_weight="1" | |
android:background="@android:color/white" /> | |
</LinearLayout> | |
<ListView | |
android:id="@+id/navdrawer" | |
android:layout_width="280dp" | |
android:layout_height="match_parent" | |
android:layout_gravity="start" | |
android:background="?attr/colorPrimaryDark" | |
android:choiceMode="singleChoice" | |
android:layout_marginTop="?attr/actionBarSize" | |
android:divider="@android:color/white" | |
android:dividerHeight="1dp" | |
android:drawSelectorOnTop="false"></ListView> | |
</android.support.v4.widget.DrawerLayout> |
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"?> | |
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/card_view" | |
android:layout_gravity="center" | |
android:layout_width="fill_parent" | |
android:layout_height="76dp" | |
card_view:cardCornerRadius="4dp"> | |
<TextView | |
android:id="@+id/title" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:gravity="center" | |
tools:text="30" | |
/> | |
</android.support.v7.widget.CardView> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="56dp" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:padding="4dp" | |
android:src="@drawable/ic_launcher" | |
/> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:layout_marginLeft="72dp" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:layout_alignBaseline="@id/imageView" | |
android:gravity="center_vertical" | |
android:id="@+id/text" | |
/> | |
</RelativeLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="56dp" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:src="@drawable/ic_launcher" | |
android:padding="4dp" | |
/> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:layout_marginLeft="72dp" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:layout_alignBaseline="@id/imageView" | |
android:gravity="center_vertical" | |
android:layout_toLeftOf="@+id/imageView2" | |
android:layout_marginRight="16dp" | |
android:id="@+id/text" | |
/> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView2" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:src="@drawable/ic_launcher" | |
android:layout_alignParentRight="true" | |
android:padding="12dp" | |
/> | |
</RelativeLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="72dp" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:padding="4dp" | |
android:src="@drawable/ic_launcher" | |
/> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_primary" | |
android:textColor="@color/primary_text_default_material_dark" | |
android:layout_above="@+id/dummy" | |
android:layout_marginLeft="72dp" | |
/> | |
<View | |
android:layout_width="fill_parent" | |
android:layout_height="1dp" | |
android:layout_centerInParent="true" | |
android:id="@+id/dummy" | |
android:visibility="invisible" | |
> | |
</View> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="14sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_secondary" | |
android:layout_below="@id/textview_primary" | |
android:textColor="@color/secondary_text_default_material_dark" | |
android:layout_marginLeft="72dp" | |
android:text="This is a secondary text description" | |
/> | |
</RelativeLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="72dp" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:padding="4dp" | |
android:src="@drawable/ic_launcher" | |
/> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_primary" | |
android:textColor="@color/primary_text_default_material_dark" | |
android:layout_above="@id/dummy" | |
android:layout_marginLeft="72dp" | |
android:layout_toLeftOf="@+id/imageView2" | |
android:layout_marginRight="16dp" | |
/> | |
<View | |
android:layout_width="fill_parent" | |
android:layout_height="1dp" | |
android:layout_centerInParent="true" | |
android:id="@+id/dummy" | |
android:visibility="invisible" | |
> | |
</View> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="14sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_secondary" | |
android:layout_below="@id/textview_primary" | |
android:textColor="@color/secondary_text_default_material_dark" | |
android:layout_marginLeft="72dp" | |
android:layout_toLeftOf="@+id/imageView2" | |
android:layout_marginRight="16dp" | |
/> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView2" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:src="@drawable/ic_launcher" | |
android:layout_alignParentRight="true" | |
android:padding="12dp" | |
/> | |
</RelativeLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="48dp" | |
android:background="@color/material_blue_grey_800" | |
android:paddingRight="16dp" | |
android:paddingLeft="16dp" | |
> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:padding="12dp" | |
android:background="@color/background_material_dark" | |
android:src="@drawable/ic_launcher" | |
/> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:layout_marginLeft="72dp" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:layout_alignBaseline="@id/imageView" | |
android:gravity="center_vertical" | |
android:id="@+id/text" | |
/> | |
</RelativeLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="72dp" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
> | |
<ImageView | |
android:layout_width="48dp" | |
android:layout_height="48dp" | |
android:id="@+id/imageView" | |
android:layout_centerVertical="true" | |
android:adjustViewBounds="true" | |
android:scaleType="centerCrop" | |
android:padding="12dp" | |
android:src="@drawable/ic_launcher" | |
/> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_primary" | |
android:textColor="@color/primary_text_default_material_dark" | |
android:layout_above="@id/dummy" | |
android:layout_marginLeft="72dp" | |
/> | |
<View | |
android:layout_width="fill_parent" | |
android:layout_height="1dp" | |
android:layout_centerInParent="true" | |
android:id="@+id/dummy" | |
android:visibility="invisible" | |
> | |
</View> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="14sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_secondary" | |
android:layout_below="@id/textview_primary" | |
android:textColor="@color/secondary_text_default_material_dark" | |
android:layout_marginLeft="72dp" | |
android:text="this is secondary text description" | |
/> | |
</RelativeLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="48dp" | |
android:paddingRight="16dp" | |
android:paddingLeft="16dp" | |
> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:layout_alignBaseline="@id/imageView" | |
android:gravity="center_vertical" | |
android:id="@+id/text" | |
/> | |
</RelativeLayout> |
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"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="72dp" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_vertical_margin" | |
> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
tools:text="Item1fkjsdahkfsdjkfklasdhkjfklsdhkjfhklsadhfklsdklfhklsdklfhklsfsdhfshdj" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="16sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_primary" | |
android:textColor="@color/primary_text_default_material_dark" | |
android:layout_above="@id/dummy" | |
/> | |
<View | |
android:layout_width="fill_parent" | |
android:layout_height="1dp" | |
android:layout_centerInParent="true" | |
android:id="@+id/dummy" | |
> | |
</View> | |
<TextView | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:singleLine="true" | |
android:ellipsize="end" | |
android:textSize="14sp" | |
android:gravity="center_vertical" | |
android:id="@+id/textview_secondary" | |
android:layout_below="@id/textview_primary" | |
android:textColor="@color/secondary_text_default_material_dark" | |
android:text="this is a secondary text as description" | |
/> | |
</RelativeLayout> |
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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/material_blue_grey_950" | |
> | |
<ListView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/listView" | |
android:layout_gravity="center_horizontal" | |
android:divider="@color/material_deep_teal_500" | |
android:dividerHeight="0.5dp" | |
/> | |
</LinearLayout> |
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"?> | |
<org.lucasr.twowayview.widget.TwoWayView | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/list" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment