Last active
April 5, 2021 20:03
-
-
Save NickM-27/71f2e5d45a60d000422ce45496418e5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <androidx.constraintlayout.widget.ConstraintLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <androidx.coordinatorlayout.widget.CoordinatorLayout | |
| android:id="@+id/content" | |
| android:layout_width="0dp" | |
| android:layout_height="0dp" | |
| android:animateLayoutChanges="false" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintLeft_toLeftOf="parent" | |
| app:layout_constraintRight_toRightOf="parent" | |
| app:layout_constraintTop_toTopOf="parent"> | |
| <androidx.swiperefreshlayout.widget.SwipeRefreshLayout | |
| android:id="@+id/refresh" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
| <androidx.recyclerview.widget.RecyclerView | |
| android:id="@+id/timeline" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:animateLayoutChanges="false" | |
| tools:listitem="@layout/custom_row_tweet" /> | |
| </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> | |
| <com.google.android.material.appbar.AppBarLayout | |
| android:id="@+id/appbar" | |
| android:layout_width="match_parent" | |
| android:layout_height="@dimen/top_offset" | |
| android:background="#00000000" | |
| android:fitsSystemWindows="true" | |
| app:elevation="0dp"> | |
| <com.google.android.material.card.MaterialCardView | |
| android:id="@+id/toolbar" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="top|center_horizontal" | |
| android:layout_marginStart="8dp" | |
| android:layout_marginTop="4dp" | |
| android:layout_marginEnd="8dp" | |
| android:layout_marginBottom="4dp" | |
| android:onClick="searchTweets" | |
| app:cardCornerRadius="8dp" | |
| app:cardElevation="8dp" | |
| app:layout_scrollFlags="scroll|enterAlways"> | |
| <androidx.constraintlayout.widget.ConstraintLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:animateLayoutChanges="true" | |
| android:padding="10dp"> | |
| <ImageView | |
| android:id="@+id/drawer" | |
| android:layout_width="28dp" | |
| android:layout_height="28dp" | |
| android:background="?android:selectableItemBackgroundBorderless" | |
| android:contentDescription="@string/content_description" | |
| android:onClick="toggleDrawer" | |
| android:padding="4dp" | |
| android:src="@drawable/ic_menu" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintLeft_toLeftOf="parent" | |
| app:layout_constraintTop_toTopOf="parent" /> | |
| <ImageView | |
| android:id="@+id/anim" | |
| android:layout_width="28dp" | |
| android:layout_height="28dp" | |
| android:contentDescription="@string/content_description" | |
| android:src="@drawable/ic_albatross_web" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintHorizontal_bias="0.35" | |
| app:layout_constraintLeft_toRightOf="@+id/drawer" | |
| app:layout_constraintRight_toLeftOf="@+id/avatar" | |
| app:layout_constraintTop_toTopOf="parent" | |
| tools:layout_constraintHorizontal_bias="0.0" | |
| tools:visibility="gone" /> | |
| <TextView | |
| android:id="@+id/title" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:padding="4dp" | |
| android:text="@string/app_name" | |
| android:textColor="@color/colorSecondaryText" | |
| android:textSize="14sp" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintLeft_toRightOf="@+id/anim" | |
| app:layout_constraintTop_toTopOf="parent" | |
| tools:text="@string/hint_search_tweets" /> | |
| <ImageView | |
| android:id="@+id/update" | |
| android:layout_width="28dp" | |
| android:layout_height="28dp" | |
| android:layout_marginEnd="8dp" | |
| android:background="?android:selectableItemBackgroundBorderless" | |
| android:contentDescription="@string/content_description" | |
| android:onClick="refresh" | |
| android:padding="2dp" | |
| android:src="@drawable/ic_refresh_daynight" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintRight_toLeftOf="@+id/avatar" | |
| app:layout_constraintTop_toTopOf="parent" /> | |
| <ImageView | |
| android:id="@+id/avatar" | |
| android:layout_width="28dp" | |
| android:layout_height="28dp" | |
| android:contentDescription="@string/content_description" | |
| android:onClick="viewProfile" | |
| android:src="@drawable/ic_unloaded_contact" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintRight_toRightOf="parent" | |
| app:layout_constraintTop_toTopOf="parent" | |
| tools:src="@tools:sample/avatars" /> | |
| </androidx.constraintlayout.widget.ConstraintLayout> | |
| </com.google.android.material.card.MaterialCardView> | |
| </com.google.android.material.appbar.AppBarLayout> | |
| <com.google.android.material.floatingactionbutton.FloatingActionButton | |
| android:id="@+id/fab" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_margin="16dp" | |
| android:onClick="addClick" | |
| android:src="@drawable/ic_tweet" | |
| android:tag="0" | |
| app:fabSize="normal" | |
| app:layout_anchor="@+id/timeline" | |
| app:layout_anchorGravity="end|bottom" /> | |
| </androidx.coordinatorlayout.widget.CoordinatorLayout> | |
| </androidx.constraintlayout.widget.ConstraintLayout> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment