Skip to content

Commit

Permalink
Merge pull request #251 from tukcomCD2024/Backend#/androidAISend수정
Browse files Browse the repository at this point in the history
feat: android ai 추천 이미지 10개로 늘리기
  • Loading branch information
Doncham authored Jun 15, 2024
2 parents 3e4c42d + 3f50c85 commit 185248c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.sharenote

import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.net.Uri
Expand All @@ -17,6 +18,7 @@ class ImageSelect : AppCompatActivity() {
// 클래스 멤버 변수로 선언
private lateinit var imageViews: List<ImageView>
private lateinit var completeButton: Button
@SuppressLint("MissingInflatedId")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_image_select)
Expand All @@ -32,7 +34,11 @@ class ImageSelect : AppCompatActivity() {
findViewById<ImageView>(R.id.imageView3),
findViewById<ImageView>(R.id.imageView4),
findViewById<ImageView>(R.id.imageView5),
findViewById<ImageView>(R.id.imageView6)
findViewById<ImageView>(R.id.imageView6),
findViewById<ImageView>(R.id.imageView7),
findViewById<ImageView>(R.id.imageView8),
findViewById<ImageView>(R.id.imageView9),
findViewById<ImageView>(R.id.imageView10)
)


Expand Down
51 changes: 49 additions & 2 deletions android/app/src/main/res/layout/activity_image_select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
android:layout_height="0dp"
android:layout_weight="1"
android:columnCount="2"
android:rowCount="3"
android:rowCount="5"
android:padding="4dp">

<ImageView
Expand Down Expand Up @@ -87,6 +87,54 @@
android:src="@drawable/add_note"
android:clickable="true"
android:focusable="true" />
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView7"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:scaleType="fitCenter"
android:src="@drawable/add_note"
android:clickable="true"
android:focusable="true" />
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView8"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:scaleType="fitCenter"
android:src="@drawable/add_note"
android:clickable="true"
android:focusable="true" />
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView9"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:scaleType="fitCenter"
android:src="@drawable/add_note"
android:clickable="true"
android:focusable="true" />
<ImageView
android:adjustViewBounds="true"
android:id="@+id/imageView10"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:scaleType="fitCenter"
android:src="@drawable/add_note"
android:clickable="true"
android:focusable="true" />

</GridLayout>

Expand All @@ -96,5 +144,4 @@
android:layout_height="wrap_content"
android:text="선택 완료"
android:layout_margin="8dp"/>

</LinearLayout>

0 comments on commit 185248c

Please sign in to comment.