feat(glass): add weather icon to live card
@@ -194,9 +194,11 @@ public final class HudService extends Service {
|
|||||||
|
|
||||||
if (!hasFeed) {
|
if (!hasFeed) {
|
||||||
rv.setViewVisibility(R.id.hud_right_col, View.GONE);
|
rv.setViewVisibility(R.id.hud_right_col, View.GONE);
|
||||||
|
rv.setViewVisibility(R.id.hud_divider, View.GONE);
|
||||||
rv.setViewVisibility(R.id.hud_more_badge, View.GONE);
|
rv.setViewVisibility(R.id.hud_more_badge, View.GONE);
|
||||||
} else {
|
} else {
|
||||||
rv.setViewVisibility(R.id.hud_right_col, View.VISIBLE);
|
rv.setViewVisibility(R.id.hud_right_col, View.VISIBLE);
|
||||||
|
rv.setViewVisibility(R.id.hud_divider, View.VISIBLE);
|
||||||
if (more > 0) {
|
if (more > 0) {
|
||||||
rv.setViewVisibility(R.id.hud_more_badge, View.VISIBLE);
|
rv.setViewVisibility(R.id.hud_more_badge, View.VISIBLE);
|
||||||
rv.setTextViewText(R.id.hud_more_badge, "+" + more);
|
rv.setTextViewText(R.id.hud_more_badge, "+" + more);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -61,9 +61,9 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/hud_weather_icon"
|
android:id="@+id/hud_weather_icon"
|
||||||
android:layout_width="32dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="32dp"
|
android:layout_height="24dp"
|
||||||
android:layout_marginRight="8dp"
|
android:layout_marginRight="6dp"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:contentDescription="@string/app_name" />
|
android:contentDescription="@string/app_name" />
|
||||||
|
|
||||||
@@ -80,12 +80,20 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/hud_divider"
|
||||||
|
android:layout_width="1dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:layout_marginRight="16dp"
|
||||||
|
android:background="#404040" />
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/hud_right_col"
|
android:id="@+id/hud_right_col"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:layout_marginLeft="16dp">
|
android:layout_marginLeft="0dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/hud_more_badge"
|
android:id="@+id/hud_more_badge"
|
||||||
@@ -108,7 +116,7 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:fontFamily="sans-serif-light"
|
android:fontFamily="sans-serif-light"
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:singleLine="true"
|
android:maxLines="100"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textSize="32sp" />
|
android:textSize="32sp" />
|
||||||
|
|
||||||
@@ -120,7 +128,7 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:fontFamily="sans-serif-light"
|
android:fontFamily="sans-serif-light"
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:singleLine="true"
|
android:maxLines="100"
|
||||||
android:textColor="#808080"
|
android:textColor="#808080"
|
||||||
android:textSize="24sp" />
|
android:textSize="24sp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|||||||