mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Minor polishment on app discovery UI." into ub-launcher3-dorval
This commit is contained in:
committed by
Android (Google) Code Review
commit
8ffddbb7c2
@@ -51,11 +51,12 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:textSize="14sp"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
android:layout_gravity="center_vertical"
|
||||
android:includeFontPadding="false"/>
|
||||
|
||||
<com.android.launcher3.discovery.RatingView
|
||||
android:id="@+id/rating_view"
|
||||
android:layout_width="80dp"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_height="6dp"
|
||||
android:paddingLeft="@dimen/container_fastscroll_thumb_max_width"
|
||||
android:paddingRight="@dimen/container_fastscroll_thumb_max_width">
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@drawable/all_apps_divider"
|
||||
android:layout_gravity="center"
|
||||
android:layout_gravity="bottom"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
</FrameLayout>
|
||||
@@ -82,7 +82,7 @@ public class AppDiscoveryItemView extends RelativeLayout {
|
||||
mPrice.setText(info.priceFormatted != null ? info.priceFormatted : "");
|
||||
mReviewCount.setVisibility(SHOW_REVIEW_COUNT ? View.VISIBLE : View.GONE);
|
||||
if (info.rating >= 0) {
|
||||
mRatingText.setText(new DecimalFormat("#.#").format(info.rating));
|
||||
mRatingText.setText(new DecimalFormat("#.0").format(info.rating));
|
||||
mRatingView.setRating(info.rating);
|
||||
mRatingView.setVisibility(View.VISIBLE);
|
||||
String reviewCountFormatted = NumberFormat.getInstance().format(info.reviewCount);
|
||||
|
||||
Reference in New Issue
Block a user