Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout
- 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"
- app:behavior_hideable="false"
- app:behavior_peekHeight="64dp"
- app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
- tools:context="com.example.coincurrently.MainActivity">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/news_background"
- app:layout_constraintBottom_toTopOf="@+id/support_view">
- <View
- android:id="@+id/news_drag_handle"
- android:layout_width="40dp"
- android:layout_height="4dp"
- android:background="@drawable/news_handle_rounded_rectangle"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- android:layout_marginTop="10dp">
- </View>
- <TextView
- android:id="@+id/txt_crypto_news"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Crypto News"
- android:textColor="#FFFFFF"
- android:textSize="24sp"
- android:fontFamily="sans-serif-black"
- android:layout_marginTop="10dp"
- android:layout_marginLeft="15dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@id/news_drag_handle">
- </TextView>
- <View
- android:id="@+id/news_top_separator"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="#525252"
- android:layout_marginTop="10dp"
- app:layout_constraintTop_toBottomOf="@id/txt_crypto_news">
- </View>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rv_news"
- android:layout_width="match_parent"
- android:layout_height="180dp"
- android:paddingStart="-25dp"
- android:paddingEnd="15dp"
- android:clipToPadding="false"
- android:orientation="horizontal"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@id/news_top_separator"
- app:layout_constraintVertical_bias="0.0"
- tools:listitem="@layout/news_card">
- </androidx.recyclerview.widget.RecyclerView>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment