ui wip
BIN
res/drawable-hdpi/ic_action_add_group_holo_dark.png
Normal file
After Width: | Height: | Size: 876 B |
BIN
res/drawable-hdpi/ic_action_add_group_holo_light.png
Normal file
After Width: | Height: | Size: 968 B |
BIN
res/drawable-hdpi/ic_menu_accept_holo_dark.png
Normal file
After Width: | Height: | Size: 401 B |
BIN
res/drawable-hdpi/ic_menu_accept_holo_light.png
Normal file
After Width: | Height: | Size: 420 B |
BIN
res/drawable-hdpi/ic_menu_remove_holo_light.png
Normal file
After Width: | Height: | Size: 448 B |
BIN
res/drawable-mdpi/ic_action_add_group_holo_dark.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
res/drawable-mdpi/ic_action_add_group_holo_light.png
Normal file
After Width: | Height: | Size: 660 B |
BIN
res/drawable-mdpi/ic_menu_accept_holo_dark.png
Normal file
After Width: | Height: | Size: 246 B |
BIN
res/drawable-mdpi/ic_menu_accept_holo_light.png
Normal file
After Width: | Height: | Size: 325 B |
BIN
res/drawable-mdpi/ic_menu_remove_holo_light.png
Normal file
After Width: | Height: | Size: 282 B |
BIN
res/drawable-xhdpi/ic_action_add_group_holo_dark.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-xhdpi/ic_action_add_group_holo_light.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
res/drawable-xhdpi/ic_menu_accept_holo_dark.png
Normal file
After Width: | Height: | Size: 475 B |
BIN
res/drawable-xhdpi/ic_menu_accept_holo_light.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
res/drawable-xhdpi/ic_menu_remove_holo_light.png
Normal file
After Width: | Height: | Size: 513 B |
BIN
res/drawable-xxhdpi/ic_action_add_group_holo_dark.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-xxhdpi/ic_action_add_group_holo_light.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
res/drawable-xxhdpi/ic_action_add_person.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-xxhdpi/ic_menu_accept_holo_dark.png
Normal file
After Width: | Height: | Size: 619 B |
BIN
res/drawable-xxhdpi/ic_menu_accept_holo_light.png
Normal file
After Width: | Height: | Size: 649 B |
BIN
res/drawable-xxhdpi/ic_menu_remove_holo_light.png
Normal file
After Width: | Height: | Size: 681 B |
45
res/layout/group_create_activity.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="20dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/group_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:hint="Group name"
|
||||
android:layout_marginBottom="20dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/group_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="Add people"
|
||||
android:padding="10dp" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/add_people_button"
|
||||
android:background="#00ffffff"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingRight="15dp"
|
||||
android:src="@drawable/ic_action_add_person"
|
||||
android:layout_alignParentRight="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/selected_contacts_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
16
res/layout/push_contact_selection_activity.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout android:layout_gravity="center"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:orientation="vertical"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<fragment
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/contact_selection_list_fragment"
|
||||
android:name="org.thoughtcrime.securesms.PushContactSelectionListFragment">
|
||||
</fragment>
|
||||
|
||||
</LinearLayout>
|
20
res/layout/push_contact_selection_list_activity.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ListView android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:fastScrollEnabled="true" />
|
||||
|
||||
<TextView android:id="@android:id/empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center|center_vertical"
|
||||
android:layout_marginTop="15dp"
|
||||
android:text="@string/contact_selection_group_activity__finding_contacts"
|
||||
android:textSize="20sp" />
|
||||
|
||||
</LinearLayout>
|
60
res/layout/push_contact_selection_list_item.xml
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||
android:paddingLeft="14dip"
|
||||
android:paddingRight="25dip">
|
||||
|
||||
<TextView android:id="@+id/label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="8dip"
|
||||
android:layout_marginTop="-8dip"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textStyle="bold"
|
||||
android:visibility = "gone"
|
||||
/>
|
||||
|
||||
<TextView android:id="@+id/number"
|
||||
android:visibility = "visible"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dip"
|
||||
android:layout_marginTop="-8dip"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:fontFamily="sans-serif-light"
|
||||
/>
|
||||
|
||||
<TextView android:id="@+id/name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/number"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginBottom="1dip"
|
||||
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:gravity="center_vertical|left"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/check_box"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="13dp"
|
||||
android:focusable="false"
|
||||
android:clickable="false" />
|
||||
|
||||
</RelativeLayout>
|
34
res/layout/selected_recipient_list_item.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:padding="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/phone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_below="@id/name"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:fontFamily="sans-serif-light" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/delete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="#00ffffff"
|
||||
android:src="@drawable/ic_menu_remove_holo_light" />
|
||||
|
||||
</RelativeLayout>
|
10
res/menu/group_create.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:title="CREATE"
|
||||
android:id="@+id/menu_create_group"
|
||||
android:icon="@drawable/ic_menu_accept_holo_light"
|
||||
android:showAsAction="always|withText"/>
|
||||
|
||||
</menu>
|
@@ -5,6 +5,10 @@
|
||||
android:icon="?attr/menu_new_conversation_icon"
|
||||
android:showAsAction="always" />
|
||||
|
||||
<item android:title="New Group"
|
||||
android:id="@+id/menu_new_group"
|
||||
android:icon="?attr/menu_new_group_icon" />
|
||||
|
||||
<item android:title="@string/text_secure_normal__menu_clear_passphrase"
|
||||
android:id="@+id/menu_clear_passphrase"
|
||||
android:icon="@android:drawable/ic_menu_close_clear_cancel" />
|
||||
|
@@ -33,6 +33,7 @@
|
||||
<attr name="navigation_drawer_shadow" format="reference"/>
|
||||
|
||||
<attr name="menu_new_conversation_icon" format="reference" />
|
||||
<attr name="menu_new_group_icon" format="reference" />
|
||||
<attr name="menu_search_icon" format="reference" />
|
||||
<attr name="menu_call_icon" format="reference" />
|
||||
<attr name="menu_unlock_icon" format="reference" />
|
||||
|
@@ -370,7 +370,8 @@
|
||||
<!-- contact_selection_group_activity -->
|
||||
<!-- contact_selection_list_activity -->
|
||||
<string name="contact_selection_group_activity__no_contacts">No contacts.</string>
|
||||
|
||||
<string name="contact_selection_group_activity__finding_contacts">Finding contacts...</string>
|
||||
|
||||
<!-- ContactSelectionListFragment-->
|
||||
<string name="ContactSelectionlistFragment_select_for">Select for</string>
|
||||
|
||||
|
@@ -27,6 +27,7 @@
|
||||
<item name="conversation_keyboard_toggle">@drawable/ic_ime_dark</item>
|
||||
|
||||
<item name="menu_new_conversation_icon">@drawable/ic_action_new_holo_light</item>
|
||||
<item name="menu_new_group_icon">@drawable/ic_action_add_group_holo_light</item>
|
||||
<item name="menu_search_icon">@drawable/ic_menu_search_holo_light</item>
|
||||
<item name="menu_call_icon">@drawable/ic_menu_call_holo_light</item>
|
||||
<item name="menu_unlock_icon">@drawable/ic_menu_unlock_holo_light</item>
|
||||
@@ -75,6 +76,7 @@
|
||||
<item name="conversation_keyboard_toggle">@drawable/ic_ime_light</item>
|
||||
|
||||
<item name="menu_new_conversation_icon">@drawable/ic_action_new_holo_dark</item>
|
||||
<item name="menu_new_group_icon">@drawable/ic_action_add_group_holo_dark</item>
|
||||
<item name="menu_search_icon">@drawable/ic_menu_search_holo_dark</item>
|
||||
<item name="menu_call_icon">@drawable/ic_menu_call_holo_dark</item>
|
||||
<item name="menu_unlock_icon">@drawable/ic_menu_unlock_holo_dark</item>
|
||||
|