use of android.support.wearable.view.CircledImageView in project Talon-for-Twitter by klinker24.
the class RetweetButtonFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_retweet_button, parent, false);
CircledImageView button = (CircledImageView) view.findViewById(R.id.retweet_button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
((WearActivity) getActivity()).sendRetweetRequest(getArguments().getLong(ARG_TWEET_ID));
}
});
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());
int accentColor = sharedPreferences.getInt(KeyProperties.KEY_ACCENT_COLOR, getResources().getColor(R.color.orange_accent_color));
button.setCircleColor(accentColor);
return view;
}
Aggregations