A (175)
560 CHAPTER 15: Developing for Android Wearable Devices Figure 15-8. Copy the earthtime240.png image asset into the /res/drawabl ...
CHAPTER 15: Developing for Android Wearable Devices 561 Next, add the android:background parameter, referencing the earthtime im ...
562 CHAPTER 15: Developing for Android Wearable Devices There is one problem, however; the Graphical Layout Editor is set to use ...
CHAPTER 15: Developing for Android Wearable Devices 563 EarthTime Code: MainActivity.java Class Now you will install your standa ...
564 CHAPTER 15: Developing for Android Wearable Devices This represents the two lines of code that are required to get the activ ...
CHAPTER 15: Developing for Android Wearable Devices 565 If for some reason the Neptune Pine AVD emulator does not start, use the ...
566 CHAPTER 15: Developing for Android Wearable Devices If you don’t find the EarthTime icon on any of the screens, simply use t ...
CHAPTER 15: Developing for Android Wearable Devices 567 Once you do this, you will get the F: and a G: drives and icons in your ...
568 CHAPTER 15: Developing for Android Wearable Devices Right-click on the G: drive, as shown in Figure 15-20, and use the Paste ...
CHAPTER 15: Developing for Android Wearable Devices 569 Once the APK file is on your Neptune Pine SD card, you can click on the ...
570 CHAPTER 15: Developing for Android Wearable Devices Creating Your EarthTime Application Icons Now let’s get into detailing t ...
CHAPTER 15: Developing for Android Wearable Devices 571 This edit will change the launcher icon asset reference from pointing to ...
572 CHAPTER 15: Developing for Android Wearable Devices There are two approaches to this—one is to depend on the Android Support ...
CHAPTER 15: Developing for Android Wearable Devices 573 This 2MB file is six times bigger, but also supports six types of Androi ...
574 CHAPTER 15: Developing for Android Wearable Devices Next, right-click on the res/values/strings.xml file to Open it. Add fou ...
CHAPTER 15: Developing for Android Wearable Devices 575 Figure 15-28. Add a line of space under the tag and use a left chevron ...
576 CHAPTER 15: Developing for Android Wearable Devices It is important to note that you could have added an android:layout_grav ...
CHAPTER 15: Developing for Android Wearable Devices 577 Figure 15-31. Copy and paste the marsIcon ImageView underneath itself an ...
578 CHAPTER 15: Developing for Android Wearable Devices Figure 15-33. Copy and paste the neptuneIcon ImageView underneath itself ...
CHAPTER 15: Developing for Android Wearable Devices 579 Again, since “left” is still one of the default (top,left or 0,0) alignm ...
«
24
25
26
27
28
29
30
31
32
33
»
Free download pdf