Use system clock font for dream clock.
Use font specified in UX design and in sync with the Lock Screen clock. Bug: 215188395 Test: manual Change-Id: Ide25c26125ef40860fe9f7682abbdcb15ac88565
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="@dimen/dream_overlay_complication_clock_time_padding_left"
|
||||
android:fontFamily="sans-serif-thin"
|
||||
android:fontFamily="@font/clock"
|
||||
android:textColor="@android:color/white"
|
||||
android:format12Hour="h:mm"
|
||||
android:format24Hour="kk:mm"
|
||||
|
||||
@@ -22,6 +22,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextClock;
|
||||
|
||||
import com.android.internal.util.Preconditions;
|
||||
import com.android.systemui.R;
|
||||
@@ -78,6 +79,8 @@ public interface DreamClockTimeComplicationComponent {
|
||||
"clock_time_complication_layout_params";
|
||||
// Order weight of insert into parent container
|
||||
int INSERT_ORDER_WEIGHT = 0;
|
||||
String TAG_WEIGHT = "'wght' ";
|
||||
int WEIGHT = 200;
|
||||
|
||||
/**
|
||||
* Provides the complication view.
|
||||
@@ -86,10 +89,12 @@ public interface DreamClockTimeComplicationComponent {
|
||||
@DreamClockTimeComplicationScope
|
||||
@Named(DREAM_CLOCK_TIME_COMPLICATION_VIEW)
|
||||
static View provideComplicationView(LayoutInflater layoutInflater) {
|
||||
return Preconditions.checkNotNull(
|
||||
layoutInflater.inflate(R.layout.dream_overlay_complication_clock_time,
|
||||
null, false),
|
||||
final TextClock view = Preconditions.checkNotNull((TextClock)
|
||||
layoutInflater.inflate(R.layout.dream_overlay_complication_clock_time,
|
||||
null, false),
|
||||
"R.layout.dream_overlay_complication_clock_time did not properly inflated");
|
||||
view.setFontVariationSettings(TAG_WEIGHT + WEIGHT);
|
||||
return view;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user