diff --git a/app/src/main/res/drawable/shape_archived.xml b/app/src/main/res/drawable/shape_archived.xml index 29f2a199..b099d2bd 100644 --- a/app/src/main/res/drawable/shape_archived.xml +++ b/app/src/main/res/drawable/shape_archived.xml @@ -2,7 +2,7 @@ - + diff --git a/app/src/main/res/layout/activity_commits.xml b/app/src/main/res/layout/activity_commits.xml index 90369cb0..35a495dd 100644 --- a/app/src/main/res/layout/activity_commits.xml +++ b/app/src/main/res/layout/activity_commits.xml @@ -52,15 +52,21 @@ + android:layout_marginTop="@dimen/dimen56dp" + android:layout_height="wrap_content"> - + android:padding="@dimen/dimen8dp"> + + + + diff --git a/app/src/main/res/layout/fragment_commit_details.xml b/app/src/main/res/layout/fragment_commit_details.xml index 6113cfef..cd0acf87 100644 --- a/app/src/main/res/layout/fragment_commit_details.xml +++ b/app/src/main/res/layout/fragment_commit_details.xml @@ -12,7 +12,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/Widget.AppCompat.SearchView" - app:elevation="0dp" + app:elevation="@dimen/dimen0dp" app:layout_constraintTop_toTopOf="parent"> + android:textSize="@dimen/dimen18sp"/> @@ -65,108 +65,109 @@ + android:padding="@dimen/dimen8dp" + android:orientation="vertical"> - - - - - + style="?attr/materialCardViewFilledStyle" + android:layout_marginBottom="@dimen/dimen4dp" + app:cardElevation="@dimen/dimen0dp"> + android:foreground="?android:attr/selectableItemBackground" + android:background="?attr/materialCardBackgroundColor" + android:padding="@dimen/dimen12dp" + android:orientation="vertical"> - + + + + + android:orientation="horizontal"> - - - - - + + + + + + + + + + + app:drawableLeftCompat="@drawable/ic_commit" + tools:text="357f3qd5s" /> - - - - + diff --git a/app/src/main/res/layout/fragment_diff_files.xml b/app/src/main/res/layout/fragment_diff_files.xml index ceb741a4..84dc644b 100644 --- a/app/src/main/res/layout/fragment_diff_files.xml +++ b/app/src/main/res/layout/fragment_diff_files.xml @@ -23,17 +23,23 @@ android:ellipsize="none" android:scrollbars="horizontal" android:singleLine="true" - android:layout_marginStart="20dp" - android:layout_marginTop="8dp" - android:layout_marginBottom="8dp" - android:textSize="15sp" + android:layout_marginStart="@dimen/dimen20dp" + android:layout_marginTop="@dimen/dimen8dp" + android:layout_marginBottom="@dimen/dimen8dp" + android:textSize="@dimen/dimen16sp" android:visibility="gone" /> - + android:padding="@dimen/dimen8dp"> + + + + diff --git a/app/src/main/res/layout/fragment_repo_info.xml b/app/src/main/res/layout/fragment_repo_info.xml index 7580373f..4c50aab1 100644 --- a/app/src/main/res/layout/fragment_repo_info.xml +++ b/app/src/main/res/layout/fragment_repo_info.xml @@ -12,7 +12,7 @@ android:layout_height="match_parent"> - - - - - - - - - + style="?attr/materialCardViewFilledStyle" + app:cardElevation="@dimen/dimen0dp"> + android:foreground="?android:attr/selectableItemBackground" + android:background="?attr/materialCardBackgroundColor" + android:padding="@dimen/dimen12dp" + android:orientation="vertical"> - + android:gravity="center" + android:minHeight="@dimen/dimen48dp" + android:orientation="horizontal"> - + - + - - - + android:orientation="vertical"> + + + + + + + + + + + + @@ -158,7 +162,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="?attr/primaryTextColor" - android:textSize="14sp" /> + android:textSize="@dimen/dimen14sp" /> + + android:textSize="@dimen/dimen14sp" /> + android:textSize="@dimen/dimen14sp" /> + + android:textSize="@dimen/dimen14sp" /> + - + - - - - - + android:orientation="horizontal" + android:background="?android:attr/selectableItemBackground" + android:paddingTop="@dimen/dimen8dp" + android:paddingBottom="@dimen/dimen8dp" + android:paddingStart="@dimen/dimen16dp" + android:paddingEnd="@dimen/dimen16dp"> - - + - + - + + android:layout_marginTop="@dimen/dimen12dp" + android:layout_marginBottom="@dimen/dimen20dp" + android:orientation="horizontal" + android:paddingStart="@dimen/dimen16dp" + android:paddingEnd="@dimen/dimen16dp"> - + android:contentDescription="@string/repoWatchersInMenu" + app:srcCompat="@drawable/ic_download" /> - + android:layout_marginStart="@dimen/dimen16dp" + android:gravity="center_vertical" + android:orientation="vertical"> + + + + + + + - - - - - - + android:layout_marginBottom="20dp" + android:orientation="horizontal" + android:paddingStart="@dimen/dimen16dp" + android:paddingEnd="@dimen/dimen16dp"> - + android:contentDescription="@string/infoTabRepoCreatedAt" + app:srcCompat="@drawable/ic_calendar" /> - + android:layout_marginStart="@dimen/dimen16dp" + android:gravity="center_vertical" + android:orientation="vertical"> + + + + + + + - - - - - - + android:layout_marginBottom="@dimen/dimen20dp" + android:orientation="horizontal" + android:paddingStart="@dimen/dimen16dp" + android:paddingEnd="@dimen/dimen16dp"> - + android:contentDescription="@string/websiteText" + app:srcCompat="@drawable/ic_link" /> - + android:layout_marginStart="@dimen/dimen16dp" + android:gravity="center_vertical" + android:orientation="vertical"> + + + + + + + + + - + - + - + style="?attr/materialCardViewFilledStyle" + android:layout_marginTop="@dimen/dimen8dp" + app:cardElevation="@dimen/dimen0dp"> - - - - - - - - - + android:foreground="?android:attr/selectableItemBackground" + android:background="?attr/materialCardBackgroundColor" + android:padding="@dimen/dimen12dp" + android:orientation="vertical"> - + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/list_commits.xml b/app/src/main/res/layout/list_commits.xml index 0bb56de8..515d2832 100644 --- a/app/src/main/res/layout/list_commits.xml +++ b/app/src/main/res/layout/list_commits.xml @@ -4,87 +4,103 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" + android:paddingTop="@dimen/dimen4dp" + android:paddingBottom="@dimen/dimen4dp" android:orientation="vertical"> - - - + style="?attr/materialCardViewFilledStyle" + app:cardElevation="@dimen/dimen0dp"> + android:foreground="?android:attr/selectableItemBackground" + android:background="?attr/materialCardBackgroundColor" + android:padding="@dimen/dimen12dp" + android:orientation="vertical"> - + + + android:orientation="horizontal"> - - - - - + + + + + + + + + + + + + + + android:textSize="@dimen/dimen12sp" + app:drawableLeftCompat="@drawable/ic_commit" + tools:text="357f3qd5s" /> - - - - + diff --git a/app/src/main/res/layout/list_diff_files.xml b/app/src/main/res/layout/list_diff_files.xml index d9d7e503..ab60bc34 100644 --- a/app/src/main/res/layout/list_diff_files.xml +++ b/app/src/main/res/layout/list_diff_files.xml @@ -5,49 +5,67 @@ android:id="@+id/main_frame" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" android:gravity="center_vertical" android:orientation="horizontal" - android:padding="16dp"> + android:paddingTop="@dimen/dimen4dp" + android:paddingBottom="@dimen/dimen4dp"> - + style="?attr/materialCardViewFilledStyle" + app:cardElevation="@dimen/dimen0dp"> - - - + android:foreground="?android:attr/selectableItemBackground" + android:background="?attr/materialCardBackgroundColor" + android:padding="@dimen/dimen12dp" + android:orientation="horizontal"> - + - + - + + + + + + + + + + +