Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IMSDK_Demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
王文龙
IMSDK_Demo
Commits
565646d3
Commit
565646d3
authored
Dec 21, 2020
by
王文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update]完善细节
parent
e87afc70
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
46 additions
and
13 deletions
+46
-13
build.gradle
app/build.gradle
+1
-1
ChatListFragmentWrapper.java
...n/java/com/offcn/imclient/ui/ChatListFragmentWrapper.java
+9
-1
activity_chat.xml
app/src/main/res/layout/activity_chat.xml
+3
-3
activity_login.xml
app/src/main/res/layout/activity_login.xml
+1
-1
activity_main.xml
app/src/main/res/layout/activity_main.xml
+3
-2
activity_search.xml
app/src/main/res/layout/activity_search.xml
+1
-1
fragment_chat_list_wrapper.xml
app/src/main/res/layout/fragment_chat_list_wrapper.xml
+23
-0
fragment_contact_list.xml
app/src/main/res/layout/fragment_contact_list.xml
+2
-0
item_contact_child.xml
app/src/main/res/layout/item_contact_child.xml
+3
-3
item_contact_group.xml
app/src/main/res/layout/item_contact_group.xml
+0
-1
No files found.
app/build.gradle
View file @
565646d3
...
...
@@ -94,7 +94,7 @@ dependencies {
implementation
'com.android.support:multidex:1.0.3'
implementation
(
"com.offcn.live:titleview:1.1.0-s1"
)
implementation
(
"com.offcn.live:imsdk-kit:1.0.0.1
2
"
)
implementation
(
"com.offcn.live:imsdk-kit:1.0.0.1
3
"
)
// DB
implementation
'org.greenrobot:greendao:3.2.2'
...
...
app/src/main/java/com/offcn/imclient/ui/ChatListFragmentWrapper.java
View file @
565646d3
...
...
@@ -49,7 +49,15 @@ public class ChatListFragmentWrapper extends BaseFragment {
@Override
protected
void
init
(
View
view
)
{
view
.
findViewById
(
R
.
id
.
search
).
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(!
CommonUtils
.
isFastDoubleClick
())
{
startActivity
(
new
Intent
(
getActivity
(),
SearchActivity
.
class
));
getActivity
().
overridePendingTransition
(
R
.
anim
.
push_bottom_in
,
R
.
anim
.
push_bottom_still
);
}
}
});
}
@Override
...
...
app/src/main/res/layout/activity_chat.xml
View file @
565646d3
...
...
@@ -4,14 +4,14 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:fitsSystemWindows=
"true"
tools:ignore=
"MissingDefaultResource"
>
<com.jyall.titleview.TitleView
android:id=
"@+id/title_view"
android:background=
"@android:color/white"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
android:background=
"@android:color/white"
android:paddingTop=
"@dimen/toolbar_padding_top"
/>
<fragment
android:id=
"@+id/fragment_chat"
...
...
app/src/main/res/layout/activity_login.xml
View file @
565646d3
...
...
@@ -3,7 +3,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_margin=
"20dp"
android:
fitsSystemWindows=
"true
"
android:
paddingTop=
"@dimen/toolbar_padding_top
"
android:focusable=
"true"
android:focusableInTouchMode=
"true"
android:orientation=
"vertical"
>
...
...
app/src/main/res/layout/activity_main.xml
View file @
565646d3
...
...
@@ -9,15 +9,16 @@
android:id=
"@+id/tab_layout"
android:layout_alignParentBottom=
"true"
app:tabIndicatorHeight=
"0dp"
android:background=
"@android:color/white"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"
1
dp"
android:layout_height=
"
0.5
dp"
android:id=
"@+id/view_line"
android:layout_above=
"@+id/tab_layout"
android:background=
"@
android:color/darker_gray"
/>
android:background=
"@
color/color_cecece"
/>
<com.offcn.live.imkit.view.ScrollEnabledViewPager
android:id=
"@+id/view_pager"
...
...
app/src/main/res/layout/activity_search.xml
View file @
565646d3
...
...
@@ -3,8 +3,8 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:fitsSystemWindows=
"true"
android:background=
"@android:color/white"
android:paddingTop=
"@dimen/toolbar_padding_top"
android:orientation=
"vertical"
>
<LinearLayout
...
...
app/src/main/res/layout/fragment_chat_list_wrapper.xml
View file @
565646d3
...
...
@@ -5,11 +5,34 @@
android:layout_height=
"match_parent"
android:gravity=
"center"
android:orientation=
"vertical"
android:background=
"@android:color/white"
android:paddingTop=
"@dimen/main_padding_top"
>
<RelativeLayout
android:id=
"@+id/search"
android:layout_width=
"match_parent"
android:layout_height=
"38dp"
android:layout_marginLeft=
"15dp"
android:layout_marginRight=
"15dp"
android:background=
"@drawable/bg_search"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"38dp"
android:layout_centerInParent=
"true"
android:drawableLeft=
"@mipmap/ic_search"
android:drawablePadding=
"5dp"
android:gravity=
"center"
android:text=
"@string/search"
android:textColor=
"@color/color_cecece"
android:textSize=
"15sp"
/>
</RelativeLayout>
<fragment
android:name=
"com.offcn.live.imkit.ui.ChatListFragment"
android:id=
"@+id/chat_list_fragment"
android:layout_marginTop=
"15dp"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
...
...
app/src/main/res/layout/fragment_contact_list.xml
View file @
565646d3
...
...
@@ -37,6 +37,8 @@
<com.offcn.imclient.view.AnimatedExpandableListView
android:id=
"@+id/recycler_view"
android:divider=
"@null"
android:childDivider=
"@null"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:groupIndicator=
"@null"
/>
...
...
app/src/main/res/layout/item_contact_child.xml
View file @
565646d3
...
...
@@ -3,12 +3,12 @@
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:gravity=
"center_vertical"
android:paddingLeft=
"
5
0dp"
>
android:paddingLeft=
"
3
0dp"
>
<ImageView
android:id=
"@+id/iv_avatar"
android:layout_width=
"4
5
dp"
android:layout_height=
"4
5
dp"
android:layout_width=
"4
0
dp"
android:layout_height=
"4
0
dp"
android:scaleType=
"centerCrop"
android:src=
"@mipmap/ic_teacher"
/>
...
...
app/src/main/res/layout/item_contact_group.xml
View file @
565646d3
...
...
@@ -17,7 +17,6 @@
android:id=
"@+id/tv_name"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"5dp"
android:layout_weight=
"1"
android:ellipsize=
"end"
android:singleLine=
"true"
...
...
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