Android Open Source - Randm Settings Activity






From Project

Back to project page Randm.

License

The source code is released under:

Apache License

If you think the Android project Randm 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 com.malvin.randm;
//from w w w  . ja v  a  2 s.  c o  m
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import butterknife.ButterKnife;
import butterknife.InjectView;

public class SettingsActivity extends ActionBarActivity
{
    @InjectView(R.id.default_toolbar) Toolbar toolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        ButterKnife.inject(this);
        initViews();
    }

    private void initViews()
    {
        setSupportActionBar(toolbar);
        getFragmentManager().beginTransaction().replace(R.id.content, new SettingsPreferenceFragment()).commit();
    }
}




Java Source Code List

com.malvin.randm.ApplicationTest.java
com.malvin.randm.MainActivity.java
com.malvin.randm.SettingsActivity.java
com.malvin.randm.SettingsPreferenceFragment.java