mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-21 09:28:27 +00:00
Update look for RecipientsPanel.
1) Make the "add contacts" graphic more holo-ific. 2) Adjust the graphic position on holo-themed devices.
This commit is contained in:
parent
b377fe84df
commit
1ac1cec634
BIN
res/drawable-hdpi/ic_menu_add_field_holo_light.png
Normal file
BIN
res/drawable-hdpi/ic_menu_add_field_holo_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-mdpi/ic_menu_add_field_holo_light.png
Normal file
BIN
res/drawable-mdpi/ic_menu_add_field_holo_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 909 B |
BIN
res/drawable-xhdpi/ic_menu_add_field_holo_light.png
Normal file
BIN
res/drawable-xhdpi/ic_menu_add_field_holo_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@ -26,7 +26,7 @@
|
||||
android:layout_height="35dip"
|
||||
android:layout_marginRight="5dip"
|
||||
android:layout_marginTop="4dip"
|
||||
android:src="@drawable/ic_add"
|
||||
android:src="@drawable/ic_menu_add_field_holo_light"
|
||||
android:layout_alignRight="@id/recipients_text"
|
||||
android:maxWidth="32dip"
|
||||
android:maxHeight="32dip" />
|
||||
|
@ -16,9 +16,12 @@
|
||||
*/
|
||||
package org.thoughtcrime.securesms.components;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.RelativeLayout;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.contacts.RecipientsAdapter;
|
||||
@ -28,12 +31,9 @@ import org.thoughtcrime.securesms.recipients.RecipientFactory;
|
||||
import org.thoughtcrime.securesms.recipients.RecipientFormattingException;
|
||||
import org.thoughtcrime.securesms.recipients.Recipients;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.RelativeLayout;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Panel component combining both an editable field with a button for
|
||||
@ -102,6 +102,11 @@ public class RecipientsPanel extends RelativeLayout {
|
||||
LayoutInflater inflater = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
inflater.inflate(R.layout.recipients_panel, this, true);
|
||||
|
||||
View imageButton = findViewById(R.id.contacts_button);
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH)
|
||||
((MarginLayoutParams) imageButton.getLayoutParams()).topMargin = 0;
|
||||
|
||||
panel = findViewById(R.id.recipients_panel);
|
||||
initRecipientsEditor();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user