• 团队2.4


    今天对控件重新排版

    部分·代码

    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
                 xmlns:pixlui="http://schemas.android.com/apk/com.neopixl.pixlui"
                 xmlns:wheel="http://schemas.android.com/apk/res-auto"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:layout_marginLeft="@dimen/activity_additional_margin"
                 android:layout_marginRight="@dimen/activity_additional_margin">
    
        <it.feio.android.omninotes.models.views.InterceptorLinearLayout
                android:id="@+id/list_root"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">
    
            <LinearLayout
                    android:id="@+id/search_layout"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:visibility="gone"
                    android:paddingLeft="@dimen/horizontal_margin"
                    android:paddingStart="@dimen/horizontal_margin">
    
                <TextView
                        android:id="@+id/search_query"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:textAppearance="@style/Text.Small"
                        android:paddingTop="16dp"
                        android:paddingBottom="8dp"/>
    
                <ImageView
                        android:id="@+id/search_cancel"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:src="@drawable/ic_cancel_black_18dp"
                        android:paddingTop="10dp"
                        android:paddingRight="@dimen/horizontal_margin"
                        android:paddingEnd="@dimen/horizontal_margin"/>
            </LinearLayout>
    
            <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent">
                <com.nhaarman.listviewanimations.itemmanipulation.DynamicListView
                        android:id="@+id/list"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:divider="@null"
                        android:dividerHeight="8dp"
                        android:paddingLeft="8dp"
                        android:paddingRight="8dp"
                        android:paddingTop="@dimen/padding_half"
                        android:clipToPadding="false"
                        android:scrollbarSize="4dp"
                        android:drawSelectorOnTop="true"
                        android:listSelector="@drawable/icon_selector"
                        android:scrollbarStyle="outsideOverlay"
                        android:scrollbarThumbVertical="@drawable/scroll_bar"
                        android:fastScrollEnabled="true"
                        android:smoothScrollbar="true"
                        android:scrollingCache="false"
                        android:animationCache="false"/>
    
                <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:gravity="center">
    
                    <com.neopixl.pixlui.components.textview.TextView
                            android:id="@+id/empty_list"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:drawablePadding="10dp"
                            android:drawableTop="@drawable/jingles_animation"
                            android:gravity="center"
                            android:text="@string/no_items_in_list"
                            android:textColor="@color/list_note_dates"
                            android:textSize="20sp"
                            android:visibility="gone"
                            pixlui:typeface="Roboto-Regular.ttf"/>
                </LinearLayout>
    
    
                <com.pnikosis.materialishprogress.ProgressWheel
                        android:id="@+id/progress_wheel"
                        android:layout_width="100dp"
                        android:layout_height="100dp"
                        android:layout_gravity="center"
                        wheel:matProg_barColor="@color/colorPrimary"
                        wheel:matProg_progressIndeterminate="true"/>
    
            </FrameLayout>
    
        </it.feio.android.omninotes.models.views.InterceptorLinearLayout>
    
        <include
                android:id="@+id/undobar"
                layout="@layout/undobar"/>
    
        <include
                android:id="@+id/fab"
                layout="@layout/fab"/>
    
        <ImageView
                android:id="@+id/expanded_image"
                android:layout_width="match_parent"
                android:scaleType="centerCrop"
                android:layout_height="match_parent"/>
    
        <androidx.coordinatorlayout.widget.CoordinatorLayout
                android:layout_width="match_parent"
                android:layout_height="200dp"
                android:id="@+id/snackbar_placeholder"
                android:layout_gravity="bottom"/>
    
    </FrameLayout>
  • 相关阅读:
    CSS样式—绝对定位(absolute)与相对定位(relative)的区别(图示)
    firefox与IE透明度(opacity)设置区别
    nopCommerce学习之架构(三)
    nopCommerce学习之程序包(四)
    Hadoop 部署
    nopCommerce学习之汉化(二)
    PetShop 首页
    nopCommerce学习之安装配置(一)
    C# 中ToString()的用法
    对象的当前状态使该操作无效
  • 原文地址:https://www.cnblogs.com/shenaoyu/p/13086641.html
Copyright © 2020-2023  润新知