zoukankan      html  css  js  c++  java
  • 团队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>
  • 相关阅读:
    UVA 818 Cutting Chains 切断圆环链 (暴力dfs)
    UVA 211 The Domino Effect 多米诺效应 (回溯)
    UVA225 Golygons 黄金图形(dfs+回溯)
    UVA208 Firetruck 消防车(并查集,dfs)
    UVA11212 EditingaBook ( IDA*搜索)
    UVA 140 Brandwidth 带宽 (dfs回溯)
    uva 1601 poj 3523 Morning after holloween 万圣节后的早晨 (经典搜索,双向bfs+预处理优化+状态压缩位运算)
    UVA10410 TreeReconstruction 树重建 (dfs,bfs序的一些性质,以及用栈处理递归 )
    cdoj 414 八数码 (双向bfs+康拓展开,A*)
    UVA 246 10-20-30 10-20-30游戏 模拟+STL双端队列deque
  • 原文地址:https://www.cnblogs.com/shenaoyu/p/13086641.html
Copyright © 2011-2022 走看看