| | |
| | | import com.google.android.material.bottomsheet.BottomSheetDialog |
| | | import kotlinx.coroutines.launch |
| | | import com.example.firstapp.view.UnderlineTextView |
| | | import com.example.firstapp.activity.ReminderListActivity |
| | | |
| | | class HomeFragment : Fragment() { |
| | | |
| | |
| | | _binding = null |
| | | } |
| | | |
| | | private fun loadAdvertisements() { |
| | | // 使用 Glide 加载网络图片 |
| | | Glide.with(this) |
| | | .load("http://192.168.1.235:9999/advertisement/up.png") |
| | | .into(binding.adBanner) |
| | | |
| | | Glide.with(this) |
| | | .load("http://192.168.1.235:9999/advertisement/down.png") |
| | | .into(binding.bottomAdBanner) |
| | | } |
| | | // private fun loadAdvertisements() { |
| | | // // 使用 Glide 加载网络图片 |
| | | // Glide.with(this) |
| | | // .load("http://192.168.1.235:9999/advertisement/up.png") |
| | | // .into(binding.adBanner) |
| | | // |
| | | // Glide.with(this) |
| | | // .load("http://192.168.1.235:9999/advertisement/down.png") |
| | | // .into(binding.bottomAdBanner) |
| | | // } |
| | | |
| | | // 设置分类选择器 检查会员状态 |
| | | private fun setupCategorySelector() { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 添加提醒按钮点击事件 |
| | | // binding.reminderButton.setOnClickListener { |
| | | // startActivity(Intent(requireContext(), ReminderListActivity::class.java)) |
| | | // } |
| | | } |
| | | |
| | | private fun showCategorySelectorDialog() { |