Add: Add new repo button

This commit is contained in:
machiav3lli
2022-01-28 00:36:32 +01:00
parent 7bbac86dd4
commit 14ae20e166
4 changed files with 38 additions and 6 deletions

View File

@ -33,13 +33,29 @@
android:layout_gravity="top"
android:clipToPadding="false">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"
tools:listitem="@layout/item_repository_x" />
android:orientation="vertical">
<com.google.android.material.button.MaterialButton
android:id="@+id/add_repository"
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
android:layout_width="match_parent"
android:layout_height="64dp"
android:layout_margin="@dimen/shape_margin_medium"
android:drawableEnd="@drawable/ic_add"
android:drawableTint="?colorPrimary"
android:text="@string/add_repository" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:clipToPadding="false"
tools:listitem="@layout/item_repository_x" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.core.widget.NestedScrollView>
</com.google.android.material.circularreveal.CircularRevealFrameLayout>
</layout>

View File

@ -185,4 +185,5 @@
<string name="install_after_sync_summary">Automatically install app updates after syncing repositories</string>
<string name="prefs_updated_apps">Number of updated apps to show</string>
<string name="prefs_new_apps">Number of new apps to show</string>
<string name="new_repository">New repository</string>
</resources>