question

jolly avatar image
jolly asked Loyal Loops commented

XML Layout cut off the screen in clover mini

Hello, I have one layout and this layout height and width is full screen [ex. android:layoutwidth="fillparent" android:layoutheight="fillparent"] that completed word in clover station but cut in clover mini if i m padding right with 230dip then it show me complete output in clover mini but that show space in clover station so what is better solution for that.

Here is my layout file :

<framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true" &gt;<="" p="">

<LinearLayout
    android:id="@+id/fragCustomerDetail"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="10dp"
    android:orientation="vertical"

    >

    <!-- is a square button set at 44 px high -->
    <ImageButton
        android:id="@+id/btnBack"
        android:layout_width="@dimen/button_height"
        android:layout_height="@dimen/button_height"
        android:background="@drawable/android_back"
        android:contentDescription="Back Button" />

    <TextView
        android:id="@+id/tvEnterCustomerInfo"
        android:layout_width="match_parent"
        android:layout_height="30dp"
        android:layout_marginTop="10dp"

        android:text="@string/customer_information_header"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="@dimen/form_row_height"
        android:orientation="horizontal">

        <TextView
            android:layout_width="100dp"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:text="@string/form_name" />

        <EditText
            android:id="@+id/txtCustomerName"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:contentDescription="Customer Name"
            android:inputType="text" />
    </LinearLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="@dimen/form_row_height"
        android:orientation="horizontal">

        <TextView
            android:layout_width="100dp"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:text="@string/form_email" />

        <EditText
            android:id="@+id/txtCustomerEmail"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:contentDescription="Customer Email"
            android:inputType="text" />
    </LinearLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="@dimen/form_row_height"
        android:orientation="horizontal">

        <TextView
            android:layout_width="100dp"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:text="@string/form_phone" />

        <EditText
            android:id="@+id/txtCustomerPhone"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:contentDescription="Customer Phone"
            android:inputType="text" />

        <TextView
            android:layout_width="140dp"
            android:layout_height="match_parent"
            android:gravity="center"
            android:text="@string/form_birthday" />

        <TextView
            android:id="@+id/txtBirthday"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:clickable="true"
            android:contentDescription="Customer Birthday"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:lines="1"
            style="@style/BirthdayEditText" />
        <!--
            android:theme="@style/BirthdayEditText"
            android:inputType="none"
            android:textIsSelectable="true"
        <DatePicker
            android:layout_width="match_parent"
            android:layout_height="match_parent">
        </DatePicker>
        -->
    </LinearLayout>

    <!-- Manual Point handling -->
    <LinearLayout
        android:id="@+id/llManualPunch"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="@dimen/form_row_height"
            android:orientation="horizontal">

            <TextView
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:gravity="center_vertical"
                android:text="@string/form_visits" />

            <TextView
                android:id="@+id/tvCustomerVisit"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:gravity="center_vertical"
                android:textSize="@dimen/form_large_text_size" />

            <TextView
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:gravity="center_vertical"
                android:text="@string/form_points" />

            <TextView
                android:id="@+id/tvCustomerPunch"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:gravity="center_vertical"
                android:textSize="@dimen/form_large_text_size" />

            <ImageButton
                android:id="@+id/btnCustomerPointSubtract"
                android:layout_width="0dp"
                android:layout_weight="0.5"
                android:layout_height="@dimen/form_plus_button_height"
                android:layout_gravity="center_horizontal"

                android:layout_marginRight="60dp"
                android:background="@Android:color/transparent"
                android:contentDescription="Subtract Point"
                android:src="@drawable/btn_minus_blue" />

            <ImageButton
                android:id="@+id/btnCustomerPointAdd"
                android:layout_width="0dp"
                android:layout_weight="0.5"
                android:layout_height="@dimen/form_plus_button_height"
                android:layout_gravity="center_horizontal"
                android:layout_marginLeft="60dp"
                android:background="@Android:color/transparent"
                android:contentDescription="Add Point"

                android:src="@drawable/btn_plus_green" />

        </LinearLayout>
    </LinearLayout>

    <!-- Is marketing allowed -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="@dimen/form_row_height"
        android:layout_marginTop="10dp"
        android:orientation="horizontal">

        <CheckBox
            android:id="@+id/checkBox"
            android:layout_width="220dp"
            android:layout_height="match_parent"
            android:contentDescription="Is Marketing Allowed"
            android:gravity="center"
            android:text="@string/form_is_marketing_allowed" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:text="@string/form_is_marketing_hint" />

    </LinearLayout>

    <GridView
        android:id="@+id/customerSegmentGridView"
        android:layout_width="fill_parent"
        android:layout_height="@dimen/customer_segment_height"
        android:layout_marginLeft="@dimen/element_margin"
        android:layout_marginRight="@dimen/element_margin"
        android:background="@drawable/grid_border"
        android:columnWidth="70dp"
        android:gravity="center"
        android:horizontalSpacing="@dimen/customer_list_element_margin"
        android:numColumns="2"
        android:paddingBottom="@dimen/customer_list_border_width"
        android:paddingEnd="@dimen/customer_list_element_padding"
        android:paddingStart="@dimen/customer_list_element_padding"
        android:paddingTop="@dimen/customer_list_border_width"
        android:scrollbars="vertical"
        android:stretchMode="columnWidth"
        android:verticalSpacing="@dimen/customer_list_element_margin" />

    <Button
        android:id="@+id/btnSetCustomerForOrder"
        android:layout_width="@dimen/large_button_width"
        android:layout_height="@dimen/large_button_height"
        android:layout_gravity="center_horizontal"
        android:layout_marginRight="100dp"
        android:fitsSystemWindows="true"
        android:layout_margin="@dimen/large_button_margin"
        android:background="@color/button_green"
        android:contentDescription="Apply to Order"
        android:text="Apply to Order"
        android:textColor="@color/white"
        android:textSize="@dimen/large_button_text_size" />

    <!--
    <ImageButton
        android:id="@+id/btnSetCustomerForOrder"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_margin="20dp"
        android:background="@Android:color/transparent"
        android:src="@drawable/sms_set_customer_for_order" />
    -->

</LinearLayout>
<FrameLayout
    android:id="@+id/flSpinner"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ViewFlipper
        android:id="@+id/flipperCustomerDetail"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/transparent_gray_overlay"
        >

        <ProgressBar
            android:id="@+id/spinnerCustomerDetail"
            style="?android:attr/progressBarStyleLarge"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center" />

        <TextView
            android:id="@+id/txtErrorCode"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="center"
            android:text="@string/search_no_customers_found"
            android:textSize="18sp" />
    </ViewFlipper>

</FrameLayout>

</framelayout>

Thanks

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Loyal Loops avatar image Loyal Loops commented ·

Please post your complete layout file

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community