forked from mirror/monocles_chat
Round actionbar with accent color
This commit is contained in:
parent
9778e6256c
commit
a9d541d0ea
2 changed files with 5 additions and 5 deletions
|
@ -1048,7 +1048,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
|
|||
final View view = getLayoutInflater().inflate(R.layout.ab_title, null);
|
||||
getSupportActionBar().setCustomView(view);
|
||||
actionBar.setIcon(null);
|
||||
actionBar.setBackgroundDrawable(new ColorDrawable(StyledAttributes.getColor(this, R.attr.color_background_secondary)));
|
||||
//actionBar.setBackgroundDrawable(new ColorDrawable(StyledAttributes.getColor(this, R.attr.color_background_secondary)));
|
||||
actionBar.setDisplayShowTitleEnabled(false);
|
||||
actionBar.setDisplayShowCustomEnabled(true);
|
||||
TextView abtitle = findViewById(android.R.id.text1);
|
||||
|
@ -1124,8 +1124,8 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
|
|||
}
|
||||
actionBar.setDisplayShowCustomEnabled(false);
|
||||
actionBar.setTitle(null);
|
||||
actionBar.setIcon(R.drawable.logo_800);
|
||||
//actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.header_background)));
|
||||
actionBar.setIcon(R.drawable.logo_toolbar_white);
|
||||
actionBar.setBackgroundDrawable(ContextCompat.getDrawable(this, R.drawable.toolbar_bubble_light));
|
||||
actionBar.setDisplayHomeAsUpEnabled(false);
|
||||
ActionBarUtil.resetCustomActionBarOnClickListeners(binding.toolbar);
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
<corners
|
||||
android:topLeftRadius="0dp"
|
||||
android:topRightRadius="0dp"
|
||||
android:bottomRightRadius="30dp"
|
||||
android:bottomLeftRadius="30dp" />
|
||||
android:bottomRightRadius="16dp"
|
||||
android:bottomLeftRadius="16dp" />
|
||||
<padding
|
||||
android:bottom="2dp"
|
||||
android:left="6dp"
|
||||
|
|
Loading…
Add table
Reference in a new issue