List commits in a repository
This commit is contained in:
9
app/src/main/res/layout/activity_list.xml
Normal file
9
app/src/main/res/layout/activity_list.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/activity_list_view" />
|
||||
</FrameLayout>
|
@@ -12,4 +12,21 @@
|
||||
android:layout_height="match_parent"
|
||||
app:layoutManager="LinearLayoutManager"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/previous_repository_list"
|
||||
android:text="@string/previous" />
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/next_repository_list"
|
||||
android:text="@string/next" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
9
app/src/main/res/layout/activity_row_item.xml
Normal file
9
app/src/main/res/layout/activity_row_item.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/commit_name" />
|
||||
</LinearLayout>
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
@@ -8,4 +8,4 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/repository_name" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
@@ -2,4 +2,10 @@
|
||||
<string name="app_name">TeaIsWarm</string>
|
||||
<string name="repository_name">Repository name</string>
|
||||
<string name="repository_description">Repository description</string>
|
||||
<plurals name="stars">
|
||||
<item quantity="one">%d star</item>
|
||||
<item quantity="other">%d stars</item>
|
||||
</plurals>
|
||||
<string name="previous">Previous</string>
|
||||
<string name="next">Next</string>
|
||||
</resources>
|
Reference in New Issue
Block a user