저걸 하고 싶었던게 아닌데
챗씨가 알려주는대로 하다보니 저렇게 됐다
근데 은근 간지나서 기록하고 싶어졌다
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#00ff0000"
android:drawableLeft="@drawable/profile_custom"
android:text="힘드신 일 있으시면 숨기지 마시고 언제든지 말씀해주세요\n평점: 4.5"
android:textColor="@color/black"
android:shadowColor="#BF2D2D"
android:shadowDx="0"
android:shadowDy="0"
android:shadowRadius="5"
/>
이제 챗씨 갈구러감니다
와 이상하게 수정했었어서 전에 코드로 하려는데 안 돌아가져서
급하게 티스토리 들어왔네요 코드 써놓기 잘했네용
<ImageButton
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/img"
android:scaleType="centerCrop"
android:padding="0dp"
/>
이미지버튼이라는거 첨 알게 돼서 올려봐요
scaleType이랑 padding으로 버튼이랑 사진을 완전 딱 맞추는지 막 조절하는거래요
'AndroidStudio' 카테고리의 다른 글
안드로이드 스튜디오(3) (0) | 2023.07.17 |
---|---|
안드로이드 스튜디오 공부(2) (0) | 2023.07.17 |
안드로이드 스튜디오 공부 (0) | 2023.06.29 |
댓글