カスタムのコントロールバーボタンを組み立てるためのスケルトンコンポーネントです。
| プロパティ | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
rtk_cbb_icon |
reference |
❌ | - | ボタンアイコンの Drawable リソース |
rtk_cbb_variant |
button | horizontal |
❌ | button |
レイアウトのバリエーション |
rtk_cbb_showText |
boolean |
❌ | true |
ラベルテキストを表示するかどうか |
rtk_cbb_iconSize |
dimension |
❌ | - | アイコンのサイズ |
rtk_cbb_iconPadding |
dimension |
❌ | - | アイコンとラベルの間のパディング |
| メソッド | パラメーター | 説明 |
|---|---|---|
applyDesignTokens |
designTokens: RtkDesignTokens |
テーマ用のカスタムデザイントークンを適用します |
setIconDrawable |
drawable: Drawable? |
ボタンのアイコンを設定します |
setIconTint |
color: Int |
アイコンのティントカラーを設定します |
setText |
text: String? |
ボタンのラベルテキストを設定します |
setProcessingState |
processing: Boolean |
読み込み中のスピナーを表示または非表示にします |
<com.cloudflare.realtimekit.ui.view.controlbarbuttons.RtkControlBarButton
android:id="@+id/rtk_control_bar_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:rtk_cbb_showText="true"
app:rtk_cbb_variant="button" />val buttonView = findViewById<RtkControlBarButton>(R.id.rtk_control_bar_button)
buttonView.setOnClickListener { }