Giter Club home page Giter Club logo

Comments (4)

1gravity avatar 1gravity commented on July 18, 2024
  1. This is not a help forum but an issue tracker
  2. If you are familiar with StackOverflow (that's where you could post your question) then you should know that there's no way to answer your question. It's pretty unclear what you're trying to achieve. Of course you can have a rich text editor field in a list view but "how can i manage each row" isn't a question with an answer. Neither is "It's possible" (what's possible?).

from android-rteditor.

mbibas avatar mbibas commented on July 18, 2024

Sorry but my english bad. I preferred to ask you beacuse you create this
rich text and you can help me. I need rich text for my school project.
Pleaseeee help me
בתאריך 10 ביולי 2015 12:31,‏ "Emanuel Moecklin" [email protected]
כתב:

  1. This is not a help forum but an issue tracker
  2. If you are familiar with StackOverflow (that's where you could post
    your question) then you should know that there's no way to answer your
    question. It's pretty unclear what you're trying to achieve. Of course you
    can have a rich text editor field in a list view but "how can i manage each
    row" isn't a question with an answer. Neither is "It's possible" (what's
    possible?).


Reply to this email directly or view it on GitHub
#17 (comment)
.

from android-rteditor.

mbibas avatar mbibas commented on July 18, 2024

public class CustomAdapter extends BaseAdapter {

Activity mContext;
ArrayList<HandlerRichText> list;


public CustomAdapter(Activity mContext, ArrayList<HandlerRichText> list) {
    this.mContext = mContext;
    this.list = list;
}



@Override
public int getCount() {
    return list.size();
}

@Override
public Object getItem(int position) {
    return list.get(position);
}

@Override
public long getItemId(int position) {
    return position;
}

@Override

public View getView(final int position, View convertView,

ViewGroup parent) {

    ViewHolder holder = null;

    if(convertView == null) {

        //inflate
        holder = new ViewHolder();
        LayoutInflater inflater = mContext.getLayoutInflater();
        convertView = inflater.inflate(R.layout.message_richtext, null);
        convertView.setTag(holder);

        //Views
        holder.editText = (RTEditText)

convertView.findViewById(R.id.rtEditText_1);
holder.toolbarContainer = (ViewGroup)
convertView.findViewById(R.id.rte_toolbar_container);
holder.tool_bar = (HorizontalRTToolbar)
convertView.findViewById(R.id.rte_toolbar);

        //Mange
        holder.rtApi = new RTApi(mContext, new

RTProxyImpl(mContext), new RTMediaFactoryImpl(mContext, true));
holder.mRTManager = new RTManager(holder.rtApi, null);

        //Register
        holder.mRTManager.registerToolbar(holder.toolbarContainer,

holder.tool_bar);
holder.mRTManager.registerEditor(holder.editText, true);

        holder.editText.requestFocus();


        holder.editText.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int

start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start,

int before, int count) {
list.get(position).setMessage(s.toString());
}

            @Override
            public void afterTextChanged(Editable s) {

            }
        });




    }else{
        holder = (ViewHolder) convertView.getTag();
    }

    holder.editText.setRichTextEditing(true,

list.get(position).getMessage());

    return convertView;
}


static class ViewHolder{
    RTApi rtApi;
    RTManager mRTManager;
    RTEditText editText;
    ViewGroup toolbarContainer;
    HorizontalRTToolbar tool_bar;
}

}

2015-07-10 12:34 GMT+03:00 Matan MatanB [email protected]:

Sorry but my english bad. I preferred to ask you beacuse you create this
rich text and you can help me. I need rich text for my school project.
Pleaseeee help me
בתאריך 10 ביולי 2015 12:31,‏ "Emanuel Moecklin" [email protected]
כתב:

  1. This is not a help forum but an issue tracker
  2. If you are familiar with StackOverflow (that's where you could
    post your question) then you should know that there's no way to answer your
    question. It's pretty unclear what you're trying to achieve. Of course you
    can have a rich text editor field in a list view but "how can i manage each
    row" isn't a question with an answer. Neither is "It's possible" (what's
    possible?).


Reply to this email directly or view it on GitHub
#17 (comment)
.

from android-rteditor.

mbibas avatar mbibas commented on July 18, 2024

why when i pick image from gallery the Edittext resize it? can i get the
image in a real size to the EditText?

2015-07-10 12:34 GMT+03:00 Matan MatanB [email protected]:

Sorry but my english bad. I preferred to ask you beacuse you create this
rich text and you can help me. I need rich text for my school project.
Pleaseeee help me
בתאריך 10 ביולי 2015 12:31,‏ "Emanuel Moecklin" [email protected]
כתב:

  1. This is not a help forum but an issue tracker
  2. If you are familiar with StackOverflow (that's where you could
    post your question) then you should know that there's no way to answer your
    question. It's pretty unclear what you're trying to achieve. Of course you
    can have a rich text editor field in a list view but "how can i manage each
    row" isn't a question with an answer. Neither is "It's possible" (what's
    possible?).


Reply to this email directly or view it on GitHub
#17 (comment)
.

from android-rteditor.

Related Issues (20)

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.