本文整理汇总了Java中com.byoutline.secretsauce.activities.WebViewActivityV7类的典型用法代码示例。如果您正苦于以下问题:Java WebViewActivityV7类的具体用法?Java WebViewActivityV7怎么用?Java WebViewActivityV7使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WebViewActivityV7类属于com.byoutline.secretsauce.activities包,在下文中一共展示了WebViewActivityV7类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setAnchorView
import com.byoutline.secretsauce.activities.WebViewActivityV7; //导入依赖的package包/类
@Override
public void setAnchorView(View view) {
super.setAnchorView(view);
searchButton = new Button(getContext());
searchButton.setText("Back This project");
searchButton.setOnClickListener(ignored -> {
Intent intent = new Intent(getContext(), WebViewActivityV7.class);
intent.putExtra(WebViewActivityV7.BUNDLE_URL, url);
getContext().startActivity(intent);
});
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.RIGHT;
params.topMargin = ViewUtils.dpToPx(4, getContext());
addView(searchButton, params);
}
示例2: getActivityIntentForView
import com.byoutline.secretsauce.activities.WebViewActivityV7; //导入依赖的package包/类
@Nullable
private Intent getActivityIntentForView(@IdRes int viewId) {
switch (viewId) {
case R.id.baseAppCompatActivityBtn:
return new Intent(this, ExampleActivity.class);
case R.id.webVievActivityBtn:
// Remember about adding internet permission to manifest
// and adding WebViewActivityV7 to manifest file.
Intent intent = new Intent(this, WebViewActivityV7.class);
intent.putExtra(WebViewActivityV7.BUNDLE_URL, "https://github.com/byoutline/SecretSauce");
return intent;
case R.id.networkChangeReceiverBtn:
return new Intent(this, NetworkChangeActivity.class);
case R.id.roundedBtn:
return new Intent(this, DrawableActivityExample.class);
case R.id.customViewsBtn:
return new Intent(this, CustomFontViewsActivity.class);
case R.id.waitLayoutBtn:
return new Intent(this, WaitActivity.class);
case R.id.rxBtn:
return new Intent(this, RxLifecycleActivity.class);
}
return null;
}
示例3: showWebView
import com.byoutline.secretsauce.activities.WebViewActivityV7; //导入依赖的package包/类
private void showWebView(String url) {
Intent intent = new Intent(this, WebViewActivityV7.class);
showWebView(url, intent);
}