More account interactions
This commit is contained in:
@@ -23,9 +23,39 @@ public class M3AlertDialogBuilder extends AlertDialog.Builder{
|
||||
Button btn=alert.getButton(AlertDialog.BUTTON_POSITIVE);
|
||||
if(btn!=null){
|
||||
View buttonBar=(View) btn.getParent();
|
||||
buttonBar.setPadding(V.dp(16), V.dp(24), V.dp(16), V.dp(24));
|
||||
buttonBar.setPadding(V.dp(16), 0, V.dp(16), V.dp(24));
|
||||
((View)buttonBar.getParent()).setPadding(0, 0, 0, 0);
|
||||
}
|
||||
// hacc
|
||||
int titleID=getContext().getResources().getIdentifier("title_template", "id", "android");
|
||||
if(titleID!=0){
|
||||
View title=alert.findViewById(titleID);
|
||||
if(title!=null){
|
||||
int pad=V.dp(24);
|
||||
title.setPadding(pad, pad, pad, pad);
|
||||
}
|
||||
}
|
||||
int titleDividerID=getContext().getResources().getIdentifier("titleDividerNoCustom", "id", "android");
|
||||
if(titleDividerID!=0){
|
||||
View divider=alert.findViewById(titleDividerID);
|
||||
if(divider!=null){
|
||||
divider.getLayoutParams().height=0;
|
||||
}
|
||||
}
|
||||
int scrollViewID=getContext().getResources().getIdentifier("scrollView", "id", "android");
|
||||
if(scrollViewID!=0){
|
||||
View scrollView=alert.findViewById(scrollViewID);
|
||||
if(scrollView!=null){
|
||||
scrollView.setPadding(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
int messageID=getContext().getResources().getIdentifier("message", "id", "android");
|
||||
if(messageID!=0){
|
||||
View message=alert.findViewById(messageID);
|
||||
if(message!=null){
|
||||
message.setPadding(message.getPaddingLeft(), message.getPaddingTop(), message.getPaddingRight(), V.dp(24));
|
||||
}
|
||||
}
|
||||
return alert;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user