MyFlag Step14: 打卡功能界面的初步
2017-06-19 00:11
267 查看
引言
经过相互的讨论,现在拟定打卡的形式问题界面粗设计
activity_my.xml
<merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" > <com.lorentzos.flingswipe.SwipeFlingAdapterView android:id="@+id/frame" android:background="#ffeee9e2" android:layout_width="match_parent" android:layout_height="match_parent" app:rotation_degrees="15.5" tools:context=".MyActivity" /> <include layout="@layout/buttons" /> </merge>
buttons.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_gravity="center_horizontal|bottom" android:layout_marginBottom="20dp" android:layout_width="wrap_content" android:layout_height="wrap_content"> <Button android:id="@+id/left" android:layout_margin="10dp" android:text="Left" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <Button android:id="@+id/right" android:layout_margin="10dp" android:text="Right" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>
item.xml
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_gravity="center" android:layout_width="250dp" android:layout_height="170dp"> <TextView android:id="@+id/helloText" android:textSize="40sp" android:textColor="@android:color/white" android:background="#E339" android:gravity="center" tools:text="@string/hello_world" android:layout_width="match_parent" android:layout_height="match_parent" /> <View android:id="@+id/item_swipe_left_indicator" android:alpha="0" android:layout_width="20dp" android:layout_height="20dp" android:layout_margin="10dp" android:background="#A5F" /> <View android:id="@+id/item_swipe_right_indicator" android:alpha="0" android:layout_width="20dp" android:layout_height="20dp" android:layout_margin="10dp" android:layout_gravity="right" android:background="#5AF" /> <Space android:layout_width="wrap_content" android:layout_height="wrap_content" /> </FrameLayout>
总结
这只是一个粗框架,还有待进一步的优化改进。相关文章推荐
- MyFlag Step13:打卡功能的初步讨论
- APP开发流程实例讲解-儒释道网络电台八天开发全程-功能和界面初步设定
- spring源码初步学习-容器的功能扩展(ApplicationContext)
- 四,iOS 界面中的摇一摇功能实现
- 2004/12/22 wap 设置功能界面基本完成
- Android-实现顶部+底部双导航界面功能
- .net reactor使用教程(一)——界面各功能说明
- 聊天界面的制作(三)——表情列表发送功能
- Windows系统功能模拟 C++(EasyX插件)—— 6th 界面绘制(四)
- Android实训案例(七)——四大组件之一Service初步了解,实现通话录音功能,抽调接口
- Windows API初步实现游戏界面
- Win8界面鼠标操控技巧:角落和边缘的功能
- myflag step14:打卡功能
- myflag step14:打卡功能
- Eclipse中CVS界面功能描述(一)
- 在锁屏界面长按紧急呼救按钮添加自动拨打112功能
- Android高级界面组件之拖动条和评星条的功能实现
- Android仿微信(五)——仿微信聊天界面,以及语音录制功能
- 也谈将界面代码和功能代码分离(基于DELPHI/VCL)
- 重写软件调试器仿SOFTICE界面支持更多实用功能:)