I am trying to create a tile on the Microsoft Band 2 using Android Studio. I was wondering if it is possible to add images to a button like I would be able to on an android phone. My other question is about checkboxes. Are there checkboxes on the band? If not is there another way to get similar functionality? I need users to be able to click multiple things for a single question. Any help would be greatly appreciated.
Images and Checkboxes with the Microsoft Band 2
76 Views Asked by dukefan97515 At
1
There are 1 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in CHECKBOX
- status table for all entries (even in different dates) in database changing value when all checkboxes are checked
- onEdit() 'row is not defined' error using checkboxes
- How to listen for LightDOM Label "FOR=" events via ShadowDOM Custom Element
- How to fix this Row nested in Column exception issue in Flutter?
- I need assistance with scripting between tabs for Google Sheets
- Angular:Mat-tree - how to select all checkbox during initial load
- Prevent checking checkbox input in contentEditable from stealing focus from editor in Android webview?
- In Flutter, how to set TextField value based on the selection of a CheckboxListTile?
- ASP.NET CheckBox to call code behind after js confirm() returns true
- Why isn't Formik group checkbox working if the initial state is loaded from a variable?
- onEdit() to exclude header row
- How to resolve is_selected() not returning True even if the checkbox is selected?
- Checkbox symbol for a to do list in Javascript
- React Native Elements CheckBox Component Not Displaying Checkmark
- how to check if checkbox checked using Selenium
Related Questions in MICROSOFT-BAND
- How to connect to the microsoft band with band sdk without the microsoft health app on my android to get real time data
- Access to raw data from Microsot band 2
- Is a hidden reference breaking my Microsoft Band project build?
- Microsoft Health SDK expired SSL Certificate
- How to develop windows app using sensor data of Microsoft Band even after SDK for the same is not available?
- Microsoft Band 2 stops working with unknown error: "only 100 simultaneous commands can be sent at once"
- MS Band Tile - Chevron Indicator
- Microsoft cloud health api not returning refresh token next time
- Spoofing smartphone sensordata using a wearable's sensordata to make use of the Google activity recognition api
- Can't access MS cloud api
- The type or namespace SpeechRecognition does not exist in the namespace Windows.Media -- Universal Application (Windows 8.1)
- Microsoft Band Cloud API Socket Timeouts
- Access to Microsoft Band SDK (PC and Android)
- How do I get data sensor data from Microsoft band 2 to a Raspberry pi without SDK? (To a programming language)
- Is there a way to synchronize clocks with the Microsoft Band using the SDK?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For the checkboxes I would do a layout where you have a small text button next to a larger text button within a layout. When the large text button gets clicked, call an update function from your receiver that changes the text of the smaller button (possibly an asterisk or some other character that looks like a bullet point and it seems to appear and disappear). For example, your update function could look like this (slight modification from the example tile code given in the SDK):
For multiple buttons you might need a map of button to boolean and switch the corresponding ones. If you can't figure that out, comment and I'll follow up.
Originally I was thinking it would make sense to change the background color, but that doesn't seem to be supported by the sdk.
As for using an image for the background, I don't think that is currently supported, just from looking at the function definitions in the sdk source code, but I would actually love to know that for sure as well.
Edit: I found this shortly after posting. It appears you can use bitmaps as masks, but I am not sure how to do that. Hopefully someone will come along and tell us because I would like to know too :)
"8.5.1 Icons Used as FilledButton Masks By defining an Icon bitmap that acts as a mask and then superimposing that Icon over a FilledButton (see Negative Margins ) , you can create the effect of the Icon image becoming visible when the button is pressed. That is, the Icon bitmap is defined to have transparent pixels for the desired image, and opaque pixels els e where . When the user presses the FilledButton , the FilledButton color changes but shows through only the transparent portions of the Icon bitmap. "
And here is other relevant code if you want it: