Skip to content

Commit

Permalink
resources: smoother detail (fixes #4580) (#4581)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
deeppp15 and dogi authored Oct 9, 2024
1 parent 4b5e333 commit 3050a34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 39 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 2006
versionName "0.20.6"
versionCode 2007
versionName "0.20.7"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
40 changes: 3 additions & 37 deletions app/src/main/res/layout/fragment_library_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
android:src="@drawable/ic_left_arrow"
android:text="@string/btn_back"
app:tint="@color/md_black_1000" />

<TextView
android:id="@+id/tv_title"
android:layout_width="0dp"
Expand All @@ -53,7 +52,6 @@
android:textAllCaps="true"
android:textColor="@color/md_white_1000"
android:textStyle="bold" />

<ImageButton
android:id="@+id/btn_download"
style="@style/YellowButtons"
Expand All @@ -66,7 +64,6 @@
android:text="@string/download"
app:srcCompat="@drawable/ic_download"
app:tint="@color/md_black_1000" />

<ImageButton
android:id="@+id/btn_remove"
style="@style/YellowButtons"
Expand All @@ -78,7 +75,6 @@
android:src="@drawable/close_x"
android:text="@string/btn_remove_lib"
app:tint="@color/md_black_1000" />

</LinearLayout>

<androidx.core.widget.NestedScrollView
Expand All @@ -93,7 +89,6 @@
android:gravity="center"
android:orientation="vertical">


<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -113,7 +108,6 @@
android:orientation="vertical"
android:padding="8dp">


<TextView
android:id="@+id/times_rated"
android:layout_width="match_parent"
Expand All @@ -122,23 +116,21 @@
android:gravity="center"
android:padding="4dp"
android:textColor="@color/daynight_textColor" />

<androidx.appcompat.widget.AppCompatRatingBar
android:id="@+id/rating_bar"
style="@style/Base.Widget.AppCompat.RatingBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:isIndicator="true"
android:stepSize="1" />


android:stepSize="1"
android:progressTint="@color/daynight_textColor"
android:progressBackgroundTint="@color/empty_rating" />
</LinearLayout>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"

android:orientation="vertical"
android:padding="4dp">

Expand All @@ -153,15 +145,12 @@
android:textColor="@color/daynight_textColor"
android:textSize="@dimen/text_size_large"
android:textStyle="bold" />


<TextView
android:id="@+id/average"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/average"
android:textColor="@color/daynight_textColor" />

</LinearLayout>
</LinearLayout>

Expand All @@ -176,14 +165,12 @@
android:layout_height="wrap_content"
android:text="@string/author"
android:textColor="@color/daynight_textColor" />

<TextView
android:id="@+id/tv_author"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

<LinearLayout
Expand All @@ -197,14 +184,12 @@
android:layout_height="wrap_content"
android:text="@string/published_by"
android:textColor="@color/daynight_textColor" />

<TextView
android:id="@+id/tv_published"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

<LinearLayout
Expand All @@ -218,14 +203,12 @@
android:layout_height="wrap_content"
android:text="@string/media"
android:textColor="@color/daynight_textColor" />

<TextView
android:id="@+id/tv_media"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

<LinearLayout
Expand All @@ -239,14 +222,12 @@
android:layout_height="wrap_content"
android:text="@string/language_with_colon"
android:textColor="@color/daynight_textColor" />

<TextView
android:id="@+id/tv_language"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

<LinearLayout
Expand All @@ -260,14 +241,12 @@
android:layout_height="wrap_content"
android:text="@string/subject"
android:textColor="@color/daynight_textColor"/>

<TextView
android:id="@+id/tv_subject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

<LinearLayout
Expand All @@ -281,14 +260,12 @@
android:layout_height="wrap_content"
android:text="@string/license"
android:textColor="@color/daynight_textColor"/>

<TextView
android:id="@+id/tv_license"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

<LinearLayout
Expand All @@ -302,14 +279,12 @@
android:layout_height="wrap_content"
android:text="@string/resource_colon"
android:textColor="@color/daynight_textColor" />

<TextView
android:id="@+id/tv_resource"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

<LinearLayout
Expand All @@ -323,26 +298,17 @@
android:layout_height="wrap_content"
android:text="@string/type"
android:textColor="@color/daynight_textColor" />

<TextView
android:id="@+id/tv_type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/padding_normal"
android:textColor="@color/daynight_textColor" />

</LinearLayout>

</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>

</LinearLayout>


</androidx.cardview.widget.CardView>

</LinearLayout>


</FrameLayout>

0 comments on commit 3050a34

Please sign in to comment.