You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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);
}
}
The text was updated successfully, but these errors were encountered:
What error? I see a lot of code but no error message (as in stack trace)?
My guess though would be that you're not setting the theme for the Activity and/or the theme isn't defining all the attributes the toolbar is using.
I noticed that the readme doesn't elaborate on the theming so I just added a chapter about that. Please have a look at it.
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"
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.1gravity:android-rteditor:1.1.6'
}
Activity.xml
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 {
}
The text was updated successfully, but these errors were encountered: