团队冲刺第二阶段04
今天主要做了界面上的修改,主显示界面和便签详情界面
徐姣美:主界面
代码:
<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>
申澳宇:便签的显示布局
代码:
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pixlui="http://schemas.android.com/apk/com.neopixl.pixlui" android:id="@+id/root" android:layout_width="match_parent" android:layout_height="@dimen/note_item_min_height_reduced" android:background="@drawable/bg_card" android:paddingBottom="2dp"> <LinearLayout android:id="@+id/card_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:minHeight="@dimen/note_item_min_height_reduced" android:orientation="horizontal"> <View android:id="@+id/category_marker" android:layout_width="7dp" android:layout_height="match_parent" android:background="@null"/> <LinearLayout android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:orientation="vertical" android:paddingBottom="7dp" android:paddingLeft="6dp" android:paddingStart="6dp" android:paddingRight="16dp" android:paddingEnd="16dp" android:paddingTop="7dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <com.neopixl.pixlui.components.textview.TextView android:id="@+id/note_title" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="top|start" android:singleLine="true" android:textAppearance="@style/Text.Big" pixlui:typeface="RobotoSlab-Bold.ttf"/> <ImageView android:id="@+id/alarmIcon" android:layout_width="15dp" android:layout_height="15dp" android:layout_gravity="top|end" android:src="@drawable/ic_alarm_black_48dp" android:alpha="0.6" android:visibility="gone"/> <ImageView android:id="@+id/locationIcon" android:layout_width="15dp" android:layout_height="15dp" android:layout_gravity="top|end" android:src="@drawable/ic_pin_drop_black_18dp" android:alpha="0.6" android:visibility="gone"/> <ImageView android:id="@+id/archivedIcon" android:layout_width="15dp" android:layout_height="15dp" android:layout_gravity="top|end" android:src="@drawable/ic_archive_black_18dp" android:alpha="0.6" android:visibility="gone"/> <ImageView android:id="@+id/attachmentIcon" android:layout_width="15dp" android:layout_height="15dp" android:layout_gravity="top|end" android:src="@drawable/ic_attachment_black_18dp" android:alpha="0.6" android:visibility="gone"/> <ImageView android:id="@+id/lockedIcon" android:layout_width="15dp" android:layout_height="15dp" android:layout_gravity="top|end" android:src="@drawable/ic_lock_black_24dp" android:alpha="0.6" android:visibility="gone"/> </LinearLayout> <com.neopixl.pixlui.components.textview.TextView android:id="@+id/note_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="start" android:maxLines="@integer/textview_max_lines" android:textAppearance="@style/Text.Normal" android:visibility="gone" pixlui:typeface="RobotoSlab-Regular.ttf"/> <com.neopixl.pixlui.components.textview.TextView android:id="@+id/note_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end" android:textAppearance="@style/Text.Small" android:alpha="0.6" pixlui:typeface="Roboto-Regular.ttf"/> </LinearLayout> </LinearLayout> </FrameLayout>
刘贺鑫:图文混合的界面
代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pixlui="http://schemas.android.com/apk/com.neopixl.pixlui" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:paddingBottom="@dimen/padding_half" android:paddingTop="@dimen/padding_half" > <ImageView android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="@dimen/horizontal_margin" android:paddingStart="@dimen/horizontal_margin"/> <com.neopixl.pixlui.components.textview.TextView android:id="@+id/text" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:paddingLeft="@dimen/horizontal_margin" android:paddingStart="@dimen/horizontal_margin" android:textAppearance="@style/Text.Big" android:textColor="@color/drawer_text" pixlui:typeface="Roboto-Regular.ttf" /> </LinearLayout>