Skip to content

Commit

Permalink
#248 [FIX] : Banner
Browse files Browse the repository at this point in the history
- about charo 이미지 변경
- drive theater 배경 색 및 radius 변경
- glide requestmanager 활용
  • Loading branch information
HJinhee committed Apr 8, 2022
1 parent 8499f2c commit d81112a
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class BannerAboutCharoActivity : AppCompatActivity() {

override fun createFragment(position: Int): Fragment {
return when(position){
0 -> BannerAboutCharoFragment(BannerAboutCharo(R.drawable.onboarding_background_1_android, "구경하고","사람들의 드라이브 경험을\n자유롭게 구경해보세요."))
1 -> BannerAboutCharoFragment(BannerAboutCharo(R.drawable.onboarding_background_2_android, "검색하고","원하는 지역과 테마로\n맞춤 드라이브 코스를 찾아보세요."))
else -> BannerAboutCharoFragment(BannerAboutCharo(R.drawable.onboarding_background_3_android, "작성하고","나만의 드라이브 코스를\n기록하고 공유해보세요."))
0 -> BannerAboutCharoFragment(BannerAboutCharo(R.drawable.banner_charo_look, "구경하고","사람들의 드라이브 경험을\n자유롭게 구경해보세요."))
1 -> BannerAboutCharoFragment(BannerAboutCharo(R.drawable.banner_charo_search, "검색하고","원하는 지역과 테마로\n맞춤 드라이브 코스를 찾아보세요."))
else -> BannerAboutCharoFragment(BannerAboutCharo(R.drawable.banner_charo_write, "작성하고","나만의 드라이브 코스를\n기록하고 공유해보세요."))
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.RequestManager
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.charo.android.R
Expand All @@ -13,18 +14,20 @@ import com.charo.android.databinding.ActivityBannerDriveTheaterBinding
class BannerDriveTheaterActivity : AppCompatActivity() {
private lateinit var binding: ActivityBannerDriveTheaterBinding

private lateinit var requestManager : RequestManager

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

requestManager = Glide.with(this)
glideImg(resources.getDrawable(R.drawable.image_121), binding.ivPaju1)

}

private fun glideImg(img : Drawable, imageView : ImageView){
Glide.with(this)
.load(img)
requestManager.load(img)
.transform(CenterCrop(), RoundedCorners(20))
.into(imageView)
}
Expand Down
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.
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.
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.
Original file line number Diff line number Diff line change
@@ -1,8 +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" />
<corners android:radius="12dp" />
<solid
android:width="1dp"
android:color="@color/gray2_sub_dde2e5" />
android:color="@color/gray1_sub_f8f9fa" />
</shape>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_banner_drive_theater.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
android:paddingHorizontal="15dp"
android:paddingTop="19dp"
android:paddingBottom="21dp"
android:background="@drawable/rectangle_fill_radius_10dp"
android:background="@drawable/rectangle_fill_f8f9fa_12dp"
android:textStyle="normal"
android:textSize="14sp"
android:textColor="#495057"
Expand Down Expand Up @@ -412,7 +412,7 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="15dp"
android:background="@drawable/rectangle_fill_radius_10dp"
android:background="@drawable/rectangle_fill_f8f9fa_12dp"
android:lineSpacingExtra="8.4sp"
android:paddingHorizontal="15dp"
android:paddingTop="19dp"
Expand Down

0 comments on commit d81112a

Please sign in to comment.