Comments (4)
- This is not a help forum but an issue tracker
- 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.
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]
כתב:
- This is not a help forum but an issue tracker
- 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.
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]
כתב:
- This is not a help forum but an issue tracker
- 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.
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]
כתב:
- This is not a help forum but an issue tracker
- 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)
- Trouble Applying the 1.6.7 version HOT 3
- How to add a blockquote an horizontal line?
- Photo Capture is not working in the latest version of this library (1.6.7 of RTEditor)
- Android 8.0 insert text crash
- Fatal Exception: java.lang.IllegalStateException: The RTMediaFactory is null. Please make sure to register the editor at the RTManager before using it. HOT 2
- Can we have support for Fonts? HOT 1
- android.view.InflateException while using RTEditor HOT 1
- No subscribers registered for event class com.onegravity.rteditor.media.choose.MediaEvent when picking an image
- 为啥如此设置字体恢复不了 HOT 2
- Installation Error HOT 5
- link error
- Heading1 and heading2 formatting required HOT 2
- is this support kotlin? HOT 1
- [BUG] numbering append with <ol> when the last item deleted HOT 2
- It is possible to add emoji and file uploading
- Insta bug 11.3.0 is not working after integrated rteditor:1.7.6" HOT 2
- [BUG] Indentation left does not work any more in latest version
- [BUG] Caused by: android.view.InflateException: Binary XML file line #36 HOT 1
- 向右一直缩进到最后不会变成竖直一列
- problem when using proguard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-rteditor.