From c8dc7bf9c8757f80b9e7fdcdf2e607080bfe75ad Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sat, 11 Feb 2017 02:50:18 +0100 Subject: [PATCH] wear menu list layout --- .idea/misc.xml | 2 +- .../interaction/utils/WearableListItemLayout.java | 8 ++++---- wear/src/main/res/layout/list_item.xml | 9 +++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index fbb68289f4..5d19981032 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/wear/src/main/java/info/nightscout/androidaps/interaction/utils/WearableListItemLayout.java b/wear/src/main/java/info/nightscout/androidaps/interaction/utils/WearableListItemLayout.java index a97305d7e2..89925cc9b8 100644 --- a/wear/src/main/java/info/nightscout/androidaps/interaction/utils/WearableListItemLayout.java +++ b/wear/src/main/java/info/nightscout/androidaps/interaction/utils/WearableListItemLayout.java @@ -17,7 +17,7 @@ import info.nightscout.androidaps.R; public class WearableListItemLayout extends LinearLayout implements WearableListView.OnCenterProximityListener { - private ImageView mCircle; + //private ImageView mCircle; private TextView mName; private final float mFadedTextAlpha; @@ -45,19 +45,19 @@ public class WearableListItemLayout extends LinearLayout @Override protected void onFinishInflate() { super.onFinishInflate(); - mCircle = (ImageView) findViewById(R.id.circle); + //mCircle = (ImageView) findViewById(R.id.circle); mName = (TextView) findViewById(R.id.actionitem); } @Override public void onCenterPosition(boolean animate) { mName.setAlpha(1f); - ((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); + //((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); } @Override public void onNonCenterPosition(boolean animate) { - ((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); + //((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); mName.setAlpha(mFadedTextAlpha); } } diff --git a/wear/src/main/res/layout/list_item.xml b/wear/src/main/res/layout/list_item.xml index 6bb172b3d9..a6193efc3e 100644 --- a/wear/src/main/res/layout/list_item.xml +++ b/wear/src/main/res/layout/list_item.xml @@ -3,17 +3,18 @@ android:gravity="center_vertical" android:layout_width="match_parent" android:layout_height="80dp"> - + android:src="@drawable/wl_circle"/-->