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
f78cf5f0
Commit
f78cf5f0
authored
Apr 22, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Under construction" message added for Recent chats screen.
parent
109bb1cf
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
1 deletion
+29
-1
RecentChatFragment.java
...c/main/java/com/xabber/android/ui/RecentChatFragment.java
+13
-1
ic_alert_white_24dp.png
app/src/main/res/drawable-hdpi/ic_alert_white_24dp.png
+0
-0
ic_alert_white_24dp.png
app/src/main/res/drawable-mdpi/ic_alert_white_24dp.png
+0
-0
ic_alert_white_24dp.png
app/src/main/res/drawable-xhdpi/ic_alert_white_24dp.png
+0
-0
ic_alert_white_24dp.png
app/src/main/res/drawable-xxhdpi/ic_alert_white_24dp.png
+0
-0
recent_chats.xml
app/src/main/res/menu/recent_chats.xml
+10
-0
chat_viewer.xml
app/src/main/res/values-ru/chat_viewer.xml
+3
-0
chat_viewer.xml
app/src/main/res/values/chat_viewer.xml
+3
-0
No files found.
app/src/main/java/com/xabber/android/ui/RecentChatFragment.java
View file @
f78cf5f0
...
...
@@ -6,6 +6,7 @@ import android.os.Bundle;
import
android.support.v4.app.NavUtils
;
import
android.support.v7.widget.Toolbar
;
import
android.view.LayoutInflater
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.ListView
;
...
...
@@ -18,7 +19,7 @@ import com.xabber.androiddev.R;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
RecentChatFragment
extends
ListFragment
{
public
class
RecentChatFragment
extends
ListFragment
implements
Toolbar
.
OnMenuItemClickListener
{
private
RecentChatFragmentInteractionListener
listener
;
public
static
RecentChatFragment
newInstance
()
{
...
...
@@ -75,6 +76,8 @@ public class RecentChatFragment extends ListFragment {
NavUtils
.
navigateUpFromSameTask
(
getActivity
());
}
});
toolbar
.
inflateMenu
(
R
.
menu
.
recent_chats
);
toolbar
.
setOnMenuItemClickListener
(
this
);
return
rootView
;
}
...
...
@@ -109,6 +112,15 @@ public class RecentChatFragment extends ListFragment {
}
}
@Override
public
boolean
onMenuItemClick
(
MenuItem
item
)
{
if
(
item
.
getItemId
()
==
R
.
id
.
action_under_construction
)
{
Toast
.
makeText
(
getActivity
(),
getActivity
().
getString
(
R
.
string
.
under_construction_message
),
Toast
.
LENGTH_SHORT
).
show
();
}
return
false
;
}
public
interface
RecentChatFragmentInteractionListener
{
void
onChatSelected
(
AbstractChat
chat
);
}
...
...
app/src/main/res/drawable-hdpi/ic_alert_white_24dp.png
0 → 100644
View file @
f78cf5f0
526 Bytes
app/src/main/res/drawable-mdpi/ic_alert_white_24dp.png
0 → 100644
View file @
f78cf5f0
343 Bytes
app/src/main/res/drawable-xhdpi/ic_alert_white_24dp.png
0 → 100644
View file @
f78cf5f0
669 Bytes
app/src/main/res/drawable-xxhdpi/ic_alert_white_24dp.png
0 → 100644
View file @
f78cf5f0
921 Bytes
app/src/main/res/menu/recent_chats.xml
0 → 100644
View file @
f78cf5f0
<?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_under_construction"
android:title=
"@string/under_construction"
app:showAsAction=
"always"
android:orderInCategory=
"100"
android:icon=
"@drawable/ic_alert_white_24dp"
/>
</menu>
\ No newline at end of file
app/src/main/res/values-ru/chat_viewer.xml
View file @
f78cf5f0
...
...
@@ -149,4 +149,7 @@
<string
name=
"otr_verify_secret"
>
Проверка секретным ключом
</string>
<string
name=
"recent_chats"
>
Недавние чаты
</string>
<string
name=
"under_construction"
>
В разработке
</string>
<string
name=
"under_construction_message"
>
Этот экран находится в разработке
</string>
</resources>
\ No newline at end of file
app/src/main/res/values/chat_viewer.xml
View file @
f78cf5f0
...
...
@@ -149,4 +149,7 @@
<string
name=
"otr_verify_secret"
>
Verify with shared secret
</string>
<string
name=
"recent_chats"
>
Recent chats
</string>
<string
name=
"under_construction"
>
Under construction
</string>
<string
name=
"under_construction_message"
>
This screen is under construction
</string>
</resources>
\ 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