콘텐츠 메인 홈
- 콘텐츠 마켓 -> 보이스온 으로 변경
This commit is contained in:
		| @@ -16,6 +16,11 @@ import androidx.media3.common.util.UnstableApi | ||||
| import androidx.recyclerview.widget.GridLayoutManager | ||||
| import androidx.recyclerview.widget.LinearLayoutManager | ||||
| import androidx.recyclerview.widget.RecyclerView | ||||
| import com.bumptech.glide.Glide | ||||
| import com.bumptech.glide.load.MultiTransformation | ||||
| import com.bumptech.glide.load.resource.bitmap.CenterCrop | ||||
| import com.bumptech.glide.load.resource.bitmap.RoundedCorners | ||||
| import com.bumptech.glide.request.RequestOptions | ||||
| import com.zhpan.bannerview.BaseBannerAdapter | ||||
| import com.zhpan.indicator.enums.IndicatorSlideMode | ||||
| import com.zhpan.indicator.enums.IndicatorStyle | ||||
| @@ -92,6 +97,20 @@ class AudioContentMainTabHomeFragment : BaseFragment<FragmentAudioContentMainTab | ||||
|     private fun setupView() { | ||||
|         loadingDialog = LoadingDialog(requireActivity(), layoutInflater) | ||||
|  | ||||
|         Glide | ||||
|             .with(this) | ||||
|             .load(R.mipmap.ic_launcher) | ||||
|             .apply( | ||||
|                 RequestOptions().transform( | ||||
|                     MultiTransformation( | ||||
|                         CenterCrop(), | ||||
|                         RoundedCorners(6.7f.dpToPx().toInt()) | ||||
|                     ) | ||||
|                 ) | ||||
|             ) | ||||
|             .placeholder(R.drawable.bg_black) | ||||
|             .into(binding.ivLogo) | ||||
|  | ||||
|         if (SharedPreferenceManager.role == MemberRole.CREATOR.name) { | ||||
|             binding.llUploadContent.visibility = View.VISIBLE | ||||
|             binding.llUploadContent.setOnClickListener { | ||||
|   | ||||
| @@ -22,16 +22,27 @@ | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:layout_marginHorizontal="13.3dp"> | ||||
|  | ||||
|                 <ImageView | ||||
|                     android:id="@+id/iv_logo" | ||||
|                     android:layout_width="33.3dp" | ||||
|                     android:layout_height="33.3dp" | ||||
|                     android:layout_alignParentStart="true" | ||||
|                     android:layout_centerVertical="true" | ||||
|                     android:layout_marginEnd="8dp" | ||||
|                     android:contentDescription="@null" | ||||
|                     tools:src="@mipmap/ic_launcher" /> | ||||
|  | ||||
|                 <TextView | ||||
|                     android:id="@+id/tv_title" | ||||
|                     android:layout_width="0dp" | ||||
|                     android:layout_height="wrap_content" | ||||
|                     android:layout_alignParentStart="true" | ||||
|                     android:layout_centerVertical="true" | ||||
|                     android:layout_toStartOf="@+id/iv_alarm" | ||||
|                     android:layout_toEndOf="@+id/iv_logo" | ||||
|                     android:fontFamily="@font/gmarket_sans_bold" | ||||
|                     android:text="콘텐츠 마켓" | ||||
|                     android:textColor="@color/color_3bb9f1" | ||||
|                     android:textSize="21.3sp" /> | ||||
|                     android:text="보이스온" | ||||
|                     android:textColor="@color/white" | ||||
|                     android:textSize="24sp" /> | ||||
|  | ||||
|                 <ImageView | ||||
|                     android:id="@+id/iv_alarm" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user