This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.content.Context; | |
import android.hardware.display.DisplayManager; | |
import android.os.Bundle; | |
import android.view.Display; | |
/** | |
* A base activity for watch faces that have callbacks for the various screen states (dim, awake, and off) | |
* as well as a callback for when the watch face is removed. | |
* <p/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this... | |
@Override | |
public void onMessageReceived(MessageEvent messageEvent) { | |
Log.v(TAG, "Message received on wear: " + messageEvent.getPath()); | |
if(messageEvent.getPath().endsWith("connected")){ | |
findViewById(R.id.progress).setVisibility(View.GONE); // Line #143 | |
findViewById(R.id.on_off_layout).setVisibility(View.VISIBLE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class AddViewsToFakeListTask extends AsyncTask<Void, View, Void>{ | |
private ListAdapter adapter; | |
private LinearLayout view; | |
public AddViewsToFakeListTask(LinearLayout view, ListAdapter adapter){ | |
this.view = view; | |
this.adapter = adapter; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<org.example.text.QuickReturnScrollView | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:gravity="center" | |
android:id="@+id/root_scroll" | |
android:layout_height="match_parent"> |