material actionbar and fab

// FREEBIE
This commit is contained in:
Jake McGinty
2015-01-20 21:26:58 -10:00
parent 62816ee51a
commit 810abe0275
287 changed files with 211 additions and 44358 deletions

View File

@@ -21,7 +21,6 @@ import org.thoughtcrime.securesms.R;
public class ReminderView extends LinearLayout {
private ViewGroup container;
private ImageButton cancel;
private Button ok;
private TextView title;
private TextView text;
private ImageView icon;
@@ -46,7 +45,6 @@ public class ReminderView extends LinearLayout {
LayoutInflater.from(getContext()).inflate(R.layout.reminder_header, this, true);
container = (ViewGroup ) findViewById(R.id.container);
cancel = (ImageButton) findViewById(R.id.cancel);
ok = (Button ) findViewById(R.id.ok);
title = (TextView ) findViewById(R.id.reminder_title);
text = (TextView ) findViewById(R.id.reminder_text);
icon = (ImageView ) findViewById(R.id.icon);
@@ -58,7 +56,7 @@ public class ReminderView extends LinearLayout {
text.setText(reminder.getTextResId());
if (reminder.isDismissable()) {
ok.setOnClickListener(reminder.getOkListener());
this.setOnClickListener(reminder.getOkListener());
cancel.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
@@ -68,7 +66,6 @@ public class ReminderView extends LinearLayout {
});
container.setVisibility(View.VISIBLE);
} else {
ok.setVisibility(View.GONE);
cancel.setVisibility(View.GONE);
}
}