Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- card xml
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent" android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="300dp"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <TextView
- android:id="@+id/Airport"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="2"
- android:text="TextView"
- android:textSize="26sp"/>
- <TextView
- android:id="@+id/City"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="TextView"
- android:textSize="18sp"/>
- </LinearLayout>
- <ImageButton
- android:id="@+id/imageButton4"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- app:srcCompat="@drawable/ic_keyboard_arrow_right_black_24dp" />
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- activity main xml
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- tools:context=".MainActivity">
- <!-- <include-->
- <!-- android:id="@+id/toolbar"-->
- <!-- layout="@layout/toolbar" />-->
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/AirportRecyclerView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment