GithubHelp home page GithubHelp logo

ttandroidclient's People

Contributors

bluefoxah avatar mgjkuaidao avatar oldoldb avatar tshirtmanid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ttandroidclient's Issues

replace original web-image-view to load contact avatars, cache avatars locally

Original author uses web-image-view to load contact avatars, though this is really a very quick way to finish the job, but we can't accurately control the memory usage, and OOM(Out Of Memory) risk is very high.

  1. original version didn't have any notification in notification bar, this version has though.
    but because of no cache avatars locally, we need to change the whole mechanism to fix this.

2 options, 1 to use universal-image-downloader, 2 to write our own version using "lrucache" to control maximum memory usage and "disk-lru-cache" to cache images to disk.

I'd like to prefer the 1 one for this project though.it would cost less time, and we can use it to resize to a smaller size.

refactoring sending picture message

current logic is full of SHIT and error prone, thoughts:

. send picture message should be handled in the IMMessageManager, not in GUI layer
. notify using broadcast, just like other features, so GUI and IMMessageManager is weak bounds
. read the original logic again
. read the text re-sending logic again

change temp group members implementation

in temp group management window, we can add or delete members.Right now, we hasn't implemented deleting temp group feature, so at least remain 1 member in the group.

implement new search bar logics

move 3 search bars to only 1 global search bars at the top of the app, just like wechat style.
it supports searching:
. contacts
. departments
. groups
. temp groups

both original chararacters or the corresponding Chinease PinYin

support java 1.7

java 1.7 imports many new features which would cut the source code size a lot and more convenient, we should switch to java 1.7 next version

image replacement

. online contact's icon
. group/temp group's icon
. chat window pushwand refresh icon and text (ask for dongxie)
. chat message blue bubble need smoothly stretch
. peer's voice message has red icon right now, replace it with another color
. select image activity uses "red" icons for checkbox and ok button
. Chinase Hanyu Pinyin's background is green now

bind the imservice action handler when registering

right now, to register an action and responds it, we need to steps:
1. List actions = new ArrayList();
actions.add(IMActions.ACTION_CONTACT_READY);
imServiceHelper.connect(getActivity(), actions, IMServiceHelper.INTENT_NO_PRIORITY, this);

  1. @OverRide
    public void onAction(String action, Intent intent,
    BroadcastReceiver broadcastReceiver) {
    logger.d("detail#onAction action:%s", action);

    if (action.equals(IMActions.ACTION_CONTACT_READY)) {
        init();
    }
    

    }

this is boring, we should use 1 step to finish the whole process
List actionList = new ArrayList();
actionList.add(new Action(IMActions.ACTION_CONTACT_READY, new ActionHandler {
//onAction member function
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.