Guest User

Untitled

a guest
Aug 28th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.73 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="wrap_content"
  6.    app:cardBackgroundColor="@android:color/black"
  7.    app:cardCornerRadius="20dp">
  8.  
  9.     <androidx.cardview.widget.CardView
  10.        android:id="@+id/testy"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:layout_margin="3dp"
  14.        app:cardCornerRadius="20dp">
  15.  
  16.         <LinearLayout
  17.            android:layout_width="match_parent"
  18.            android:layout_height="wrap_content"
  19.            android:background="@android:color/transparent"
  20.            android:orientation="vertical"
  21.            android:padding="10dp">
  22.  
  23.             <LinearLayout
  24.                android:layout_width="match_parent"
  25.                android:layout_height="wrap_content"
  26.                android:layout_marginBottom="10dp"
  27.                android:background="@android:color/darker_gray"
  28.                android:orientation="vertical">
  29.  
  30.                 <TextView
  31.                    android:layout_width="wrap_content"
  32.                    android:layout_height="wrap_content"
  33.                    android:text="element1: mplampla" />
  34.  
  35.                 <TextView
  36.                    android:layout_width="wrap_content"
  37.                    android:layout_height="wrap_content"
  38.                    android:text="element2: mplampla" />
  39.  
  40.             </LinearLayout>
  41.  
  42.             <LinearLayout
  43.                android:layout_width="match_parent"
  44.                android:layout_height="wrap_content"
  45.                android:layout_marginBottom="10dp"
  46.                android:background="@android:color/darker_gray"
  47.                android:orientation="horizontal">
  48.  
  49.                 <TextView
  50.                    android:layout_width="wrap_content"
  51.                    android:layout_height="wrap_content"
  52.                    android:gravity="top"
  53.                    android:text="element3:" />
  54.  
  55.                 <LinearLayout
  56.                    android:layout_width="match_parent"
  57.                    android:layout_height="wrap_content"
  58.                    android:orientation="vertical"
  59.                    android:paddingStart="10dp"
  60.                    android:paddingTop="20dp"
  61.                    android:paddingEnd="10dp"
  62.                    android:paddingBottom="10dp">
  63.  
  64.                     <TextView
  65.                        android:layout_width="match_parent"
  66.                        android:layout_height="wrap_content"
  67.                        android:layout_gravity="start"
  68.                        android:text="item1: mplamplampla" />
  69.  
  70.                     <TextView
  71.                        android:layout_width="match_parent"
  72.                        android:layout_height="wrap_content"
  73.                        android:layout_gravity="start"
  74.                        android:text="item2: mplamplampla" />
  75.  
  76.                     <TextView
  77.                        android:layout_width="match_parent"
  78.                        android:layout_height="wrap_content"
  79.                        android:layout_gravity="start"
  80.                        android:text="item3: mplamplampla" />
  81.  
  82.                     <TextView
  83.                        android:layout_width="match_parent"
  84.                        android:layout_height="wrap_content"
  85.                        android:layout_gravity="start"
  86.                        android:text="item4: mplamplampla" />
  87.  
  88.                     <TextView
  89.                        android:layout_width="match_parent"
  90.                        android:layout_height="wrap_content"
  91.                        android:layout_gravity="start"
  92.                        android:text="item5:" />
  93.                 </LinearLayout>
  94.  
  95.             </LinearLayout>
  96.  
  97.  
  98.             <LinearLayout
  99.                android:layout_width="match_parent"
  100.                android:layout_height="wrap_content"
  101.                android:baselineAligned="false"
  102.                android:orientation="horizontal"
  103.                android:weightSum="4">
  104.  
  105.                 <LinearLayout
  106.                    android:layout_width="0dp"
  107.                    android:layout_height="wrap_content"
  108.                    android:layout_weight="1"
  109.                    android:background="@android:color/red"
  110.                    android:orientation="vertical"
  111.                    android:padding="5dp">
  112.  
  113.                     <TextView
  114.                        android:layout_width="match_parent"
  115.                        android:layout_height="wrap_content"
  116.                        android:text="subItem 1: mpla," />
  117.  
  118.                     <TextView
  119.                        android:layout_width="match_parent"
  120.                        android:layout_height="wrap_content"
  121.                        android:text="subItem 2: mpla," />
  122.  
  123.                     <TextView
  124.                        android:layout_width="match_parent"
  125.                        android:layout_height="wrap_content"
  126.                        android:text="subItem 3: mpla," />
  127.  
  128.                     <TextView
  129.                        android:layout_width="match_parent"
  130.                        android:layout_height="wrap_content"
  131.                        android:text="subItem 4: mpla," />
  132.  
  133.                     <TextView
  134.                        android:layout_width="match_parent"
  135.                        android:layout_height="wrap_content"
  136.                        android:text="subItem 5: mpla" />
  137.  
  138.                 </LinearLayout>
  139.  
  140.                 <LinearLayout
  141.                    android:layout_width="0dp"
  142.                    android:layout_height="wrap_content"
  143.                    android:layout_marginStart="8dp"
  144.                    android:layout_weight="1"
  145.                    android:background="@android:color/holo_blue_bright"
  146.                    android:orientation="vertical"
  147.                    android:padding="5dp">
  148.  
  149.                     <TextView
  150.                        android:layout_width="match_parent"
  151.                        android:layout_height="wrap_content"
  152.                        android:text="subItem 1: mpla," />
  153.  
  154.                     <TextView
  155.                        android:layout_width="match_parent"
  156.                        android:layout_height="wrap_content"
  157.                        android:text="subItem 2: mpla," />
  158.  
  159.                     <TextView
  160.                        android:layout_width="match_parent"
  161.                        android:layout_height="wrap_content"
  162.                        android:text="subItem 3: mpla," />
  163.  
  164.                     <TextView
  165.                        android:layout_width="match_parent"
  166.                        android:layout_height="wrap_content"
  167.                        android:text="subItem 4: mpla," />
  168.  
  169.                     <TextView
  170.                        android:layout_width="match_parent"
  171.                        android:layout_height="wrap_content"
  172.                        android:text="subItem 5: mpla" />
  173.  
  174.                 </LinearLayout>
  175.  
  176.                 <LinearLayout
  177.                    android:layout_width="0dp"
  178.                    android:layout_height="wrap_content"
  179.                    android:layout_marginStart="8dp"
  180.                    android:layout_weight="1"
  181.                    android:background="@android:color/holo_orange_dark"
  182.                    android:orientation="vertical"
  183.                    android:padding="5dp">
  184.  
  185.                     <TextView
  186.                        android:layout_width="match_parent"
  187.                        android:layout_height="wrap_content"
  188.                        android:text="subItem 1: mpla," />
  189.  
  190.                     <TextView
  191.                        android:layout_width="match_parent"
  192.                        android:layout_height="wrap_content"
  193.                        android:text="subItem 2: mpla," />
  194.  
  195.                     <TextView
  196.                        android:layout_width="match_parent"
  197.                        android:layout_height="wrap_content"
  198.                        android:text="subItem 3: mpla," />
  199.  
  200.                     <TextView
  201.                        android:layout_width="match_parent"
  202.                        android:layout_height="wrap_content"
  203.                        android:text="subItem 4: mpla," />
  204.  
  205.                     <TextView
  206.                        android:layout_width="match_parent"
  207.                        android:layout_height="wrap_content"
  208.                        android:text="subItem 5: mpla" />
  209.  
  210.                 </LinearLayout>
  211.  
  212.                 <LinearLayout
  213.                    android:layout_width="0dp"
  214.                    android:layout_height="wrap_content"
  215.                    android:layout_marginStart="8dp"
  216.                    android:layout_weight="1"
  217.                    android:background="@android:color/holo_green_light"
  218.                    android:orientation="vertical"
  219.                    android:padding="5dp">
  220.  
  221.                     <TextView
  222.                        android:layout_width="match_parent"
  223.                        android:layout_height="wrap_content"
  224.                        android:text="subItem 1: mpla," />
  225.  
  226.                     <TextView
  227.                        android:layout_width="match_parent"
  228.                        android:layout_height="wrap_content"
  229.                        android:text="subItem 2: mpla," />
  230.  
  231.                     <TextView
  232.                        android:layout_width="match_parent"
  233.                        android:layout_height="wrap_content"
  234.                        android:text="subItem 3: mpla," />
  235.  
  236.                     <TextView
  237.                        android:layout_width="match_parent"
  238.                        android:layout_height="wrap_content"
  239.                        android:text="subItem 4: mpla," />
  240.  
  241.                     <TextView
  242.                        android:layout_width="match_parent"
  243.                        android:layout_height="wrap_content"
  244.                        android:text="subItem 5: mpla" />
  245.  
  246.                 </LinearLayout>
  247.  
  248.             </LinearLayout>
  249.  
  250.  
  251.             <LinearLayout
  252.                android:layout_width="match_parent"
  253.                android:layout_height="wrap_content"
  254.                android:layout_marginTop="10dp"
  255.                android:background="@android:color/darker_gray"
  256.                android:orientation="horizontal">
  257.  
  258.                 <TextView
  259.                    android:layout_width="wrap_content"
  260.                    android:layout_height="wrap_content"
  261.                    android:gravity="top"
  262.                    android:text="element3:"
  263.                    android:visibility="invisible" />
  264.  
  265.                 <LinearLayout
  266.                    android:layout_width="match_parent"
  267.                    android:layout_height="wrap_content"
  268.                    android:orientation="vertical"
  269.                    android:paddingStart="10dp"
  270.                    android:paddingTop="10dp"
  271.                    android:paddingEnd="10dp"
  272.                    android:paddingBottom="10dp">
  273.  
  274.                     <TextView
  275.                        android:layout_width="match_parent"
  276.                        android:layout_height="wrap_content"
  277.                        android:layout_gravity="start"
  278.                        android:text="item6: mplamplampla" />
  279.  
  280.                     <TextView
  281.                        android:layout_width="match_parent"
  282.                        android:layout_height="wrap_content"
  283.                        android:layout_gravity="start"
  284.                        android:text="item7: mplamplampla" />
  285.  
  286.                 </LinearLayout>
  287.  
  288.             </LinearLayout>
  289.  
  290.         </LinearLayout>
  291.  
  292.     </androidx.cardview.widget.CardView>
  293.  
  294. </androidx.cardview.widget.CardView>
Add Comment
Please, Sign In to add comment