We did not want to take this example too far, so in the interest of simplicity, we decided to provide a configurable watch face background color. Clicking on the gear icon from the watch face settings lets us pick the background color, as shown here:
The WatchFaceConfigActivity
class renders a simple color picker to determine the background color:
public class WatchFaceConfigActivity extends Activity implements WearableListView.ClickListener, WearableListView.OnScrollListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_digital_config); mHeader = (TextView) findViewById(R.id.header); WearableListView listView = (WearableListView) findViewById(R.id.color_picker); BoxInsetLayout content = (BoxInsetLayout) findViewById(R.id.content); } }
Here's a screenshot of the watch face when we select a background...