This commit is contained in:
2026-04-10 15:31:07 +09:00
parent 964655af7f
commit 162d2b7563
18 changed files with 1151 additions and 195 deletions
@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
android:background="#F5F5F5">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="🌐 ML Kit Translator"
android:textSize="20sp"
android:textStyle="bold"
android:layout_marginBottom="16dp"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp">
<TextView
android:id="@+id/tvInputLangStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="원본 (자동 감지)"
android:textColor="#666666"
android:textStyle="bold"
android:layout_centerVertical="true"/>
<TextView
android:id="@+id/tvTtsInput"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"
android:gravity="center"
android:text="volume_up"
android:textSize="24sp"
android:fontFamily="@font/material_symbols"
android:textColor="#2196F3"
android:background="?attr/selectableItemBackgroundBorderless"
android:visibility="gone"/>
</RelativeLayout>
<EditText
android:id="@+id/etInputText"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@android:color/white"
android:gravity="top|start"
android:hint="번역할 내용을 입력하세요."
android:padding="12dp"
android:inputType="textMultiLine"
android:elevation="2dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="#E0E0E0"
android:padding="8dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tvSwap"
android:layout_width="48dp"
android:layout_height="48dp"
android:gravity="center"
android:text="swap_vert"
android:textSize="28sp"
android:fontFamily="@font/material_symbols"
android:textColor="#444444"
android:background="?attr/selectableItemBackgroundBorderless"/>
<Spinner
android:id="@+id/spinnerTargetLang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/tvSwap"
android:layout_centerVertical="true"
android:layout_marginStart="8dp"/>
<Button
android:id="@+id/btnTranslate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:text="번역"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginTop="4dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TTS 속도"
android:textSize="12sp"
android:layout_marginEnd="8dp"/>
<SeekBar
android:id="@+id/sbTtsSpeed"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:max="200"
android:progress="100"/> </LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="번역 결과"
android:textColor="#666666"
android:textStyle="bold"
android:layout_centerVertical="true"/>
<TextView
android:id="@+id/tvTtsOutput"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"
android:gravity="center"
android:text="volume_up"
android:textSize="24sp"
android:fontFamily="@font/material_symbols"
android:textColor="#2196F3"
android:background="?attr/selectableItemBackgroundBorderless"
android:visibility="gone"/>
</RelativeLayout>
<TextView
android:id="@+id/tvOutputText"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@android:color/white"
android:padding="12dp"
android:textIsSelectable="true"
android:textSize="16sp"
android:elevation="2dp"
android:hint="번역 결과가 표시됩니다."/>
<LinearLayout
android:id="@+id/layoutProgress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:visibility="gone"
android:layout_marginTop="8dp">
<ProgressBar android:layout_width="20dp" android:layout_height="20dp" android:layout_marginEnd="8dp" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" text="모델 다운로드 중..." textSize="12sp" />
</LinearLayout>
</LinearLayout>
@@ -147,6 +147,15 @@
android:textStyle="bold"
android:gravity="center"
android:padding="12dp"/>
<TextView
android:id="@+id/btnCopySelected"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="외부폴더로 복사"
android:textStyle="bold"
android:gravity="center"
android:padding="12dp"/>
<TextView
android:id="@+id/btnMoveSelected"
android:layout_width="0dp"
+5 -6
View File
@@ -120,12 +120,11 @@
style="@style/CommonFabStyle"
android:id="@+id/btn_img3"
/>
<!-- <bums.lunatic.launcher.view.FloatingActionButton-->
<!-- app:fab_label="⛏️"-->
<!-- android:visibility="gone"-->
<!-- style="@style/CommonFabStyle"-->
<!-- android:id="@+id/btn_img4"-->
<!-- />-->
<bums.lunatic.launcher.view.FloatingActionButton
app:fab_label="🌐"
style="@style/CommonFabStyle"
android:id="@+id/btn_img4"
/>
<bums.lunatic.launcher.view.FloatingActionButton
app:fab_label="🌍"
+9
View File
@@ -17,6 +17,15 @@
<item name="scrimBackground">@color/almost_transparent</item>
</style>
<style name="Theme.Player" parent="Theme.Material3.DynamicColors.DayNight.NoActionBar">
<!-- Background -->
<item name="android:windowShowWallpaper">false</item>
<item name="android:windowIsTranslucent">false</item>
<item name="android:windowBackground">@android:color/black</item>
</style>
<style name="roundedImageView" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">10dp</item>