104 lines
4.2 KiB
XML
104 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
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=".activities.RepoDetailActivity">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/filesFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="?attr/materialCardViewElevatedStyle"
|
|
android:layout_margin="@dimen/dimen8dp"
|
|
app:cardElevation="@dimen/dimen0dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:background="?attr/materialCardBackgroundColor"
|
|
android:orientation="horizontal">
|
|
|
|
<moe.feng.common.view.breadcrumbs.BreadcrumbsView
|
|
android:id="@+id/breadcrumbs_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:saveEnabled="false"
|
|
android:text="@string/filesBreadcrumbRoot"
|
|
app:CustomTextSize="@dimen/dimen16sp"
|
|
app:SelectedTextColor="?attr/primaryTextColor"
|
|
app:UnSelectedTextColor="?attr/inputSelectedColor" />
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/primaryBackgroundColor"
|
|
android:padding="@dimen/dimen8dp">
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
android:id="@+id/pullToRefresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:paddingBottom="@dimen/dimen72dp" />
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/noDataFiles"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="@dimen/dimen16dp"
|
|
android:gravity="center"
|
|
android:text="@string/noDataFound"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp"
|
|
android:visibility="gone" />
|
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
android:id="@+id/progress_bar"
|
|
style="@style/Widget.MaterialComponents.LinearProgressIndicator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/filesFrame"
|
|
android:indeterminate="true"
|
|
app:indicatorColor="?attr/progressIndicatorColor" />
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/newFile"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|bottom"
|
|
android:layout_margin="@dimen/dimen16dp"
|
|
android:text="@string/pageTitleNewFile"
|
|
android:contentDescription="@string/pageTitleNewFile"
|
|
android:textColor="?attr/materialCardBackgroundColor"
|
|
app:iconTint="?attr/materialCardBackgroundColor"
|
|
android:backgroundTint="?attr/fabColor"
|
|
app:icon="@drawable/ic_add" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|