Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
47e05268
Commit
47e05268
authored
Jan 20, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chat options menu rewritten using xml resource. One icon added.
parent
2e99802f
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
681 additions
and
586 deletions
+681
-586
ChatViewer.java
app/src/main/java/com/xabber/android/ui/ChatViewer.java
+337
-349
ChatViewerFragment.java
...c/main/java/com/xabber/android/ui/ChatViewerFragment.java
+198
-237
ic_create_white_24dp.png
app/src/main/res/drawable-hdpi/ic_create_white_24dp.png
+0
-0
ic_create_white_24dp.png
app/src/main/res/drawable-mdpi/ic_create_white_24dp.png
+0
-0
ic_create_white_24dp.png
app/src/main/res/drawable-xhdpi/ic_create_white_24dp.png
+0
-0
ic_create_white_24dp.png
app/src/main/res/drawable-xxhdpi/ic_create_white_24dp.png
+0
-0
ic_create_white_24dp.png
app/src/main/res/drawable-xxxhdpi/ic_create_white_24dp.png
+0
-0
chat.xml
app/src/main/res/menu/chat.xml
+146
-0
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewer.java
View file @
47e05268
...
...
@@ -14,15 +14,11 @@
*/
package
com
.
xabber
.
android
.
ui
;
import
java.util.Collection
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v4.app.NavUtils
;
import
android.view.KeyEvent
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.View
;
import
com.xabber.android.data.ActivityManager
;
...
...
@@ -43,6 +39,8 @@ import com.xabber.android.ui.widget.PageSwitcher;
import
com.xabber.android.ui.widget.PageSwitcher.OnSelectListener
;
import
com.xabber.androiddev.R
;
import
java.util.Collection
;
/**
* Chat activity.
*
...
...
@@ -101,6 +99,7 @@ public class ChatViewer extends ManagedActivity implements OnSelectListener,
setContentView
(
R
.
layout
.
chat_viewer
);
chatViewerAdapter
=
new
ChatViewerAdapter
(
this
,
account
,
user
);
pageSwitcher
=
(
PageSwitcher
)
findViewById
(
R
.
id
.
switcher
);
pageSwitcher
.
setAdapter
(
chatViewerAdapter
);
pageSwitcher
.
setOnSelectListener
(
this
);
...
...
@@ -395,15 +394,4 @@ public class ChatViewer extends ManagedActivity implements OnSelectListener,
return
ACTION_ATTENTION
.
equals
(
intent
.
getAction
());
}
@Override
public
boolean
onOptionsItemSelected
(
MenuItem
item
)
{
switch
(
item
.
getItemId
())
{
// Respond to the action bar's Up/Home button
case
android
.
R
.
id
.
home
:
NavUtils
.
navigateUpFromSameTask
(
this
);
return
true
;
}
return
super
.
onOptionsItemSelected
(
item
);
}
}
app/src/main/java/com/xabber/android/ui/ChatViewerFragment.java
View file @
47e05268
This diff is collapsed.
Click to expand it.
app/src/main/res/drawable-hdpi/ic_create_white_24dp.png
0 → 100644
View file @
47e05268
339 Bytes
app/src/main/res/drawable-mdpi/ic_create_white_24dp.png
0 → 100644
View file @
47e05268
272 Bytes
app/src/main/res/drawable-xhdpi/ic_create_white_24dp.png
0 → 100644
View file @
47e05268
378 Bytes
app/src/main/res/drawable-xxhdpi/ic_create_white_24dp.png
0 → 100644
View file @
47e05268
490 Bytes
app/src/main/res/drawable-xxxhdpi/ic_create_white_24dp.png
0 → 100644
View file @
47e05268
632 Bytes
app/src/main/res/menu/chat.xml
0 → 100644
View file @
47e05268
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
android:id=
"@+id/action_join_conference"
android:title=
"@string/muc_join"
app:showAsAction=
"ifRoom"
android:orderInCategory=
"80"
android:visible=
"false"
android:icon=
"@drawable/ic_group_white_24dp"
/>
<item
android:id=
"@+id/action_invite_to_chat"
android:title=
"@string/muc_invite"
app:showAsAction=
"never"
android:orderInCategory=
"90"
android:visible=
"false"
/>
<item
android:id=
"@+id/action_edit_contact"
android:title=
"@string/contact_editor"
app:showAsAction=
"ifRoom"
android:orderInCategory=
"100"
android:visible=
"false"
android:icon=
"@drawable/ic_create_white_24dp"
/>
<item
android:id=
"@+id/action_chat_list"
android:title=
"@string/chat_list"
app:showAsAction=
"never"
android:orderInCategory=
"110"
/>
<item
android:id=
"@+id/action_chat_settings"
android:title=
"@string/chat_settings"
app:showAsAction=
"never"
android:orderInCategory=
"120"
/>
<item
android:id=
"@+id/action_show_history"
android:title=
"@string/show_history"
app:showAsAction=
"never"
android:orderInCategory=
"130"
/>
<item
android:id=
"@+id/action_authorization_settings"
android:title=
"@string/muc_edit"
app:showAsAction=
"never"
android:orderInCategory=
"133"
android:visible=
"false"
/>
<item
android:id=
"@+id/action_leave_conference"
android:title=
"@string/muc_leave"
app:showAsAction=
"never"
android:orderInCategory=
"136"
android:visible=
"false"
/>
<item
android:id=
"@+id/action_close_chat"
android:title=
"@string/close_chat"
app:showAsAction=
"ifRoom"
android:orderInCategory=
"140"
android:visible=
"false"
android:icon=
"@drawable/ic_clear_white_24dp"
/>
<item
android:id=
"@+id/action_clear_text"
android:title=
"@string/clear_message"
app:showAsAction=
"never"
android:orderInCategory=
"150"
/>
<item
android:id=
"@+id/action_clear_history"
android:title=
"@string/clear_history"
app:showAsAction=
"never"
android:orderInCategory=
"160"
/>
<item
android:id=
"@+id/action_export_chat"
android:title=
"@string/export_chat"
app:showAsAction=
"never"
android:orderInCategory=
"170"
/>
<item
android:id=
"@+id/action_call_attention"
android:title=
"@string/call_attention"
app:showAsAction=
"never"
android:orderInCategory=
"180"
/>
<item
android:id=
"@+id/action_otr_encryption"
android:title=
"@string/otr_encryption"
app:showAsAction=
"never"
android:orderInCategory=
"190"
>
<menu>
<item
android:id=
"@+id/action_start_encryption"
android:title=
"@string/otr_start"
app:showAsAction=
"never"
android:orderInCategory=
"100"
android:visible=
"false"
/>
<item
android:id=
"@+id/action_restart_encryption"
android:title=
"@string/otr_refresh"
app:showAsAction=
"never"
android:orderInCategory=
"105"
android:visible=
"false"
/>
<item
android:id=
"@+id/action_stop_encryption"
android:title=
"@string/otr_end"
app:showAsAction=
"never"
android:orderInCategory=
"110"
/>
<item
android:id=
"@+id/action_verify_with_fingerprint"
android:title=
"@string/otr_verify_fingerprint"
app:showAsAction=
"never"
android:orderInCategory=
"120"
/>
<item
android:id=
"@+id/action_verify_with_question"
android:title=
"@string/otr_verify_question"
app:showAsAction=
"never"
android:orderInCategory=
"130"
/>
<item
android:id=
"@+id/action_verify_with_shared_secret"
android:title=
"@string/otr_verify_secret"
app:showAsAction=
"never"
android:orderInCategory=
"140"
/>
</menu>
</item>
<item
android:id=
"@+id/action_list_of_occupants"
android:title=
"@string/occupant_list"
app:showAsAction=
"never"
android:orderInCategory=
"200"
android:visible=
"false"
/>
</menu>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment