Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f0a53fa authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Making the width of the fast scroller popup as wrap_content

Adding minWidth and width=wrap_content, so that the popup can
grow for wider characters.

Change-Id: I6e0c4087df51e37f696c47f20f146f32d41e8bc8
parent f8fa9e41
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -57,19 +57,11 @@

        <!-- Fast scroller popup -->
        <TextView
            android:background="@drawable/container_fastscroll_popup_bg"
            android:layout_width="@dimen/container_fastscroll_popup_size"
            android:layout_height="@dimen/container_fastscroll_popup_size"
            android:textSize="@dimen/container_fastscroll_popup_text_size"
            style="@style/FastScrollerPopup"
            android:layout_below="@+id/search_container"
            android:id="@+id/fast_scroller_popup"
            android:layout_alignParentEnd="true"
            android:gravity="center"
            android:alpha="0"
            android:elevation="3dp"
            android:saveEnabled="false"
            android:layout_marginEnd="@dimen/container_fastscroll_popup_margin"
            android:textColor="@android:color/white" />
            android:layout_marginEnd="@dimen/container_fastscroll_popup_margin" />

        <FrameLayout
            android:id="@+id/search_container"
+2 −10
Original line number Diff line number Diff line
@@ -51,19 +51,11 @@

        <!-- Fast scroller popup -->
        <TextView
            android:background="@drawable/container_fastscroll_popup_bg"
            android:layout_width="@dimen/container_fastscroll_popup_size"
            android:layout_height="@dimen/container_fastscroll_popup_size"
            android:textSize="@dimen/container_fastscroll_popup_text_size"
            style="@style/FastScrollerPopup"
            android:layout_below="@+id/search_container"
            android:id="@+id/fast_scroller_popup"
            android:elevation="3dp"
            android:gravity="center"
            android:alpha="0"
            android:saveEnabled="false"
            android:layout_gravity="top|end"
            android:layout_marginEnd="@dimen/container_fastscroll_popup_margin"
            android:textColor="@android:color/white" />
            android:layout_marginEnd="@dimen/container_fastscroll_popup_margin" />

        <ProgressBar
            android:layout_width="wrap_content"
+14 −0
Original line number Diff line number Diff line
@@ -30,6 +30,20 @@

    <style name="Theme" parent="@style/LauncherTheme"></style>

    <style name="FastScrollerPopup" >
        <item name="android:background">@drawable/container_fastscroll_popup_bg</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:minWidth">@dimen/container_fastscroll_popup_size</item>
        <item name="android:layout_height">@dimen/container_fastscroll_popup_size</item>
        <item name="android:textSize">@dimen/container_fastscroll_popup_text_size</item>
        <item name="android:gravity">center</item>
        <item name="android:alpha">0</item>
        <item name="android:elevation">3dp</item>
        <item name="android:saveEnabled">false</item>
        <item name="android:textColor">@android:color/white</item>
        <item name="android:includeFontPadding">false</item>
    </style>

    <!-- Theme for the widget container. Overridden on API 25. -->
    <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
        <item name="colorSecondary">@color/fallback_secondary_color</item>