diff --git a/android/app/src/main/kotlin/app/cogwheel/conduit/ConduitVoiceInteractionSession.kt b/android/app/src/main/kotlin/app/cogwheel/conduit/ConduitVoiceInteractionSession.kt index 987206b..1e24238 100644 --- a/android/app/src/main/kotlin/app/cogwheel/conduit/ConduitVoiceInteractionSession.kt +++ b/android/app/src/main/kotlin/app/cogwheel/conduit/ConduitVoiceInteractionSession.kt @@ -10,20 +10,48 @@ import android.app.assist.AssistContent class ConduitVoiceInteractionSession(context: Context) : VoiceInteractionSession(context) { private var capturedContext: String? = null - private var summarizeButton: android.widget.Button? = null override fun onCreateContentView(): android.view.View { val view = layoutInflater.inflate(app.cogwheel.conduit.R.layout.assistant_overlay, null) - summarizeButton = view.findViewById(app.cogwheel.conduit.R.id.btn_summarize) + + // Share screen button + val shareScreenButton = view.findViewById(app.cogwheel.conduit.R.id.btn_share_screen) + shareScreenButton?.setOnClickListener { + // TODO: Implement share screen functionality + launchAppWithContext() + } + + // Summarize page button + val summarizeButton = view.findViewById(app.cogwheel.conduit.R.id.btn_summarize) summarizeButton?.setOnClickListener { launchAppWithContext() } - - val closeButton = view.findViewById(app.cogwheel.conduit.R.id.btn_close) - closeButton?.setOnClickListener { - finish() + + // Ask about page button + val askAboutButton = view.findViewById(app.cogwheel.conduit.R.id.btn_ask_about) + askAboutButton?.setOnClickListener { + launchAppWithContext() } - + + // Input area (opens text input) + val inputArea = view.findViewById(app.cogwheel.conduit.R.id.input_area) + inputArea?.setOnClickListener { + launchAppWithContext() + } + + // Voice button + val voiceButton = view.findViewById(app.cogwheel.conduit.R.id.btn_voice) + voiceButton?.setOnClickListener { + // TODO: Implement voice input functionality + launchAppWithContext() + } + + // Sparkle button (AI actions) + val sparkleButton = view.findViewById(app.cogwheel.conduit.R.id.btn_sparkle) + sparkleButton?.setOnClickListener { + launchAppWithContext() + } + return view } diff --git a/android/app/src/main/res/drawable/dark_rounded_button_bg.xml b/android/app/src/main/res/drawable/dark_rounded_button_bg.xml new file mode 100644 index 0000000..50b72f6 --- /dev/null +++ b/android/app/src/main/res/drawable/dark_rounded_button_bg.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/android/app/src/main/res/drawable/ic_add.xml b/android/app/src/main/res/drawable/ic_add.xml new file mode 100644 index 0000000..ea55c4e --- /dev/null +++ b/android/app/src/main/res/drawable/ic_add.xml @@ -0,0 +1,10 @@ + + + + diff --git a/android/app/src/main/res/drawable/ic_ask.xml b/android/app/src/main/res/drawable/ic_ask.xml new file mode 100644 index 0000000..15ca1fc --- /dev/null +++ b/android/app/src/main/res/drawable/ic_ask.xml @@ -0,0 +1,10 @@ + + + + diff --git a/android/app/src/main/res/drawable/ic_share.xml b/android/app/src/main/res/drawable/ic_share.xml new file mode 100644 index 0000000..690915f --- /dev/null +++ b/android/app/src/main/res/drawable/ic_share.xml @@ -0,0 +1,10 @@ + + + + diff --git a/android/app/src/main/res/drawable/ic_sparkle.xml b/android/app/src/main/res/drawable/ic_sparkle.xml new file mode 100644 index 0000000..7700658 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_sparkle.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/app/src/main/res/drawable/ic_summarize.xml b/android/app/src/main/res/drawable/ic_summarize.xml new file mode 100644 index 0000000..5aa52b7 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_summarize.xml @@ -0,0 +1,10 @@ + + + + diff --git a/android/app/src/main/res/drawable/ic_voice.xml b/android/app/src/main/res/drawable/ic_voice.xml new file mode 100644 index 0000000..39ba5e2 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_voice.xml @@ -0,0 +1,10 @@ + + + + diff --git a/android/app/src/main/res/drawable/input_bar_bg.xml b/android/app/src/main/res/drawable/input_bar_bg.xml new file mode 100644 index 0000000..1a791a3 --- /dev/null +++ b/android/app/src/main/res/drawable/input_bar_bg.xml @@ -0,0 +1,6 @@ + + + + + diff --git a/android/app/src/main/res/drawable/voice_button_bg.xml b/android/app/src/main/res/drawable/voice_button_bg.xml new file mode 100644 index 0000000..b201dcd --- /dev/null +++ b/android/app/src/main/res/drawable/voice_button_bg.xml @@ -0,0 +1,5 @@ + + + + diff --git a/android/app/src/main/res/layout/assistant_overlay.xml b/android/app/src/main/res/layout/assistant_overlay.xml index 32ea604..2988499 100644 --- a/android/app/src/main/res/layout/assistant_overlay.xml +++ b/android/app/src/main/res/layout/assistant_overlay.xml @@ -1,67 +1,205 @@ + android:layout_height="match_parent" + android:background="#99000000"> + android:padding="20dp" + android:layout_margin="16dp"> + - - - + android:orientation="vertical" + android:layout_gravity="start" + android:layout_marginBottom="16dp"> - + - - - + android:orientation="horizontal" + android:background="@drawable/dark_rounded_button_bg" + android:paddingStart="16dp" + android:paddingEnd="20dp" + android:paddingTop="14dp" + android:paddingBottom="14dp" + android:gravity="center_vertical" + android:layout_marginBottom="12dp" + android:clickable="true" + android:focusable="true"> + + + + + + + + + + + + + + + + + + + + + + - - -