Comments (5)
Probably an issue with the build, usually building it from scratch helps. It's certainly not a code issue or it wouldn't work at all.
from android-rteditor.
You need to be carefully when setup on onCreate(). I experienced this error, but when I reading the example, I know my error.
protected void onCreate(Bundle savedInstanceState) {
String initialMessage = null;
if (savedInstanceState == null) {
Intent intent = getIntent();
initialMessage = getStringExtra(intent, "initialMessage");
} else {
initialMessage = savedInstanceState.getString("initialMessage", "Hello, <b>this</b> is a sample message!");
}
// you need to initial theme
setTheme(R.style.ThemeLight);
// then do this
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// after that, do exactly as demo says
RTApi rtApi = new RTApi(this, new RTProxyImpl(this), new RTMediaFactoryImpl(this, true));
rtManager = new RTManager(rtApi, savedInstanceState);
// define and register toolbar to manager
// define and register editor to manager
// set initial message
}
from android-rteditor.
setTheme needs to be called before setContentView as stated here: http://developer.android.com/reference/android/view/ContextThemeWrapper.html#setTheme(int)
from android-rteditor.
setTheme(R.style.ThemeLight);
give me this error cannot find symbol variable ThemeLight
from android-rteditor.
@cristenicu you didn't define the ThemeLight in your application (theme.xml or style.xml or whatever you call it). Please check out the demo app code (theme.xml).
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.