fragment_election.xml 14.2 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/election_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/votebakground" >

    <TextView
        android:id="@+id/election_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="@dimen/content_margin"
        android:layout_marginLeft="@dimen/content_margin"
        android:layout_marginRight="@dimen/content_margin"
        android:ellipsize="end"
        android:gravity="center"
        android:lines="1"
        android:text="@string/sunvote_no_paper"
        android:textSize="@dimen/big_text_p4" />
    <RelativeLayout
        android:id="@+id/election_pannal_OX"
        android:layout_width="match_parent"
        android:layout_height="@dimen/button_heigh"
        android:layout_below="@+id/election_title"
        android:visibility="gone" >
        <TextView
            android:id="@+id/xx"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"/>

        <TextView
            android:id="@+id/tv_all_ok"
            android:layout_toRightOf="@+id/xx"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="全赞成"
            android:layout_marginLeft="10dp"
            android:textSize="@dimen/big_text_p4"/>

        <ImageButton
            android:id="@+id/btn_all_ok"
            android:layout_toRightOf="@+id/tv_all_ok"
            android:background="@drawable/btn_oo"
            android:layout_centerInParent="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <TextView
            android:id="@+id/tv_all_xx"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/content_margin"
            android:layout_centerInParent="true"
            android:layout_toRightOf="@+id/btn_all_ok"
            android:text="全反对"
            android:textSize="@dimen/big_text_p4"/>

        <ImageButton
            android:id="@+id/btn_all_xx"
            android:layout_toRightOf="@+id/tv_all_xx"
            android:background="@drawable/btn_xx"
            android:layout_centerInParent="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </RelativeLayout>
    <RelativeLayout
        android:id="@+id/election_pannal_bottom"
        android:layout_width="match_parent"
        android:layout_height="@dimen/linear_heigh"
        android:layout_alignParentBottom="true"
        android:alpha="0.9"
        android:background="@drawable/gray_alpha"
        android:visibility="visible" >

        <TextView
            android:id="@+id/election_info"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginLeft="@dimen/content_margin"
            android:text=""
            android:textSize="@dimen/big_text_p5" />

        <TextView
            android:id="@+id/election_page"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="1/1"
            android:textSize="@dimen/big_text_p5"
            android:visibility="invisible"/>

        <Button
            android:id="@+id/election_pageup"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toLeftOf="@id/election_page"
            android:background="@drawable/page_selector"
            android:textSize="@dimen/big_text_p5"
            android:text="@string/page_up"
            android:visibility="visible" />

        <Button
            android:id="@+id/election_pagedown"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@id/election_page"
            android:background="@drawable/page_selector"
            android:textSize="@dimen/big_text_p5"
            android:text="@string/page_down" />

        <Button
            android:id="@+id/election_pagelast"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginLeft="@dimen/content_margin"
            android:layout_toRightOf="@id/election_pagedown"
            android:background="@drawable/page_selector"
            android:textSize="@dimen/big_text_p5"
            android:text="最后一页" />

        <Button
            android:id="@+id/election_btn_confirm"
            android:layout_width="@dimen/button_width"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="@dimen/content_margin"
            android:background="@drawable/signin_selector"
            android:text="@string/confirm_submit"
            android:textColor="@color/white"
            android:textSize="@dimen/big_text_p5"
            android:textStyle="bold" />

        <Button
            android:id="@+id/election_btn_modify"
            android:layout_width="@dimen/button_width"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="@dimen/content_margin"
            android:background="@drawable/signin_selector"
            android:text="@string/modify"
            android:textColor="@color/white"
            android:textSize="@dimen/big_text_p5"
            android:visibility="invisible"
            android:textStyle="bold" />
    </RelativeLayout>
    <ListView
        android:id="@+id/election_listview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@id/election_pannal_bottom"
        android:layout_below="@id/election_pannal_OX"
        android:layout_marginTop="@dimen/content_margin"
        android:layout_marginBottom="2dp"
        android:divider="@color/votebakground"
        android:dividerHeight="2dp" >
    </ListView>
    <LinearLayout
        android:id="@+id/election_add_other_panel"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/black"
        android:orientation="vertical"
        android:visibility="gone">

        <!--输入框-->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal"
            android:layout_weight="0.2">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_margin="50dp"
                android:layout_weight="1"
                android:background="@drawable/shape"
                android:orientation="vertical"
                android:gravity="center">
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:text="@string/input_other"
                    android:textColor="@color/white"
                    android:layout_marginBottom="20dp"
                    android:textSize="@dimen/big_text_p5" />

                <com.sunvote.xpadapp.base.ZanyEditText
                    android:id="@+id/election_add_edit"
                    android:layout_width="200dp"
                    android:layout_height="60dp"
                    android:layout_marginTop="40dp"
                    android:background="#e8e8e8"
                    android:gravity="center"
                    android:imeOptions="flagNoExtractUi"
                    android:textSize="@dimen/big_text_p4"
                    android:lines="1" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical"
                android:layout_weight="1"
                android:layout_margin="30dp"
                android:background="@drawable/shape"
                android:gravity="center">

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="50px"
                    android:layout_centerHorizontal="true"
                    android:text="@string/input_other"
                    android:textColor="@color/white"
                    android:textSize="@dimen/big_text_p5"
                    android:gravity="center"/>

                <FrameLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_margin="5dp"
                    android:background="@drawable/shape">

                    <com.sunvote.xpadapp.base.PaletteView
                        android:id="@+id/draw_view"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"/>

                    <ImageView
                        android:id="@+id/clear_img"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:src="@drawable/ic_clear"
                        android:layout_gravity="bottom|right"
                        android:layout_marginBottom="20dp"
                        android:layout_marginRight="20dp"/>
                </FrameLayout>

            </LinearLayout>
        </LinearLayout>

        <!--按钮-->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="0.8"
            android:gravity="center|right"
            android:orientation="horizontal">

            <Button
                android:id="@+id/election_add_edit_btn_cancel"
                android:layout_width="@dimen/button_width"
                android:layout_height="@dimen/button_heigh"
                android:layout_marginRight="@dimen/content_margin"
                android:background="@drawable/btn_signin_d"
                android:text="@string/cancel"
                android:textColor="@color/white"
                android:textSize="@dimen/big_text_p4"
                android:textStyle="bold" />

            <Button
                android:id="@+id/election_add_edit_btn_ok"
                android:layout_width="@dimen/button_width"
                android:layout_height="@dimen/button_heigh"
                android:layout_marginRight="@dimen/content_margin"
                android:background="@drawable/btn_agree"
                android:text="@string/ok"
                android:textColor="@color/white"
                android:textSize="@dimen/big_text_p4"
                android:textStyle="bold" />
        </LinearLayout>

    </LinearLayout>
    <RelativeLayout
        android:id="@+id/singlevote_confirm_panel"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#ff000000"
        android:visibility="gone">

        <TextView
            android:id="@+id/singlevote_confirm_textview"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="@dimen/button_to_content"
            android:text="@string/cant_modify_confirm"
            android:textColor="@color/white"
            android:layout_marginLeft="@dimen/content_margin"
            android:layout_marginRight="@dimen/content_margin"
            android:gravity="center"
            android:textSize="@dimen/big_text_p4" />

        <Button
            android:id="@+id/singlevote_btn_confirm_cancel"
            android:layout_width="@dimen/button_width"
            android:layout_height="@dimen/button_heigh"
            android:layout_alignParentLeft="true"
            android:layout_below="@id/singlevote_confirm_textview"
            android:layout_marginLeft="@dimen/button_to_left"
            android:layout_marginTop="@dimen/button_to_content"
            android:background="@drawable/btn_signin_d"
            android:text="@string/cancel"
            android:textColor="@color/white"
            android:textSize="@dimen/big_text_p5"
            android:textStyle="bold" />

        <Button
            android:id="@+id/singlevote_btn_confirm_ok"
            android:layout_width="@dimen/button_width"
            android:layout_height="@dimen/button_heigh"
            android:layout_alignParentRight="true"
            android:layout_below="@id/singlevote_confirm_textview"
            android:layout_marginRight="@dimen/button_to_right"
            android:layout_marginTop="@dimen/button_to_content"
            android:background="@drawable/btn_agree"
            android:text="@string/ok"
            android:textColor="@color/white"
            android:textSize="@dimen/big_text_p5"
            android:textStyle="bold" />
    </RelativeLayout>
    <TextView
        android:id="@+id/singlevote_tv_result"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:alpha="0.9"
        android:background="@drawable/voted_empty"
        android:gravity="center"
        android:rotation="-15"
        android:textColor="#ddff9933"
        android:textSize="@dimen/big_text_p2"
        android:textStyle="bold"
        android:visibility="invisible"
        android:layout_marginRight="@dimen/content_margin"
        android:layout_alignParentRight="true"
        android:layout_marginTop="@dimen/content_margin"/>
</RelativeLayout>