Skip to content
プロジェクト

概要

AndroidのListViewまたはRecyclerViewで実装したチャット画面です。テキスト、絵文字、画像、音声メッセージに対応し、下に引いて過去のメッセージを読み込んだり、チャット履歴を端末に保存したりできます。

仕事効率化・自動化

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

ChatDemo

##�ѡ�ʵ�ַ�ʽ�

image

##�ֱ�ʾ�ͼƬ�

image

##ͼƬ�ʾ�ͼƬ�

image

##�ʾ�ͼ�

image

##ע�RecyclerView�ListViewʵ�ַ�ʽ�ͬ�Щ�ܲ�ͬ�ʹ�á�

�߻�淽ʽ�ԣ�־ֲ�Ƶ�Ľ�ʹ�RecyclerView�

�RecyclerView�ƣ�bug֪ͨ�޸� ##16/11/7�£�

  • �Ż�ȣ�Ҫ�Ż�GifTextView�ؼ�RecyclerView�ȣ�Ҫ�ʱͼƬ�ֱ�˸�⡣

##16/10/15�£�

  • �Ϣ�ݿ⣬�ڱ�¼� �ݿ�õ�GreenDao�ݷ�ҳ�ء�

�Ϊ�Ǹ�Demo�ListView�RecyclerView�õ�ͬһ�ֻ�迴ʵ�ַ�ʽ�ɡ�

##16/10/10�£�

  • �ListView�ʵ�ַ�ʽ�PullToRefreshListView

PullToRefreshRecyclerViewΪRecyclerView�ʵ�ַ�ʽ�л�ListView�ChatActivity�PullToRefreshLayout�޸ĺ�һЩ�޸ġ�

ListView�:ChatListViewAdapter

RecyclerView�:ChatRecyclerAdapter

##16/9/30�£�

  • �ListView�ΪRecyclerView

  • �item�

  • �޸�̵�⣬�΢�š�

  • �Ż�棬�û�

##�ܣ�

  • �Ŀ�һ�棬�װ�˰�֡�顢ͼƬ�Ϣ�
  • ֧�־�̬�飬gif�飬�ֱ�š�ͼ�Ļ�ʵ�ֲο�Android�ʵ�ͼ�Ļ�ࣨ�gif�ʾ�
  • ֧�ͼƬ�ͣ�ü�ͼƬ�״�֧�ͼƬ�ͼ�ۿ�֧�ַŴ�С�ȡ�
  • �ͼƬ�С�ȱ�ţ�ѹ�ʾ�
  • ֧�ͣ�δ�״̬�ʾ�¼�Ϊamr�ʽ�ļ�ͷ�΢�š�
  • �Ź�߿�Բο�һ�Ŀ�android�Ź�ߣ�Դ�棩
  • �¼�mp3�ʽ�ο�Android¼�mp3�ʽ
  • û�¼�Ȩ�ʾ�û�ʵ�ַ�ʽ�ο�Android¼�Ȩ�ޱ�
  • �ͼƬ֧�״̬�С�ʧ�ܺͷ�ͳɹ�ʧ�ʾ�̾�ţ�
  • ֧�ظ�࣬�ظ�ViewDragHelper�ʵ�ַ�ʽ�ο�Android�ˢ�
  • ֧�ʱ�ʾ�Ĭ�ϴ�һ�ʾһ�Σ�μ�ChatAdapter�ࡣ�ɸ�޸ġ�

##�ϸ˵�

ListView:

image

RecyclerView:

image

###�Ҫ�

  • ChatActivity:�
  • ChatListViewAdapter:ListView�
  • ChatRecyclerAdapter:RecyclerView�
  • ChatBean:�ݶ�

###�

  • ImageViewActivity:�ͼ�ۿ�
  • AudioRecordButton�Զ�¼�ؼ�
  • BubbleImageView�Զ�ͼƬ�ü�ؼ�
  • MediaManager�ſؼ�
  • GifTextView�Զ�ͼ�Ļ�ſؼ�
  • pulltorefresh�Զ�ظ�ؼ�֧�ظ�ࣩ
  • SlideInOutBottomItemAnimator:RecyclerView�item�ϻ�

ͼƬ�ʹ�Glide�

Ϊ�Ż�ܣ�Ĺ�gifΪ�̬�ʾ�

�ַ�Ͱ�ťΪ�еĻس�

##�ǣ�

�ĿҲ�ǽ�֮ǰ�һЩ�һ�£�ʱ�Ƚ϶̣�ҾͿ�һ�¾�ʵ�ַ�ʽ�ɣ�е�ң�ʱ�Ļ�һ�¡�

License

Copyright 2016 maojiqing

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

関連プロジェクトを探す

読み込み中…