Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • captcha
  • src
  • main
  • res
  • layout
  • drag_view.xml
Find file
Normal viewHistoryPermalink
drag_view.xml 2.54 KB
Newer Older
luofan's avatar
集成图形验证码lib
09b81edf
 
luofan committed 4 years ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:orientation="vertical">

    <FrameLayout
        android:id="@+id/drag_fl_content"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal">

        <ImageView
            android:id="@+id/drag_iv_cover"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="fitXY" />

        <ImageView
            android:id="@+id/drag_iv_block"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:scaleType="fitXY" />

        <View
            android:id="@+id/drag_v_flash"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/drag_flash" />


        <com.example.verificationcodejavademo.widget.DiyStyleTextView
            android:id="@+id/drag_tv_tips"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:background="#bbf2ece1"
            android:gravity="center_vertical"
            android:paddingLeft="12dp"
            android:paddingTop="2dp"
            android:paddingBottom="2dp"
            android:text="你本次用了1.0秒"
            android:textColor="#323232"
            android:textSize="14dp" />

    </FrameLayout>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:layout_marginBottom="6dp">

        <SeekBar
            android:id="@+id/drag_sb"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@null"
            android:progressDrawable="@drawable/drag_seek_progress"
            android:splitTrack="false"
            android:thumb="@drawable/drag_btn_error"
            android:thumbOffset="0dp" />

        <TextView
            android:id="@+id/drag_tv_tips2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="向右拖动滑块填充拼图"
            android:textSize="16dp" />

    </FrameLayout>
</LinearLayout>