InputPanel 初步+1
This commit is contained in:
		
							parent
							
								
									d721fa025c
								
							
						
					
					
						commit
						636375fe15
					
				|  | @ -0,0 +1,22 @@ | ||||||
|  | package com.remax.visualnovel.ui.Chat | ||||||
|  | 
 | ||||||
|  | import android.content.Context | ||||||
|  | import android.util.AttributeSet | ||||||
|  | import android.widget.FrameLayout | ||||||
|  | import com.dylanc.viewbinding.nonreflection.inflate | ||||||
|  | import com.remax.visualnovel.databinding.ChatInputpanelBinding | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class InputPanel @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) | ||||||
|  |     : FrameLayout(context, attrs, defStyleAttr) { | ||||||
|  | 
 | ||||||
|  |     private var binding: ChatInputpanelBinding? = null | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     init { | ||||||
|  |         binding = inflate(ChatInputpanelBinding::inflate) | ||||||
|  |         binding?.run { | ||||||
|  | 
 | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
|  | @ -26,4 +26,16 @@ | ||||||
|         app:textColorToken="@string/color_txt_secondary_press" |         app:textColorToken="@string/color_txt_secondary_press" | ||||||
|         /> |         /> | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  |     <com.remax.visualnovel.ui.Chat.InputPanel | ||||||
|  |         android:id="@+id/input_panel" | ||||||
|  |         android:layout_width="match_parent" | ||||||
|  |         android:layout_height="wrap_content" | ||||||
|  | 
 | ||||||
|  |         app:layout_constraintStart_toStartOf="parent" | ||||||
|  |         app:layout_constraintEnd_toEndOf="parent" | ||||||
|  |         app:layout_constraintBottom_toBottomOf="parent" | ||||||
|  |         /> | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| </androidx.constraintlayout.widget.ConstraintLayout> | </androidx.constraintlayout.widget.ConstraintLayout> | ||||||
|  | @ -61,6 +61,7 @@ | ||||||
|     </com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout> |     </com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| </com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout> | </com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue