refactor(ui): Simplify assistant overlay layout and remove unused buttons
This commit is contained in:
@@ -20,36 +20,6 @@
|
||||
android:layout_gravity="start"
|
||||
android:layout_marginBottom="16dp">
|
||||
|
||||
<!-- Share screen with Live button -->
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_share_screen"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
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">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:src="@drawable/ic_share"
|
||||
android:layout_marginEnd="12dp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Share screen with Live"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Summarize page button -->
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_summarize"
|
||||
@@ -119,73 +89,26 @@
|
||||
android:paddingStart="20dp"
|
||||
android:paddingEnd="8dp">
|
||||
|
||||
<!-- Plus button -->
|
||||
<ImageView
|
||||
android:id="@+id/btn_add"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="28dp"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_add"
|
||||
android:alpha="0.7"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
|
||||
<!-- Ask Conduit text with security icon -->
|
||||
<LinearLayout
|
||||
<!-- Ask Conduit text -->
|
||||
<TextView
|
||||
android:id="@+id/input_area"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/btn_add"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toStartOf="@id/btn_voice"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="12dp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:text="Ask Conduit"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:alpha="0.6"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:src="@android:drawable/ic_secure"
|
||||
android:alpha="0.5"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:tint="@android:color/white"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Ask Conduit"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:alpha="0.6"/>
|
||||
</LinearLayout>
|
||||
android:focusable="true"/>
|
||||
|
||||
<!-- Voice button -->
|
||||
<FrameLayout
|
||||
android:id="@+id/btn_voice"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_toStartOf="@id/btn_sparkle"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/voice_button_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_voice"/>
|
||||
</FrameLayout>
|
||||
|
||||
<!-- Sparkle button -->
|
||||
<FrameLayout
|
||||
android:id="@+id/btn_sparkle"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@drawable/voice_button_bg"
|
||||
@@ -196,7 +119,7 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_sparkle"/>
|
||||
android:src="@drawable/ic_voice"/>
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
Reference in New Issue
Block a user