This file contains hidden or 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.content.Context; | |
| import android.graphics.drawable.AnimationDrawable; | |
| import android.graphics.drawable.Drawable; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** | |
| * | |
| * @author Andaluz | |
| * It's free like freedom, but with respect to each other :)' |
This file contains hidden or 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
| public class MyFragment extends Fragment { | |
| @Override | |
| public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle bundle) { | |
| View view = inflater.inflate(R.layout.my_fragment, container, false); | |
| // Find your buttons in view, set up onclicks, set up callbacks to your parent fragment or activity here. | |
| // You can create ViewHolder or separate method for that. | |
| // example of accessing views: TextView textViewExample = (TextView) view.findViewById(R.id.text_view_example); | |
| // textViewExample.setText("example"); |
NewerOlder