wear menu list layout
This commit is contained in:
parent
9dae8b4e56
commit
c8dc7bf9c8
|
@ -37,7 +37,7 @@
|
||||||
<ConfirmationsSetting value="0" id="Add" />
|
<ConfirmationsSetting value="0" id="Add" />
|
||||||
<ConfirmationsSetting value="0" id="Remove" />
|
<ConfirmationsSetting value="0" id="Remove" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
@ -17,7 +17,7 @@ import info.nightscout.androidaps.R;
|
||||||
public class WearableListItemLayout extends LinearLayout
|
public class WearableListItemLayout extends LinearLayout
|
||||||
implements WearableListView.OnCenterProximityListener {
|
implements WearableListView.OnCenterProximityListener {
|
||||||
|
|
||||||
private ImageView mCircle;
|
//private ImageView mCircle;
|
||||||
private TextView mName;
|
private TextView mName;
|
||||||
|
|
||||||
private final float mFadedTextAlpha;
|
private final float mFadedTextAlpha;
|
||||||
|
@ -45,19 +45,19 @@ public class WearableListItemLayout extends LinearLayout
|
||||||
@Override
|
@Override
|
||||||
protected void onFinishInflate() {
|
protected void onFinishInflate() {
|
||||||
super.onFinishInflate();
|
super.onFinishInflate();
|
||||||
mCircle = (ImageView) findViewById(R.id.circle);
|
//mCircle = (ImageView) findViewById(R.id.circle);
|
||||||
mName = (TextView) findViewById(R.id.actionitem);
|
mName = (TextView) findViewById(R.id.actionitem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCenterPosition(boolean animate) {
|
public void onCenterPosition(boolean animate) {
|
||||||
mName.setAlpha(1f);
|
mName.setAlpha(1f);
|
||||||
((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor);
|
//((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNonCenterPosition(boolean animate) {
|
public void onNonCenterPosition(boolean animate) {
|
||||||
((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor);
|
//((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor);
|
||||||
mName.setAlpha(mFadedTextAlpha);
|
mName.setAlpha(mFadedTextAlpha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,17 +3,18 @@
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="80dp">
|
android:layout_height="80dp">
|
||||||
<ImageView
|
<!-- ImageView
|
||||||
android:id="@+id/circle"
|
android:id="@+id/circle"
|
||||||
android:layout_height="20dp"
|
android:layout_height="20dp"
|
||||||
android:layout_margin="16dp"
|
android:layout_margin="16dp"
|
||||||
android:layout_width="20dp"
|
android:layout_width="20dp"
|
||||||
android:src="@drawable/wl_circle"/>
|
android:src="@drawable/wl_circle"/-->
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/actionitem"
|
android:id="@+id/actionitem"
|
||||||
android:gravity="center_vertical|left"
|
android:gravity="center_vertical|center_horizontal"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:fontFamily="sans-serif-condensed-light"
|
android:fontFamily="sans-serif-condensed-light"
|
||||||
android:lineSpacingExtra="-4sp"
|
android:lineSpacingExtra="-4sp"
|
||||||
|
|
Loading…
Reference in a new issue