Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@annchar
Created June 24, 2018 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save annchar/56aff2b8e03336858fd24fae3449aca5 to your computer and use it in GitHub Desktop.
Save annchar/56aff2b8e03336858fd24fae3449aca5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.7"
android:gravity="center_vertical"
android:paddingRight="@dimen/margin_small"
android:paddingTop="@dimen/margin_small"
android:paddingBottom="@dimen/margin_small">
<ImageView
android:id="@+id/imgFlag"
android:layout_width="75dp"
android:layout_height="50dp"
android:background="@drawable/border_black" />
<TextView
android:id="@+id/textViewName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/margin_small"
android:layout_toRightOf="@id/imgFlag"
android:text="Braaaa" />
</RelativeLayout>
<TextView
android:id="@+id/textViewRank"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0.25"
android:gravity="center"
android:text="5" />
<TextView
android:id="@+id/textViewPoints"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0.25"
android:gravity="center"
android:text="5" />
<TextView
android:id="@+id/textViewGoals"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0.25"
android:gravity="center"
android:text="5" />
<TextView
android:id="@+id/textViewGoalsAgainst"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0.25"
android:gravity="center"
android:text="5" />
</LinearLayout>
</android.support.v7.widget.CardView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment