Basic navigation drawer support.
BIN
res/drawable-hdpi/contacts_identities_dark.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
res/drawable-hdpi/contacts_identities_light.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
res/drawable-hdpi/drawer_shadow_dark.9.png
Normal file
After Width: | Height: | Size: 171 B |
BIN
res/drawable-hdpi/drawer_shadow_light.9.png
Normal file
After Width: | Height: | Size: 171 B |
BIN
res/drawable-hdpi/ic_drawer.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable-hdpi/import_export_dark.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-hdpi/import_export_light.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-hdpi/my_identity_dark.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-hdpi/my_identity_light.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-mdpi/contacts_identities_dark.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-mdpi/contacts_identities_light.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-mdpi/drawer_shadow_dark.9.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
res/drawable-mdpi/drawer_shadow_light.9.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
res/drawable-mdpi/ic_drawer.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable-mdpi/import_export_dark.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-mdpi/import_export_light.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-mdpi/my_identity_dark.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-mdpi/my_identity_light.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-xhdpi/contacts_identities_dark.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
res/drawable-xhdpi/contacts_identities_light.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
res/drawable-xhdpi/drawer_shadow_dark.9.png
Normal file
After Width: | Height: | Size: 182 B |
BIN
res/drawable-xhdpi/drawer_shadow_light.9.png
Normal file
After Width: | Height: | Size: 182 B |
BIN
res/drawable-xhdpi/ic_drawer.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
res/drawable-xhdpi/import_export_dark.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-xhdpi/import_export_light.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-xhdpi/my_identity_dark.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-xhdpi/my_identity_light.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
@@ -1,13 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical" >
|
||||
<android.support.v4.widget.DrawerLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/drawer_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/fragment_content"
|
||||
android:name="org.thoughtcrime.securesms.ConversationListFragment"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" />
|
||||
android:id="@+id/fragment_content"
|
||||
android:name="org.thoughtcrime.securesms.ConversationListFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
<ListView android:id="@+id/left_drawer"
|
||||
android:layout_width="240dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:choiceMode="singleChoice"
|
||||
android:dividerHeight="1dp"
|
||||
android:background="?navigation_drawer_background"/>
|
||||
</android.support.v4.widget.DrawerLayout>
|
23
res/layout/navigation_drawer_item.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="48dp">
|
||||
|
||||
<ImageView android:id="@+id/navigation_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="12dip"
|
||||
android:layout_marginLeft="16dip"
|
||||
android:contentDescription="Navigation Image"/>
|
||||
|
||||
<TextView android:id="@+id/navigation_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_marginRight="26dp"
|
||||
android:textColor="?navigation_drawer_text_color"/>
|
||||
|
||||
</LinearLayout>
|
@@ -41,12 +41,35 @@
|
||||
<item>@string/preferences__slow</item>
|
||||
<item>@string/preferences__custom</item>
|
||||
</string-array>
|
||||
<string-array name="pref_led_blink_pattern_values"
|
||||
translatable="false">
|
||||
|
||||
<string-array name="pref_led_blink_pattern_values" translatable="false">
|
||||
<item>300,300</item>
|
||||
<item>500,2000</item>
|
||||
<item>3000,3000</item>
|
||||
<item>custom</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
<string-array name="navigation_drawer_text">
|
||||
<item>@string/arrays__import_export</item>
|
||||
<item>@string/arrays__my_identity_key</item>
|
||||
<item>@string/arrays__contact_keys</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="navigation_drawer_values" translatable="false">
|
||||
<item>import_export</item>
|
||||
<item>my_identity_key</item>
|
||||
<item>contact_identity_keys</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="navigation_drawer_icons_light">
|
||||
<item>@drawable/import_export_light</item>
|
||||
<item>@drawable/my_identity_light</item>
|
||||
<item>@drawable/contacts_identities_light</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="navigation_drawer_icons_dark">
|
||||
<item>@drawable/import_export_dark</item>
|
||||
<item>@drawable/my_identity_dark</item>
|
||||
<item>@drawable/contacts_identities_dark</item>
|
||||
</string-array>
|
||||
</resources>
|
@@ -16,4 +16,9 @@
|
||||
<attr name="conversation_send_button" format="reference"/>
|
||||
<attr name="conversation_send_secure_button" format="reference"/>
|
||||
<attr name="conversation_delivered_indicator" format="reference"/>
|
||||
|
||||
<attr name="navigation_drawer_background" format="reference|color"/>
|
||||
<attr name="navigation_drawer_text_color" format="color"/>
|
||||
<attr name="navigation_drawer_icons" format="reference"/>
|
||||
<attr name="navigation_drawer_shadow" format="reference"/>
|
||||
</resources>
|
@@ -84,7 +84,7 @@
|
||||
<string name="ConversationActivity_invalid_recipient">Invalid recipient!</string>
|
||||
<string name="ConversationActivity_calls_not_supported">Calls Not Supported</string>
|
||||
<string name="ConversationActivity_this_device_does_not_appear_to_support_dial_actions">This device does not appear to support dial actions.</string>
|
||||
|
||||
|
||||
<!-- ConversationFragment -->
|
||||
<string name="ConversationFragment_message_details">Message details</string>
|
||||
<string name="ConversationFragment_sender_s_transport_s_sent_received_s">Sender: %1$s\nTransport: %2$s\nSent/Received:%3$s</string>
|
||||
@@ -379,7 +379,12 @@
|
||||
<string name="AndroidManifest__manage_identity_keys">Manage Identity Keys</string>
|
||||
<string name="AndroidManifest__complete_key_exchange">Complete Key Exchange</string>
|
||||
<string name="AndroidManifest__verify_imported_identity">Verify Imported Identity</string>
|
||||
|
||||
|
||||
<!-- arrays.xml -->
|
||||
<string name="arrays__import_export">Import / Export</string>
|
||||
<string name="arrays__my_identity_key">My Identity Key</string>
|
||||
<string name="arrays__contact_keys">Contact Keys</string>
|
||||
|
||||
<!-- preferences.xml -->
|
||||
<string name="preferences__general">General</string>
|
||||
<string name="preferences__use_settings">Use Settings</string>
|
||||
@@ -459,6 +464,8 @@
|
||||
<string name="preferences__scan_through_all_conversation_threads_and_enforce_conversation_length_limits">Scan through all conversation threads and enforce conversation length limits</string>
|
||||
<string name="preferences__light_theme">Light Theme</string>
|
||||
<string name="preferences__dark_theme">Dark Theme</string>
|
||||
<string name="preferences__appearance">Appearance</string>
|
||||
<string name="preferences__theme">Theme</string>
|
||||
|
||||
<!-- **************************************** -->
|
||||
<!-- menus -->
|
||||
@@ -528,8 +535,6 @@
|
||||
|
||||
<!-- verify_keys -->
|
||||
<string name="verify_keys__menu_verified">Verified</string>
|
||||
<string name="preferences__appearance">Appearance</string>
|
||||
<string name="preferences__theme">Theme</string>
|
||||
<!-- EOF -->
|
||||
|
||||
</resources>
|
||||
|
@@ -19,6 +19,15 @@
|
||||
<item name="conversation_delivered_indicator">@drawable/ic_sms_mms_delivered_light</item>
|
||||
</style>
|
||||
|
||||
<style name="TextSecure.LightTheme.NavigationDrawer" parent="@style/TextSecure.LightTheme">
|
||||
<item name="homeAsUpIndicator">@drawable/ic_drawer</item>
|
||||
|
||||
<item name="navigation_drawer_background">@color/abs__background_holo_light</item>
|
||||
<item name="navigation_drawer_text_color">#ff333333</item>
|
||||
<item name="navigation_drawer_icons">@array/navigation_drawer_icons_light</item>
|
||||
<item name="navigation_drawer_shadow">@drawable/drawer_shadow_light</item>
|
||||
</style>
|
||||
|
||||
<style name="TextSecure.DarkTheme" parent="@style/Theme.Sherlock">
|
||||
<item name="conversation_list_item_background_read">@drawable/conversation_list_item_background_read_dark</item>
|
||||
<item name="conversation_list_item_background_unread">@drawable/conversation_list_item_background_unread_dark</item>
|
||||
@@ -36,6 +45,15 @@
|
||||
<item name="conversation_send_button">@drawable/ic_send_holo_dark</item>
|
||||
<item name="conversation_send_secure_button">@drawable/ic_send_holo_dark_encrypted</item>
|
||||
<item name="conversation_delivered_indicator">@drawable/ic_sms_mms_delivered_dark</item>
|
||||
|
||||
</style>
|
||||
|
||||
<style name="TextSecure.DarkTheme.NavigationDrawer" parent="@style/TextSecure.DarkTheme">
|
||||
<item name="homeAsUpIndicator">@drawable/ic_drawer</item>
|
||||
<item name="navigation_drawer_background">#ff333333</item>
|
||||
<item name="navigation_drawer_text_color">#ffdddddd</item>
|
||||
<item name="navigation_drawer_icons">@array/navigation_drawer_icons_dark</item>
|
||||
<item name="navigation_drawer_shadow">@drawable/drawer_shadow_dark</item>
|
||||
</style>
|
||||
|
||||
</resources>
|