Guest User

Untitled

a guest
Apr 1st, 2020
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.19 KB | None | 0 0
  1. card xml
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    android:layout_width="match_parent" android:layout_height="match_parent">
  7.  
  8.     <LinearLayout
  9.        android:layout_width="match_parent"
  10.        android:layout_height="50dp"
  11.        android:orientation="horizontal">
  12.  
  13.         <LinearLayout
  14.            android:layout_width="300dp"
  15.            android:layout_height="match_parent"
  16.            android:orientation="vertical">
  17.  
  18.             <TextView
  19.                android:id="@+id/Airport"
  20.                android:layout_width="match_parent"
  21.                android:layout_height="wrap_content"
  22.                android:layout_weight="2"
  23.                android:text="TextView"
  24.                android:textSize="26sp"/>
  25.  
  26.             <TextView
  27.                android:id="@+id/City"
  28.                android:layout_width="match_parent"
  29.                android:layout_height="wrap_content"
  30.                android:layout_weight="1"
  31.                android:text="TextView"
  32.                android:textSize="18sp"/>
  33.  
  34.         </LinearLayout>
  35.  
  36.         <ImageButton
  37.            android:id="@+id/imageButton4"
  38.            android:layout_width="0dp"
  39.            android:layout_height="match_parent"
  40.            android:layout_weight="1"
  41.            app:srcCompat="@drawable/ic_keyboard_arrow_right_black_24dp" />
  42.  
  43.  
  44.     </LinearLayout>
  45.  
  46. </androidx.cardview.widget.CardView>
  47.  
  48.  
  49. activity main xml
  50. <?xml version="1.0" encoding="utf-8"?>
  51. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  52.    xmlns:app="http://schemas.android.com/apk/res-auto"
  53.    xmlns:tools="http://schemas.android.com/tools"
  54.    android:layout_width="match_parent"
  55.    android:layout_height="wrap_content"
  56.    tools:context=".MainActivity">
  57.  
  58. <!--    <include-->
  59. <!--        android:id="@+id/toolbar"-->
  60. <!--        layout="@layout/toolbar" />-->
  61.  
  62.     <androidx.recyclerview.widget.RecyclerView
  63.        android:id="@+id/AirportRecyclerView"
  64.        android:layout_width="match_parent"
  65.        android:layout_height="wrap_content" />
  66.  
  67. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment