Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SSsugar committed Apr 29, 2016
1 parent 271d2cd commit 0ce4617
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/src/main/res/layout/net1314080903130capture.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<SurfaceView
android:id="@+id/preview_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center" />

<com.app.zxing.view.ViewfinderView
android:id="@+id/viewfinder_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<include
android:id="@+id/include1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
layout="@layout/net1314080903130title" />
</RelativeLayout>

</FrameLayout>
27 changes: 27 additions & 0 deletions app/src/main/res/layout/net1314080903130loading.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white_gray"
android:orientation="vertical" >

<EditText
android:id="@+id/et_device_number"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="15dip"
android:textColor="@color/black"
/>

<Button
android:id="@+id/btn_submit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="15dip"
android:gravity="center"
android:text="添加"
android:textColor="@color/white" />

</LinearLayout>
19 changes: 19 additions & 0 deletions app/src/main/res/layout/net1314080903130spiner_item_layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="40dp">

<TextView
android:id="@+id/textView"
android:layout_marginLeft="7dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textSize="17sp"
/>
<!--
android:layout_marginLeft="20dp"
-->
</LinearLayout>
34 changes: 34 additions & 0 deletions app/src/main/res/layout/net1314080903130task_progress_dialog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@null"
android:layout_gravity="center"
>
<RelativeLayout
android:layout_width="160dp"
android:layout_height="110dp"
android:padding="8dp"
android:background="@null"
>
<ProgressBar
style="@android:style/Widget.ProgressBar.Large"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:background="@null"
/>
<TextView android:id="@+id/task_progress_dialog_message"
android:text="正在加载..."
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:textColor="#fff"
android:background="@null"
/>
</RelativeLayout>
</LinearLayout>
29 changes: 29 additions & 0 deletions app/src/main/res/layout/net1314080903130title.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/mmtitle_bg_alpha" >

<Button
android:id="@+id/button_back"
android:layout_width="75.0dip"
android:text="返回"
android:background="@drawable/mm_title_back_btn"
android:textColor="@android:color/white"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="2dip" />

<TextView
android:id="@+id/textview_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/button_back"
android:layout_alignBottom="@+id/button_back"
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
android:text="条形码扫描"
android:textColor="@android:color/white"
android:textSize="18sp" />

</RelativeLayout>

0 comments on commit 0ce4617

Please sign in to comment.