mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-22 09:48:26 +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 |
@ -21,12 +21,12 @@
|
|||||||
android:layout_width="fill_parent"/>
|
android:layout_width="fill_parent"/>
|
||||||
|
|
||||||
<ImageButton android:id="@+id/contacts_button"
|
<ImageButton android:id="@+id/contacts_button"
|
||||||
android:background="#00000000"
|
android:background="#00000000"
|
||||||
android:layout_width="40dip"
|
android:layout_width="40dip"
|
||||||
android:layout_height="35dip"
|
android:layout_height="35dip"
|
||||||
android:layout_marginRight="5dip"
|
android:layout_marginRight="5dip"
|
||||||
android:layout_marginTop="4dip"
|
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:layout_alignRight="@id/recipients_text"
|
||||||
android:maxWidth="32dip"
|
android:maxWidth="32dip"
|
||||||
android:maxHeight="32dip" />
|
android:maxHeight="32dip" />
|
||||||
|
@ -16,9 +16,12 @@
|
|||||||
*/
|
*/
|
||||||
package org.thoughtcrime.securesms.components;
|
package org.thoughtcrime.securesms.components;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import android.content.Context;
|
||||||
import java.util.LinkedList;
|
import android.os.Build;
|
||||||
import java.util.List;
|
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.R;
|
||||||
import org.thoughtcrime.securesms.contacts.RecipientsAdapter;
|
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.RecipientFormattingException;
|
||||||
import org.thoughtcrime.securesms.recipients.Recipients;
|
import org.thoughtcrime.securesms.recipients.Recipients;
|
||||||
|
|
||||||
import android.content.Context;
|
import java.util.Iterator;
|
||||||
import android.util.AttributeSet;
|
import java.util.LinkedList;
|
||||||
import android.util.Log;
|
import java.util.List;
|
||||||
import android.view.LayoutInflater;
|
|
||||||
import android.view.View;
|
|
||||||
import android.widget.RelativeLayout;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Panel component combining both an editable field with a button for
|
* 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);
|
LayoutInflater inflater = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
inflater.inflate(R.layout.recipients_panel, this, true);
|
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);
|
panel = findViewById(R.id.recipients_panel);
|
||||||
initRecipientsEditor();
|
initRecipientsEditor();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user