本文整理匯總了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);
}