本文整理汇总了Java中us.feras.mdv.MarkdownView.loadMarkdown方法的典型用法代码示例。如果您正苦于以下问题:Java MarkdownView.loadMarkdown方法的具体用法?Java MarkdownView.loadMarkdown怎么用?Java MarkdownView.loadMarkdown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类us.feras.mdv.MarkdownView
的用法示例。
在下文中一共展示了MarkdownView.loadMarkdown方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import us.feras.mdv.MarkdownView; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
MarkdownView webView = new MarkdownView(this);
setContentView(webView);
webView.loadMarkdown(getIntent().getStringExtra("text"), "file:///android_asset/classic_theme_markdown.css");
}
示例2: initView
import us.feras.mdv.MarkdownView; //导入方法依赖的package包/类
private void initView() {
mCountry = (TextView)findViewById(R.id.company_country_tv);
mTitleTV = (TextView)findViewById(R.id.title_speaker_textView);
mBioTV = (MarkdownView )findViewById(R.id.bio_speaker_textView);
collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsing_tool_bar);
tagsRV = (RecyclerView)findViewById(R.id.tags_recycler_view);
socialRV = (RecyclerView)findViewById(R.id.social_recycler_view);
collapsingToolbarLayout.setTitle(mSpeaker.name);
collapsingToolbarLayout.setTitleEnabled(true);
collapsingToolbarLayout.setCollapsedTitleTextColor(getResources().getColor(android.R.color.white));
collapsingToolbarLayout.setExpandedTitleColor(getResources().getColor(android.R.color.white));
// collapsingToolbarLayout.setContentScrimColor(palette.getMutedColor(primary));
// collapsingToolbarLayout.setStatusBarScrimColor(palette.getDarkMutedColor(primaryDark));
SocialAdapter socialAdapter = new SocialAdapter( mSpeaker.socials,this);
LinearLayoutManager layoutManager
= new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
socialRV.setLayoutManager(layoutManager);
socialRV.setAdapter(socialAdapter);
TagAdapter tagAdapter = new TagAdapter( mSpeaker.tags ,this);
LinearLayoutManager layoutTagManager
= new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
tagsRV.setLayoutManager(layoutTagManager);
tagsRV.setAdapter(tagAdapter);
mCountry.setText(mSpeaker.company+", "+ mSpeaker.country);
mTitleTV.setText(mSpeaker.title);
mBioTV.loadMarkdown(mSpeaker.bio);
Log.e("Tag", mSpeaker.toString());
}
示例3: onCreateView
import us.feras.mdv.MarkdownView; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_preview_notice, container, false);
mdView = (MarkdownView) view.findViewById(R.id.markdownView);
mdView.loadMarkdown(notice.getContent());
notice.addNoticeListener(this);
return view;
}
示例4: initView
import us.feras.mdv.MarkdownView; //导入方法依赖的package包/类
private void initView() {
mTitleTV = (TextView)findViewById(R.id.title_news_textView);
mContentTV = (MarkdownView)findViewById(R.id.news_detel_textView);
mTitleTV.setText(mNews.getTitle());
mTitleTV.setBackgroundColor(Color.parseColor(mNews.getPrimaryColor()));
mContentTV.loadMarkdown(mNews.fullText);
}