1gravity / android-rteditor Goto Github PK
View Code? Open in Web Editor NEWThe Android RTEditor is a rich text editor component for Android that can be used as a drop in for EditText
License: Apache License 2.0
The Android RTEditor is a rich text editor component for Android that can be used as a drop in for EditText
License: Apache License 2.0
@1gravity
Hello, I've faced with a problem if I start typing with default style, after that I select for example bold, and I will not do a space the bold style will not be applied, it will continue display default style and if I add a space and continue typing - the text will become bold. The same issue happens for all styles (bold, underline, etc...)
Thanks in advance, Roman.
how to make toolbar always show onFocus or Out Focus TextEditor?
Thanks a lot for sharing this code!
I am getting this error when I am inflating the layout with the toolbar in the onCreateView method of the fragment.
Binary XML file line #33: Error inflating class com.onegravity.rteditor.toolbar.RTToolbarImageButton
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f0100f3 a=-1}
Not sure if I am doing something wrong or its an issue with the code.
On an empty line, use NumberSpan or BulletedSpan doesn't work(accurate the span is exists, but didn't show)
Please tell me how to solve this problem?
<LinearLayout
android:id="@+id/rte_toolbar_container"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<include layout="@layout/rte_toolbar_character" />
<include layout="@layout/rte_toolbar_paragraph" />
</LinearLayout>
Rendering Problems java.lang.NullPointerException at com.onegravity.rteditor.fonts.FontManager.listFontFiles(FontManager.java:185) at com.onegravity.rteditor.fonts.FontManager.listFontFiles(FontManager.java:178) at com.onegravity.rteditor.fonts.FontManager.getAssetFonts(FontManager.java:158) at com.onegravity.rteditor.fonts.FontManager.getFonts(FontManager.java:97) at com.onegravity.rteditor.toolbar.HorizontalRTToolbar.getFontItems(HorizontalRTToolbar.java:213) at com.onegravity.rteditor.toolbar.HorizontalRTToolbar.onFinishInflate(HorizontalRTToolbar.java:177) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:844) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70) at android.view.LayoutInflater.rInflate(LayoutInflater.java:811) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:838) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70) at android.view.LayoutInflater.rInflate(LayoutInflater.java:811) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:197) at android.view.LayoutInflater.parseInclude(LayoutInflater.java:879) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:831) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70) at android.view.LayoutInflater.rInflate(LayoutInflater.java:811) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:838) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70) at android.view.LayoutInflater.rInflate(LayoutInflater.java:811) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) at android.view.LayoutInflater.inflate(LayoutInflater.java:515) at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
At the time of launch activity.
E/AssetIndex: assets.index
java.io.FileNotFoundException: assets.index
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:316)
at android.content.res.AssetManager.open(AssetManager.java:290)
at com.onegravity.rteditor.fonts.AssetIndex.getAssetIndex(AssetIndex.java:46)
at com.onegravity.rteditor.fonts.FontManager.getAssetFonts(FontManager.java:156)
at com.onegravity.rteditor.fonts.FontManager.getFonts(FontManager.java:97)
at com.onegravity.rteditor.toolbar.HorizontalRTToolbar.getFontItems(HorizontalRTToolbar.java:213)
at com.onegravity.rteditor.toolbar.HorizontalRTToolbar.onFinishInflate(HorizontalRTToolbar.java:177)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:763)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:839)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:745)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
at com.cloudstechnologies.smartypro.activities.ActivityTaskEdit.onCreate(ActivityTaskEdit.java:73)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
It causes pain in arse, I had to download all the dependencies and put them together again to get this to work
Hey man,
I was wondering where the captured images are being saved? Can i change their path?
Thanks
I think that it's better to call the sample 'sample', or 'demo', not 'app'.
Hey man!
How can i get the caret position in HTML?
Thanks!
hi
I face this error when trying to use your RichText editor.
can you advice me my mistake is?
gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "facebooklogin.myapplication"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.1gravity:android-rteditor:1.1.6'
}
Activity.xml
<include android:id="@+id/rte_toolbar_container" layout="@layout/rte_toolbar" />
<ScrollView
android:id="@+id/rte_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_above="@id/rte_toolbar_container"
android:layout_margin="4dp"
android:fillViewport="true"
android:scrollbarStyle="insideOverlay" >
<com.onegravity.rteditor.RTEditText
android:id="@+id/rtEditText_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="top"
android:hint="test"
android:imeOptions="actionDone|flagNoEnterAction"
android:inputType="textMultiLine|textAutoCorrect|textCapSentences" />
</ScrollView>
Activty java file
package facebooklogin.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
try {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
catch(Exception e) {
String sf = e.toString();
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
Hey! Man, i noticed that when you have a background color tag and you press enter to create another line (a br tag is inserted) the background color tag is duplicated like this:
<font id='1' style="background-color:#70e7d0">Test 1<br/>
<id='1' /font><font id='1' style="background-color:#70e7d0">Test 2<id='1' /font>
Why this happens? Why it can't be like this:
<font id='1' style="background-color:#70e7d0">Test 1<br/>Test 2<id='1' /font>
Thanks!
Hi! When i try to put your project in my dependenciesit get this error:
Error:Failed to resolve: com.github.afollestad.material-dialogs:core:0.8.5.0
Open File
Show in Project Structure dialog
Hey! I'm trying to get selected text from the Editor but i'm just getting the select text without HTML format.
This is the code:
startSelection = mRTMessageField.getSelectionStart(); endSelection = mRTMessageField.getSelectionEnd(); String selectedText = mRTMessageField.getText(RTFormat.HTML).substring(startSelection, endSelection);
When i try to create a new string parsing the html string with the select text i'm getting the position without html and the selected text is not completed because the position of plain text is different in html format.
This is my logcat when I've selected the text "My first Text!":
01-28 13:36:41.555 18456-18456/com.ufcspa.unasus.appportfolio D/Processing text:: finding selected text:<b>my</b> firs in text:This is <b>my</b> first <b>Text</b>! 01-28 13:36:41.557 18456-18456/com.ufcspa.unasus.appportfolio D/Processing text:: selected text starts at position '8' ends at position '22' 01-28 13:36:41.557 18456-18456/com.ufcspa.unasus.appportfolio D/Processing text:: substring generated:<b>my</b> firs
The selected text have 14 characters "My first Text!" but the string selected was "<b>my</b> firs"
Is there any way to get the selected text in HTML form?
Thanks!
an app im making uses appcompat support lib v19
but when i put Android-RTEditor in my dependencies my custom theme disappear... before it only disappears when i use appcompatsupport libv21 and up... could you explain why this happen when im just putting the dependency..
Hi,
the setSelection(int) does not work.
my cursor still at the starting position.
this is my code.
mRTMessageField.setRichTextEditing(true, content);
mRTMessageField.setSelection(content.length());
can advice?
I'm trying to change the title color in action using the style
<style name="ThemeLight" parent="@style/RTE_ThemeLight"> @color/actionbar_color @color/actionbar_color @color/actionbar_color @color/white @style/MyActionBarTitleText </style><style name="MyActionBarTitleText" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
<item name="android:textColor">@color/white</item>
</style>
but it does not work for me. Please guide.
Unable to add a toolbar
I want to start an unordered list (bullets), so:
If changing the behaviour is not easy/possible, there should be at least an opportunity to tell the user how to add a bullet, so e.g. when the "bullet" button is pressed and the cursor is on an empty line, the button shouldn't be activated, but instead the edit text should notify the client application about this situation. The client application can now e.g. display a tooltip informing a user about the procedure of inserting bullets.
It'd be good to use <br/>
instead of oldschool <br>
Hi! I want to change where the images are saved when using the editor. I have read your documentation, but i dont know how i can do that. Can you help me, please?
My android sdk version: 4.4.2
Sometimes insert an image from library, but the image won't show while the operation is done.
Hi, the Background Color Effect class that is inside the demo app don't have code but in the same class in my project have. Is there any difference between the implementation that you are using in the demo app and the the version that we have in Gradle?
Thanks for the help.
Here is the code that i have in my project:
package com.onegravity.rteditor.effects;
import android.text.Spannable;
import android.text.Spanned;
import android.text.style.BackgroundColorSpan;
import com.onegravity.rteditor.RTEditText;
import com.onegravity.rteditor.utils.Selection;
import java.util.ArrayList;
import java.util.List;
/**
* Background color
*/
public class BackgroundColorEffect extends Effect<Integer> {
@Override
public List<Integer> valuesInSelection(RTEditText editor, int spanType) {
Selection expandedSelection = getExpandedSelection(editor, spanType);
List<Integer> result = new ArrayList<Integer>();
for (BackgroundColorSpan span : getSpans(editor.getText(), expandedSelection)) {
result.add(span.getBackgroundColor());
}
return result;
}
/**
* @param color If the color is Null then the background color will be removed
*/
public void applyToSelection(RTEditText editor, Integer color) {
Selection selection = new Selection(editor);
Spannable str = editor.getText();
for (BackgroundColorSpan span : getSpans(str, selection)) {
int spanStart = str.getSpanStart(span);
if (spanStart < selection.start()) {
str.setSpan(new BackgroundColorSpan(span.getBackgroundColor()), spanStart, selection.start(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
}
int spanEnd = str.getSpanEnd(span);
if (spanEnd > selection.end()) {
str.setSpan(new BackgroundColorSpan(span.getBackgroundColor()), selection.end() + 1, spanEnd, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
}
str.removeSpan(span);
}
if (color != null) {
// if the style is enabled add it to the selection (add the leading and trailing spans too if there are any)
str.setSpan(new BackgroundColorSpan(color), selection.start(), selection.end(),
selection.start() == selection.end() ? Spanned.SPAN_INCLUSIVE_INCLUSIVE : Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
}
}
@Override
protected BackgroundColorSpan[] getSpans(Spannable str, Selection selection) {
return str.getSpans(selection.start(), selection.end(), BackgroundColorSpan.class);
}
}
I'm trying to create 5 rich texts on a listView but how can i manage the each row? e.g when i upload image from the gallery or when i scrolling the list and i want the data will be change? it's possible?
Hi, i am trying to use your editor inside a fragment, but whenever i change the screen orientation from landscape to portrait or vice versa, the application crashes with this error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.Activities.MainActivity}: java.lang.IllegalStateException: The RTMediaFactory is null. Please make sure to register the editor at the RTManager before using it.
This is my code:
FragmentRTEditor.txt
Other problem is that, pick image and take pictures button are not working using the toolbar implementation that comes with the project. I have to add something else to work? Or i am doing something wrong? I added the gradle dependency and use this code that a already provided.
There is any way to add video in the editor?
Thanks!
hi
when i use "setRichTextEditing" in programming side , dont implementation conditions like "Bold" , "italics".
how i fix this problem??
I want to set the text (content) from the RTEditText to the normal TextView. Please help me
When entering something into the first line, pressing enter and thus switching to the second line and then altering the alignment results in the first line taking on the alignment of the second line.
When something is entered into the second line, the first line jumps back to its original alignment.
Also gets exported to HMTL carrying the false alignment:
Before entering something: <div align="center">TEXT</div><div align="center"></div>
After entering something: <div align="right">TEXT</div><div align="center">T</div>
I've seen the sample app and some.of the code but I can't or maybe I failed to find how to insert an image into the RTEditor from a url
EDIT :
I've scoured around the source code, but I still can't find a method or implementation that could be used. Though, I could download the image and save it into a storage location that I can reference then create an RTImage object out of it, the problem now is how to reference the link used in the actual text I would get from the editor.
Also, is there a way to remove the loading of fonts from the device? I have an app that has multiple fragments and one of those fragments houses the RTEditor. I initialize the RTEditor in the onCreate method so the transition gets stuck for about 1-2 seconds before showing the actual fragment. I can't find any method to "turn off" this the font style feature.
Hey! I am trying to create a custom tag for my application. I want to create something like this:
<font id="1" style="background-color:#000000">Teste</font id="1">
add a identifier id="1" inside the HTML tag. But i can't understand how i can alter the tags in your code. Is there any way?
Thanks
I had been working on reading Docx files using Docx4j library when converted docx content to html and read it through webview. However, the same html code when I tried loading in Android Rich Text Editor I did not get any format of text nor the images. I found The css styles were commented so I removed that as well using string html using below code:
(Posted same question on stackoverflow : http://stackoverflow.com/questions/31359811/css-styles-in-android-rich-text-editor-not-working)
html = html.replace("", "");
This also did not fix my issue and I receive the same plain text without format. html however contains well defined css code. A snapshot of same is here:
I have checked html does work in RTEditor:
Code:
String subject = "";Spanned description = null;
String message = null;
String signature = null;String withCharacters;
String tsx="";String html = null;
if (savedInstanceState == null) {
Intent intent = getIntent();
subject = getIntent().getStringExtra("textReportFileName");
message = getStringExtra(intent, "message");
signature = getStringExtra(intent, "signature");
mUseDarkTheme = intent.getBooleanExtra("mUseDarkTheme", false);
mSplitToolbar = intent.getBooleanExtra("mSplitToolbar", false);
} else {
subject = savedInstanceState.getString("subject", "");
mUseDarkTheme = savedInstanceState.getBoolean("mUseDarkTheme", false);
mSplitToolbar = savedInstanceState.getBoolean("mSplitToolbar", false);
}
final long startTime = System.currentTimeMillis();
final long endTime;
try {
final LoadFromZipNG loader = new LoadFromZipNG();
WordprocessingMLPackage wordMLPackage = (WordprocessingMLPackage)loader.get(new FileInputStream(new File(Environment.getExternalStorageDirectory()+"/"+getIntent().getStringExtra("textReportFileName"))));
//getIntent().getStringExtra("textReportFileName")
String IMAGE_DIR_NAME = "images";
String baseURL = this.getDir(IMAGE_DIR_NAME, Context.MODE_WORLD_READABLE).toURL().toString();
System.out.println(baseURL); // file:/data/data/com.example.HelloAndroid/app_images/
// Uncomment this to write image files to file system
ConversionImageHandler conversionImageHandler = new AndroidFileConversionImageHandler( IMAGE_DIR_NAME, // <-- don't use a path separator here
baseURL, false, this);
// Uncomment to use a base 64 encoded data URI for each image
// ConversionImageHandler conversionImageHandler = new AndroidDataUriImageHandler();
HtmlExporterNonXSLT withoutXSLT = new HtmlExporterNonXSLT(wordMLPackage, conversionImageHandler);
html = XmlUtils.w3CDomNodeToString(withoutXSLT.export());
html = html.replace("<!--", "");
html = html.replace("-->", "");
withCharacters = StringEscapeUtils.unescapeHtml(html);
description = Html.fromHtml(withCharacters);
//WebView webview = (WebView)this.findViewById(R.id.webpage);
//webview.loadDataWithBaseURL(baseURL, html , "text/html", null, null);
// TabHost mTabHost = getTabHost();
// mTabHost.addTab(mTabHost.newTabSpec("tab_test2").setIndicator("Web Page").setContent(R.id.webpage));
// mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator("View Source").setContent(tv.getId()));
// mTabHost.setCurrentTab(0);
} catch (Exception e) {
e.printStackTrace();
Toast.makeText(getApplicationContext(),"Invalid Format Exception",Toast.LENGTH_SHORT).show();
} finally {
endTime = System.currentTimeMillis();
}
final long duration = endTime - startTime;
System.err.println("Total time: " + duration + "ms");
message = "<html><head><style>div{background-color: blue}</style></head><body>Hello <h1>How are you?</h1> <p>My name is <b> Abhishek</b></p><div>Whats up?</div>\n" +"<img src=\"http://www.w3schools.com/images/colorpicker.png\"/>\n" +"</body></html>";
Toast.makeText(getApplicationContext(),message,Toast.LENGTH_SHORT).show();
// set theme
setTheme(mUseDarkTheme ? R.style.ThemeDark : R.style.ThemeLight);
super.onCreate(savedInstanceState);
// set layout
setContentView(mSplitToolbar ? R.layout.rte_demo_2 : R.layout.rte_demo_1);
// initialize rich text manager
RTApi rtApi = new RTApi(this, new RTProxyImpl(this), new RTMediaFactoryImpl(this, true));
mRTManager = new RTManager(rtApi, savedInstanceState);
ViewGroup toolbarContainer = (ViewGroup) findViewById(R.id.rte_toolbar_container);
// register toolbar 0 (if it exists)
HorizontalRTToolbar rtToolbar0 = (HorizontalRTToolbar) findViewById(R.id.rte_toolbar);
if (rtToolbar0 != null) {
mRTManager.registerToolbar(toolbarContainer, rtToolbar0);
}
// register toolbar 1 (if it exists)
HorizontalRTToolbar rtToolbar1 = (HorizontalRTToolbar) findViewById(R.id.rte_toolbar_character);
if (rtToolbar1 != null) {
mRTManager.registerToolbar(toolbarContainer, rtToolbar1);
}
// register toolbar 2 (if it exists)
HorizontalRTToolbar rtToolbar2 = (HorizontalRTToolbar) findViewById(R.id.rte_toolbar_paragraph);
if (rtToolbar2 != null) {
mRTManager.registerToolbar(toolbarContainer, rtToolbar2);
}
// set subject
mSubjectField = (EditText) findViewById(R.id.subject);
mSubjectField.setText(subject);
// register message editor
mRTMessageField = (RTEditText) findViewById(R.id.rtEditText_1);
mRTManager.registerEditor(mRTMessageField, true);
if (message != null) {
mRTMessageField.setRichTextEditing(true, message);
}
// register signature editor
mRTSignatureField = (RTEditText) findViewById(R.id.rtEditText_2);
mRTManager.registerEditor(mRTSignatureField, true);
if (signature != null) {
mRTSignatureField.setRichTextEditing(true, signature);
}
mRTMessageField.requestFocus();
}
Update:
It doesn't show any styles be it inline or external. Now only way is to read the docx file character by character and check font of each and add it suitably in RTEditor.
The underline icon is activated (highlighted) without clicking on it. The text is underlined until you enter space then the underline is removed and the button is de-activated. This happens again as you continue typing.
Hi,
i choose my photos,
and it's crush by oome...
how to fix this???
It's hard to contribute to the project without consistent formatting rules.
Change .gitignore line from
.idea
to
.idea/**/* !.idea/codeStyleSettings.xml
Hello,
I am using RTEditor library in my Android App, but when I load an image from device gallery, I get the below error message. The same error is got, when I use the library Demo app.
Could you please help me, how to fix it.
Best,
01-11 11:54:16.385: E/AndroidRuntime(27585): Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=101, result=-1, data=Intent { dat=content://media/external/images/media/25054 (has extras) }} to activity {com.mqb.pashtostanderdfonts/com.onegravity.rteditor.media.choose.MediaChooserActivity}: com.onegravity.rteditor.api.RTApi$IncorrectInitializationException: Create an RTApi object before calling RTApi.getApplicationContext()
I have problem on my App. I Can't setRichTextEditing OnActivityResult.
But I always get value from second Class. this my code on First Class :
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == 1) {
Log.v("requestCode","1");
if(resultCode == Activity.RESULT_OK){
Log.v("RESULT_OK","Ya");
String target=data.getStringExtra(Variabel.target);
if(target.equals("isi_artikel")){
s_isi_artikel=data.getStringExtra(Variabel.content);
RTEditText isi_artikel=(RTEditText) findViewById(R.id.isi_artikel);
isi_artikel.setRichTextEditing(true,s_isi_artikel);
Log.v("s_isi_artikel",s_isi_artikel); // always get from second class
}
}
if (resultCode == Activity.RESULT_CANCELED) {
Log.v("RESULT_OK","No");
}
}
}
so how to fix it ?
Please, update gradle version with the latest commits for EventBus 3.0.0 and material dialogs v.0.8.5.5 that resolves an issue with the latest support library.
Thank you for your great efforts, this works perfectly on LTR languages.
But when we use RTL languages, the direction is reversed, the opposite of the alignment icons.
If you can please fix it.
Thanks.
I'd be great to have this library in Maven Central.
Hello
instead of <b>Hello</b>
I get this error when compile the project, I'm already using material dialog library and want to exclude the one which you are using in this project. Please guide how can i exclude while adding dependencies
Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.
java.util.zip.ZipException: duplicate entry: com/afollestad/materialdialogs/BuildConfig.class
To reproduce
<strike>testing abc</strike>
mRteEditText.setRichTextEditing(true, "<strike>testing abc</strike>");
Demo app crashes on setting link and corresponding text.
Here is my code
protected void onCreate(Bundle savedInstanceState) {
setTheme(R.style.ThemeLight);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_app_form);
RTApi rtApi = new RTApi(this, new RTProxyImpl(this), new RTMediaFactoryImpl(this, true));
rtManager = new RTManager(rtApi, savedInstanceState);
ViewGroup toolbarContainer = (ViewGroup) findViewById(R.id.rte_toolbar_container);
RTToolbar rtToolbar0 = (RTToolbar) findViewById(R.id.rte_toolbar);
if (rtToolbar0 != null) {
rtManager.registerToolbar(toolbarContainer, rtToolbar0);
}
RTToolbar rtToolbar1 = (RTToolbar) findViewById(R.id.rte_toolbar_character);
if (rtToolbar1 != null) {
rtManager.registerToolbar(toolbarContainer, rtToolbar1);
}
// register toolbar 2 (if it exists)
RTToolbar rtToolbar2 = (RTToolbar) findViewById(R.id.rte_toolbar_paragraph);
if (rtToolbar2 != null) {
rtManager.registerToolbar(toolbarContainer, rtToolbar2);
}
initialize();
}
When i start this activity, A black empty screen become appear for 4-5 seconds and then activity starts. Is there any problem in my implementation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.