本文整理汇总了Java中com.jakewharton.rxbinding.view.RxView.clicks方法的典型用法代码示例。如果您正苦于以下问题:Java RxView.clicks方法的具体用法?Java RxView.clicks怎么用?Java RxView.clicks使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jakewharton.rxbinding.view.RxView
的用法示例。
在下文中一共展示了RxView.clicks方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeViews
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
private void initializeViews(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes)
{
String buttonText;
final TypedArray a = context.getTheme()
.obtainStyledAttributes(attrs, R.styleable.ListViewCard, defStyleAttr, 0);
try
{
mAvatarAlpha = a.getFloat(R.styleable.ListViewCard_rxw_avatarAlpha, 1f);
mAvatarTint = a.getColor(R.styleable.ListViewCard_rxw_avatarTint, Color.BLACK);
mDenseListItem = a.getBoolean(R.styleable.ListViewCard_rxw_denseLayout, false);
mIconAlpha = a.getFloat(R.styleable.ListViewCard_rxw_iconAlpha, .54f);
buttonText = a.getString(R.styleable.ListViewCard_rxw_buttonText);
}
finally
{
a.recycle();
}
View cardView = inflate(context, R.layout.rxw_list_view_card, this);
FrameLayout frameLayout = (FrameLayout) cardView.findViewById(R.id.button);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
layoutParams.height = (int) (mDenseListItem ? getResources().getDimension(R.dimen.rxw_dense_avatar_with_two_lines_and_icon_tile_height)
: getResources().getDimension(R.dimen.rxw_avatar_with_two_lines_and_icon_tile_height));
frameLayout.setLayoutParams(layoutParams);
mButton = (TextView) cardView.findViewById(R.id.button_text);
mButton.setText(buttonText);
mButtonClicks = RxView.clicks(frameLayout);
mContainer = (LinearLayout) cardView.findViewById(R.id.container);
mContainer.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
}
示例2: onButtonClicked
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override
public Observable<Void> onButtonClicked() {
return RxView.clicks(mButton);
}
示例3: loginObs
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override
public Observable<Void> loginObs() {
return RxView.clicks(loginButton);
}
示例4: showAptoideLoginAreaClick
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> showAptoideLoginAreaClick() {
return RxView.clicks(loginSelectionButton);
}
示例5: getSearchObservable
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@NonNull
@Override
public Observable<Void> getSearchObservable() {
return RxView.clicks(searchName);
}
示例6: getSelectTypeObservable
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@NonNull
@Override
public Observable<Void> getSelectTypeObservable() {
return RxView.clicks(energyDensityUnit);
}
示例7: closeEvent
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> closeEvent() {
return RxView.clicks(closeButton);
}
示例8: floatingActionButtonClicked
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> floatingActionButtonClicked() {
return RxView.clicks(floatingActionButton);
}
示例9: cancelButtonClick
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> cancelButtonClick() {
return RxView.clicks(cancelUserProfile);
}
示例10: mealTimeClicked
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@NonNull
@Override
public Observable<Void> mealTimeClicked() {
return RxView.clicks(mealTime);
}
示例11: startSelection
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> startSelection() {
return RxView.clicks(startButton);
}
示例12: clickObservable
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@NonNull
public Observable<Void> clickObservable() {
return RxView.clicks(root);
}
示例13: goToNextPageClick
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> goToNextPageClick() {
return RxView.clicks(nextIcon);
}
示例14: editStoreClick
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> editStoreClick() {
return RxView.clicks(userStoreEditButton);
}
示例15: showAptoideSignUpAreaClick
import com.jakewharton.rxbinding.view.RxView; //导入方法依赖的package包/类
@Override public Observable<Void> showAptoideSignUpAreaClick() {
return RxView.clicks(signUpSelectionButton);
}