Android Open Source - AndroidStudioSandbox Wear Home Activity






From Project

Back to project page AndroidStudioSandbox.

License

The source code is released under:

Apache License

If you think the Android project AndroidStudioSandbox listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package at.mg.androidstudiosandbox;
/*  www  . j a v a  2s .  c o  m*/
import android.app.Activity;
import android.os.Bundle;
import android.support.wearable.view.WatchViewStub;
import android.widget.TextView;

public class WearHomeActivity extends Activity {

    private TextView mTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wear_home);
        final WatchViewStub stub = (WatchViewStub) findViewById(R.id.watch_view_stub);
        stub.setOnLayoutInflatedListener(new WatchViewStub.OnLayoutInflatedListener() {
            @Override
            public void onLayoutInflated(WatchViewStub stub) {
                mTextView = (TextView) stub.findViewById(R.id.text);
            }
        });
    }
}




Java Source Code List

at.mg.androidstudiosandbox.AndroidStudioShortcuts.java
at.mg.androidstudiosandbox.ApplicationTest.java
at.mg.androidstudiosandbox.WearHomeActivity.java
at.mg.androidstudiosandbox.activities.HomeActivity.java
at.mg.androidstudiosandbox.activities.ToolbarActivity.java
at.mg.androidstudiosandbox.activities.VoiceSearchableActivity.java
at.mg.androidstudiosandbox.adapters.RecyclerAdapter.java
at.mg.androidstudiosandbox.fragments.NavigationDrawerFragment.java
at.mg.androidstudiosandbox.fragments.PlaceholderFragment.java
at.mg.androidstudiosandbox.fragments.RecyclerFragment.java
at.mg.androidstudiosandbox.things.RecyclerDataObject.java
at.mg.androidstudiosandbox.things.RecyclerListViewHolder.java