Skip to content

Commit

Permalink
#248 [FEAT] : Banner - Drive In Theater
Browse files Browse the repository at this point in the history
- 배너 4개 중 3번째 이미지 상세 구현 (클릭 후 들어가는 화면)
  • Loading branch information
HJinhee committed Apr 6, 2022
1 parent f979d20 commit 8499f2c
Show file tree
Hide file tree
Showing 52 changed files with 664 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
android:theme="@style/Theme.ChaRoAndroid"
android:usesCleartextTraffic="true"
tools:replace="android:appComponentFactory">
<activity
android:name=".presentation.ui.home.BannerDriveTheaterActivity"
android:exported="true" />
<activity
android:name=".presentation.ui.home.BannerAboutCharoActivity"
android:exported="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.charo.android.presentation.ui.home

import android.graphics.drawable.Drawable
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.charo.android.R
import com.charo.android.databinding.ActivityBannerDriveTheaterBinding

class BannerDriveTheaterActivity : AppCompatActivity() {
private lateinit var binding: ActivityBannerDriveTheaterBinding

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = ActivityBannerDriveTheaterBinding.inflate(layoutInflater)
setContentView(binding.root)

glideImg(resources.getDrawable(R.drawable.image_121), binding.ivPaju1)

}

private fun glideImg(img : Drawable, imageView : ImageView){
Glide.with(this)
.load(img)
.transform(CenterCrop(), RoundedCorners(20))
.into(imageView)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.charo.android.databinding.ItemHomeViewpagerLocalBinding
import com.charo.android.domain.model.home.BannerLocal
import com.charo.android.domain.model.home.BannerRoad
import com.charo.android.presentation.ui.home.BannerAboutCharoActivity
import com.charo.android.presentation.ui.home.BannerDriveTheaterActivity

class HomeViewPagerLocalAdapter() : RecyclerView.Adapter<HomeViewPagerLocalAdapter.HomeViewPagerViewHolder>() {
private val _banner = mutableListOf<BannerLocal>()
Expand Down Expand Up @@ -48,7 +49,7 @@ class HomeViewPagerLocalAdapter() : RecyclerView.Adapter<HomeViewPagerLocalAdapt

}
2->{

activity.startActivity(Intent(activity, BannerDriveTheaterActivity::class.java))
}
3->{
activity.startActivity(Intent(activity, BannerAboutCharoActivity::class.java))
Expand Down
Binary file added app/src/main/res/drawable-hdpi/banner_back_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/banner_back_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/ic_charo_car_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/image_cgv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/image_osiria.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/banner_back_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/banner_back_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ic_charo_car_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/image_cgv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/image_osiria.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/banner_back_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/banner_back_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/image_cgv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/image_osiria.png
Binary file added app/src/main/res/drawable-xxhdpi/image_cgv.png
Binary file added app/src/main/res/drawable-xxxhdpi/image_cgv.png
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/rectangle_fill_radius_10dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp" />
<solid
android:width="1dp"
android:color="@color/gray2_sub_dde2e5" />
</shape>
Binary file added app/src/main/res/font/jejugothic_regular.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_banner_about_charo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/toolbar_banner"
android:background="@drawable/banner_img_four"
android:background="@drawable/banner_img_four_detail"
/>
<View
android:layout_width="0dp"
Expand Down
Loading

0 comments on commit 8499f2c

Please sign in to comment.