本文整理汇总了Java中com.thefinestartist.finestwebview.FinestWebView类的典型用法代码示例。如果您正苦于以下问题:Java FinestWebView类的具体用法?Java FinestWebView怎么用?Java FinestWebView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FinestWebView类属于com.thefinestartist.finestwebview包,在下文中一共展示了FinestWebView类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: openInternal
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
/**
* App 内部打开一个网页
*
* @param context
* @param url
*/
public static void openInternal(Context context, String url) {
new FinestWebView.Builder(context)
.stringResCopiedToClipboard(R.string.copied_to_clipboard)
.stringResRefresh(R.string.menu_action_refresh)
.stringResShareVia(R.string.menu_action_share)
.stringResCopyLink(R.string.menu_action_copy)
.stringResOpenWith(R.string.menu_action_openwith)
.titleColor(context.getResources().getColor(R.color.white))
.toolbarColor(context.getResources().getColor(ThemeUtil.getCurrentColorPrimary(context)))
.statusBarColor(context.getResources().getColor(ThemeUtil.getCurrentColorPrimary(context)))
.swipeRefreshColor(context.getResources().getColor(ThemeUtil.getCurrentColorPrimary(context)))
.showUrl(false)
.webViewDisplayZoomControls(true)
.webViewSupportZoom(true)
.webViewBuiltInZoomControls(true)
.iconDefaultColor(context.getResources().getColor(R.color.Color_White))
.show(url);
}
开发者ID:li-yu,项目名称:FakeWeather,代码行数:25,代码来源:WebUtils.java
示例2: openFinesWebViewActivity
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
public void openFinesWebViewActivity(Context context, String articleUrl, String articleSource) {
new FinestWebView.Builder(context).theme(R.style.FinestWebViewTheme)
.titleDefault(articleSource)
.showUrl(false)
.statusBarColorRes(R.color.bluePrimaryDark)
.toolbarColorRes(R.color.bluePrimary)
.titleColorRes(R.color.finestWhite)
.urlColorRes(R.color.bluePrimaryLight)
.iconDefaultColorRes(R.color.finestWhite)
.progressBarColorRes(R.color.finestWhite)
.stringResCopiedToClipboard(R.string.copied_to_clipboard)
.stringResCopiedToClipboard(R.string.copied_to_clipboard)
.stringResCopiedToClipboard(R.string.copied_to_clipboard)
.showSwipeRefreshLayout(true)
.swipeRefreshColorRes(R.color.bluePrimaryDark)
.menuSelector(R.drawable.selector_light_theme)
.menuTextGravity(Gravity.CENTER)
.menuTextPaddingRightRes(R.dimen.defaultMenuTextPaddingLeft)
.dividerHeight(0)
.gradientDivider(false)
.setCustomAnimations(R.anim.slide_left_in, R.anim.hold, R.anim.hold, R.anim.slide_right_out)
.show(articleUrl);
}
开发者ID:oantajames,项目名称:clean-news,代码行数:24,代码来源:DemoAppNavigator.java
示例3: convert
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
@Override
protected void convert(BaseViewHolder viewHolder, final GankM item) {
viewHolder.setText(R.id.title, item.getTitle())
.setText(R.id.type, item.getType());
viewHolder.getView(R.id.ll_view).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
/**
* 跳转至webView
*/
new FinestWebView.Builder(mContext).show(item.getUrl());
}
});
}
开发者ID:jeasinlee,项目名称:AndroidBasicLibs,代码行数:16,代码来源:QuickAdapter.java
示例4: load
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
/**
* 加载html 片段
*
* @param context
* @param html
*/
public static void load(Context context, String html) {
new FinestWebView.Builder(context)
.showIconMenu(false)
.titleColor(context.getResources().getColor(R.color.white))
.toolbarColor(context.getResources().getColor(ThemeUtil.getCurrentColorPrimary(context)))
.statusBarColor(context.getResources().getColor(ThemeUtil.getCurrentColorPrimary(context)))
.swipeRefreshColor(context.getResources().getColor(ThemeUtil.getCurrentColorPrimary(context)))
.showUrl(false)
.iconDefaultColor(context.getResources().getColor(R.color.Color_White))
.load(html, "text/html; charset=UTF-8", null);//妈卖批,加载中文乱码
}
开发者ID:li-yu,项目名称:FakeWeather,代码行数:18,代码来源:WebUtils.java
示例5: shouldOverrideUrlLoading
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
@TargetApi(Build.VERSION_CODES.N)
@Override
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
new FinestWebView.Builder(SSApplication.get()).show(request.getUrl().toString());
return true;
}
开发者ID:Adventech,项目名称:sabbath-school-android,代码行数:8,代码来源:SSReadingView.java
示例6: onClick
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
@Override
public void onClick(View view) {
if(mTeam==null) {
return;
}
new FinestWebView.Builder((Activity)mContext)
.gradientDivider(false)
.show(mTeam.getTeamurl());
}
开发者ID:SilenceDut,项目名称:NBAPlus,代码行数:10,代码来源:TeamSortAdapter.java
示例7: onClick
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.stats:
new FinestWebView.Builder((Activity)mContext)
.gradientDivider(false)
.show(mGameEntity.getStateUrl());
break;
default:
new FinestWebView.Builder((Activity)mContext)
.gradientDivider(false)
.show(mGameEntity.getStatusUrl());
break;
}
}
开发者ID:SilenceDut,项目名称:NBAPlus,代码行数:16,代码来源:GamesAdapter.java
示例8: onClick
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.activity_group:
updateItemSelection(homeIcon, homeTittle, R.drawable.ic_action_house_active, getResources().getString(R.string.activity));
if (listAllContent != null)
setAllContent();
break;
case R.id.electronic_group:
updateItemSelection(electronicsIcon, electronicsTittle, R.drawable.ic_action_plug_active, getResources().getString(R.string.electronics));
if (listAllContent != null)
setAds();
break;
case R.id.furniture_group:
updateItemSelection(furnitureIcon, furnitureTittle, R.drawable.ic_action_furniture_active, getResources().getString(R.string.furniture));
if (listAllContent != null)
setJobs();
break;
case R.id.ajab_gajab_group:
updateItemSelection(furnitureIcon, furnitureTittle, R.drawable.ic_action_furniture_active, getResources().getString(R.string.ajab_gajab));
if (listAllContent != null)
setSelectedCategory("1");
break;
case R.id.desh_group:
updateItemSelection(furnitureIcon, furnitureTittle, R.drawable.ic_action_furniture_active, getResources().getString(R.string.desh));
if (listAllContent != null)
setSelectedCategory("2");
break;
case R.id.videsh_group:
updateItemSelection(furnitureIcon, furnitureTittle, R.drawable.ic_action_furniture_active, getResources().getString(R.string.videsh));
if (listAllContent != null)
setSelectedCategory("3");
break;
case R.id.rashifal_group:
updateItemSelection(furnitureIcon, furnitureTittle, R.drawable.ic_action_furniture_active, getResources().getString(R.string.rashifal));
if (listAllContent != null)
setSelectedCategory("4");
break;
case R.id.health_tips_group:
updateItemSelection(furnitureIcon, furnitureTittle, R.drawable.ic_action_furniture_active, getResources().getString(R.string.health_tips));
if (listAllContent != null)
setSelectedCategory("5");
break;
case R.id.epaper:
new FinestWebView.Builder(getApplicationContext()).webViewBuiltInZoomControls(true).webViewDisplayZoomControls(true).webViewSupportZoom(true).show("http://globalherald.in/national-herald/");
break;
case R.id.election_keeda_group:
updateItemSelection(furnitureIcon, furnitureTittle, R.drawable.ic_action_furniture_active, getResources().getString(R.string.election_keeda));
if (listAllContent != null)
setSelectedCategory("6");
break;
case R.id.contactus_group:
showContactUSDialog();
break;
case R.id.upload_news_group:
startActivity(new Intent(this, UploadNewsActivity.class));
break;
case R.id.epaper_group:
new FinestWebView.Builder(getApplicationContext()).webViewBuiltInZoomControls(true).webViewDisplayZoomControls(true).webViewSupportZoom(true).show("http://globalherald.in/national-herald/");
break;
}
}
开发者ID:rakshitsoni02,项目名称:newsApp,代码行数:63,代码来源:FeedsActivity.java
示例9: produceOne
import com.thefinestartist.finestwebview.FinestWebView; //导入依赖的package包/类
public void produceOne(ChartView chart, Runnable action){
if(getActivity()==null) {
return;
}
int currentColor;
int preClor;
preClor=mShowDaily?PRECOLOR:mCurrentColor;
currentColor=mShowDaily?mCurrentColor:PRECOLOR;
prepareStat();
AnimatorUtils.showCardBackgroundColorAnimation(mCardItem, preClor, currentColor, 400);
if(mLables.length<5||mStatValues.length<5) {
return;
}
barChart = (BarChartView) chart;
barChart.setOnEntryClickListener(new OnEntryClickListener() {
@Override
public void onClick(int setIndex, int entryIndex, Rect rect) {
new FinestWebView.Builder(getActivity())
.gradientDivider(false)
.show(mPlayerUrls[entryIndex]);
}
});
Tooltip tooltip = new Tooltip(getActivity(), R.layout.barchart_one_tooltip);
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
tooltip.setEnterAnimation(PropertyValuesHolder.ofFloat(View.ALPHA, 1));
tooltip.setExitAnimation(PropertyValuesHolder.ofFloat(View.ALPHA, 0));
}
barChart.setTooltips(tooltip);
BarSet barSet = new BarSet(mLables, mStatValues);
barSet.setColor(preClor);
barChart.addData(barSet);
barChart.setSetSpacing(Tools.fromDpToPx(-15));
barChart.setBarSpacing(Tools.fromDpToPx(20));
barChart.setRoundCorners(Tools.fromDpToPx(4));
gridPaint = new Paint();
gridPaint.setColor(CHART_TEXT_COLOR);
gridPaint.setStyle(Paint.Style.STROKE);
gridPaint.setAntiAlias(true);
gridPaint.setStrokeWidth(Tools.fromDpToPx(.75f));
barChart.setBorderSpacing(5)
.setAxisBorderValues(0, mMax, STEP)
.setGrid(BarChartView.GridType.FULL, mMax, 6, gridPaint)
.setYAxis(false)
.setXLabels(XController.LabelPosition.OUTSIDE)
.setYLabels(YController.LabelPosition.OUTSIDE)
.setLabelsColor(CHART_TEXT_COLOR)
.setAxisColor(CHART_TEXT_COLOR);
int[] order = {2, 1, 3, 0, 4};
final Runnable auxAction = action;
Runnable chartOneAction = new Runnable() {
@Override
public void run() {
showTooltipOne();
auxAction.run();
}
};
barChart.show(new Animation()
.setOverlap(.5f, order)
.setEndAction(chartOneAction));
}
开发者ID:SilenceDut,项目名称:NBAPlus,代码行数:71,代码来源:BarFragment.java
注:本文中的com.thefinestartist.finestwebview.FinestWebView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论