Android Open Source - app_syncit Smarter Fragment






From Project

Back to project page app_syncit.

License

The source code is released under:

MIT License

If you think the Android project app_syncit 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.feality.app.syncit.fragments;
//ww  w  .  j  ava2  s  . c o  m
import android.app.Fragment;
import android.view.View;

/**
 * Created by Filip on 2014-09-10.
 */
public class SmarterFragment extends Fragment {

    public <T> T get(View v, int id, Class<T> clz){
        return clz.cast(v.findViewById(id));
    }

    public <T> T get(int id, Class<T> clz){
        final View view = getView();
        if (view != null) {
            return clz.cast(view.findViewById(id));
        }
        throw new RuntimeException("No layout to get view from");
    }
}




Java Source Code List

com.feality.app.syncit.ApplicationTest.java
com.feality.app.syncit.FileUtils.java
com.feality.app.syncit.LaunchActivity.java
com.feality.app.syncit.WifiP2pActionListener.java
com.feality.app.syncit.WifiP2pUiListener.java
com.feality.app.syncit.fragments.DiscoveryFragment.java
com.feality.app.syncit.fragments.MediaFragment.java
com.feality.app.syncit.fragments.SmarterFragment.java
com.feality.app.syncit.net.NetworkActions.java
com.feality.app.syncit.net.NetworkSyncService.java
com.feality.app.syncit.net.PeerToPeerHandler.java
com.todddavies.components.progressbar.ProgressWheel.java