Commit 12a0488f authored by sunzheng's avatar sunzheng

init

parent bee01dc7
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
android:fromYDelta="100%"
android:toYDelta="0" />
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
android:fromYDelta="0"
android:toYDelta="100%" />
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
<!--减速度加速器-->
<translate
android:duration="250"
android:fromYDelta="100%"
android:toYDelta="0"/>
</set>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<!--加速度插值器-->
<translate
android:duration="250"
android:fromYDelta="0"
android:startOffset="100"
android:toYDelta="100%"/>
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/doodling_bar_pressed" android:state_pressed="true"/>
<item android:drawable="@mipmap/doodling_bar_pressed" android:state_selected="true"/>
<item android:drawable="@mipmap/doodling_bar_pressed" android:state_checked="true"/>
<item android:drawable="@mipmap/doodling_bar_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/right_bar_pressed" android:state_pressed="true"/>
<item android:drawable="@mipmap/right_bar_pressed" android:state_selected="true"/>
<item android:drawable="@mipmap/right_bar_pressed" android:state_checked="true"/>
<item android:drawable="@mipmap/right_bar_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/rotate_bar_pressed" android:state_pressed="true"/>
<item android:drawable="@mipmap/rotate_bar_pressed" android:state_selected="true"/>
<item android:drawable="@mipmap/rotate_bar_pressed" android:state_checked="true"/>
<item android:drawable="@mipmap/rotate_bar_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/rubber_bar_pressed" android:state_pressed="true"/>
<item android:drawable="@mipmap/rubber_bar_pressed" android:state_selected="true"/>
<item android:drawable="@mipmap/rubber_bar_pressed" android:state_checked="true"/>
<item android:drawable="@mipmap/rubber_bar_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="360dp" />
<solid android:color="@color/color_8fc131" />
<stroke
android:width="1dp"
android:color="@color/white"></stroke>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="360dp" />
<solid android:color="#0089FF" />
<stroke
android:width="3dp"
android:color="@color/white" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="360dp" />
<solid android:color="#0089FF" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="360dp" />
<solid android:color="@color/white" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="360dp" />
<stroke
android:width="3dp"
android:color="@color/white"></stroke>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="360dp" />
<solid android:color="@color/color_86999b" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="6dp" />
<solid android:color="#0089FF" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (C) 2009 Teleca Poland Sp. z o.o. <android@teleca.com> Licensed
under the Apache License, Version 2.0 (the "License"); you may not use this
file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
applicable law or agreed to in writing, software distributed under the License
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
-->
<!-- <selector xmlns:android="http://schemas.android.com/apk/res/android"> -->
<!-- <item> -->
<!-- <shape android:shape="rectangle"> -->
<!-- <gradient android:startColor="#3C3D3F" android:endColor="#3C3D3F" -->
<!-- android:angle="270" /> -->
<!-- <corners android:radius="2dp" /> -->
<!-- </shape> -->
<!-- </item> -->
<!-- <item android:state_pressed="true"> -->
<!-- <shape android:shape="rectangle"> -->
<!-- <gradient android:startColor="#FF9000" android:endColor="#FF9000" -->
<!-- android:angle="270" /> -->
<!-- <corners android:radius="2dp" /> -->
<!-- </shape> -->
<!--
gradient 主体渐变 startColor开始颜色,endColor结束颜色 ,angle开始渐变的角度(值只能为90的倍数,0时为左到右渐变,90时为下到上渐变,依次逆时针类推)
stroke 边框 width 边框宽度,color 边框颜色
corners 圆角 radius 半径,0为直角
padding text值的相对位置
-->
<!-- </selector> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape>
<solid android:color="#F3F4F5" />
</shape>
</item>
<item android:state_pressed="false">
<shape>
<solid android:color="@color/white" />
</shape>
</item>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/doodle_hide_panel_pressed" android:state_selected="true"/>
<item android:drawable="@drawable/doodle_hide_panel"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/doodle_shape_rect_stroke_pressed" />
<item android:state_selected="true" android:drawable="@drawable/doodle_shape_rect_stroke_pressed"/>
<item android:drawable="@drawable/doodle_shape_rect_stroke_normal" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/doodle_shape_rect_pressed_black" android:state_pressed="true" />
<item android:drawable="@drawable/doodle_shape_rect_pressed_black" android:state_selected="true" />
<item android:drawable="@drawable/doodle_shape_rect_pressed_black" android:state_checked="true" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copySelected of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
<item android:drawable="@drawable/bg_normal" />
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/doodle_shape_circle_pressed" />
<item android:state_selected="true" android:drawable="@drawable/doodle_shape_circle_pressed"/>
<item android:drawable="@drawable/doodle_shape_circle_normal" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@android:id/background">
<nine-patch
android:src="@drawable/doodle_bar_background"/>
</item>
<item
android:id="@android:id/progress">
<clip xmlns:android="http://schemas.android.com/apk/res/android"
android:clipOrientation="horizontal"
android:gravity="left">
<nine-patch
android:src="@drawable/doodle_bar_progress"/>
</clip>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false">
<stroke
android:width="0.5dp"
android:color="@color/doodle_btn_border" />
<solid android:color="#ffffff" /> <!-- 定义填充的颜色值 -->
<!--<gradient android:startColor="#dfeeeeee"-->
<!--android:endColor="#dfcccccc" -->
<!--android:angle="270"-->
<!--android:gradientRadius="90"/>-->
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false">
<stroke
android:width="0.5dp"
android:color="@color/doodle_btn_border" />
<solid android:color="@color/doodle_btn_pressed_color" /> <!-- 定义填充的颜色值 -->
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:useLevel="false">
<solid android:color="#A67D3D"/> <!-- 定义填充的颜色值 -->
<corners android:radius="1dp"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:useLevel="false" >
<solid android:color="#ffffff" />
<!-- 定义填充的颜色值 -->
<stroke
android:width="0.5dp"
android:color="@color/doodle_btn_border" />
<corners android:radius="3dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:useLevel="false">
<solid android:color="@color/doodle_btn_pressed_color" /> <!-- 定义填充的颜色值 -->
<stroke
android:width="0.5dp"
android:color="@color/doodle_btn_border" />
<corners android:radius="3dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/doodle_thumb_pressed" />
<!-- 焦点状态 -->
<item android:state_focused="true"
android:drawable="@drawable/doodle_thumb_normal" />
<!-- 默认状态 -->
<item android:drawable="@drawable/doodle_thumb_normal" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_wrong_pressed" android:state_pressed="true"/>
<item android:drawable="@mipmap/icon_wrong_pressed" android:state_selected="true"/>
<item android:drawable="@mipmap/icon_wrong_pressed" android:state_checked="true"/>
<item android:drawable="@mipmap/icon_wrong_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_right_pressed" android:state_pressed="true"/>
<item android:drawable="@mipmap/icon_right_pressed" android:state_selected="true"/>
<item android:drawable="@mipmap/icon_right_pressed" android:state_checked="true"/>
<item android:drawable="@mipmap/icon_right_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_righ_half_pressed" android:state_pressed="true"/>
<item android:drawable="@mipmap/icon_righ_half_pressed" android:state_selected="true"/>
<item android:drawable="@mipmap/icon_righ_half_pressed" android:state_checked="true"/>
<item android:drawable="@mipmap/icon_righ_half_normal"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/icon_check" android:state_pressed="true"/>
<item android:drawable="@mipmap/icon_check" android:state_selected="true"/>
<item android:drawable="@mipmap/icon_check" android:state_checked="true"/>
<item android:drawable="@mipmap/icon_no_check"/>
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/bg_color_check" android:state_pressed="true" />
<item android:drawable="@drawable/bg_color_check" android:state_selected="true" />
<item android:drawable="@drawable/bg_color_check" android:state_checked="true" />
<item android:drawable="@drawable/bg_color_normal" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/color_0089ff" android:state_checked="true" />
<item android:color="@color/color_0089ff" android:state_selected="true" />
<item android:color="@color/color_0089ff" android:state_focused="true" />
<item android:color="@color/color_0089ff" android:state_pressed="true" />
<item android:color="@color/color_0089ff" android:state_active="true" />
<item android:color="@color/color_0089ff" android:state_activated="true" />
<item android:color="@color/textColor" android:state_checked="false" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_alignParentTop="true"
android:background="#000000"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingRight="16dp">
<TextView
android:id="@+id/tv_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:padding="10dp"
android:text="取消"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:id="@+id/tv_save"
android:layout_width="70dp"
android:layout_height="35dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/btn_background_blue"
android:gravity="center"
android:text="保存"
android:textColor="@color/white"
android:textSize="16sp" />
</RelativeLayout>
<FrameLayout
android:id="@+id/doodle_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/rl_title"
android:background="#000000" />
<!--<com.reactlibrary.DoodleView-->
<!--android:id="@+id/doodle_view"-->
<!--android:layout_width="match_parent"-->
<!--android:visibility="gone"-->
<!--android:layout_below="@id/rl_title"-->
<!--android:layout_height="match_parent"/>-->
<LinearLayout
android:id="@+id/ll_right_wrong"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/rg_type"
android:background="#60777a"
android:orientation="vertical">
<RadioGroup
android:id="@+id/rg_error"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_alignParentBottom="true"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="4dp">
<RadioButton
android:id="@+id/rb_correct"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:button="@null"
android:drawableTop="@drawable/icon_right"
android:gravity="center"
android:textSize="0sp" />
<RadioButton
android:id="@+id/rb_right_half"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:button="@null"
android:drawableTop="@drawable/icon_right_half"
android:gravity="center"
android:textSize="0sp" />
<RadioButton
android:id="@+id/rb_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:button="@null"
android:drawableTop="@drawable/icon_error"
android:gravity="center"
android:textSize="0sp" />
</RadioGroup>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_question"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginTop="20dp"
android:layout_marginBottom="15dp"
android:scrollbars="none" />
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_stroke_color"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/rg_type"
android:layout_marginBottom="15dp"
android:scrollbars="none"
android:visibility="gone" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_rubber_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/rg_type"
android:background="@android:color/transparent"
android:paddingBottom="15dp"
android:scrollbars="none"
android:visibility="gone" />
<LinearLayout
android:id="@+id/ll_rotate"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_above="@+id/rg_type"
android:background="#60777a"
android:gravity="center"
android:orientation="horizontal"
android:visibility="gone">
<TextView
android:id="@+id/tv_rotate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:padding="10dp"
android:text="旋转"
android:textColor="@color/white"
android:textSize="16sp" />
<View
android:layout_width="50dp"
android:layout_height="10dp" />
<TextView
android:id="@+id/tv_use"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:padding="10dp"
android:text="应用"
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
<RadioGroup
android:id="@+id/rg_type"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_alignParentBottom="true"
android:background="#000000"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="4dp">
<RadioButton
android:id="@+id/rb_right_error"
style="@style/style_home_RadioButton"
android:checked="true"
android:drawableTop="@drawable/bar_right_wrong"
android:text="对错" />
<RadioButton
android:id="@+id/rb_doodling"
style="@style/style_home_RadioButton"
android:drawableTop="@drawable/bar_doodling"
android:text="涂鸦" />
<RadioButton
android:id="@+id/rb_rubber"
style="@style/style_home_RadioButton"
android:drawableTop="@drawable/bar_rubber"
android:text="清除" />
<RadioButton
android:id="@+id/rb_rotate"
style="@style/style_home_RadioButton"
android:drawableTop="@drawable/bar_rotate"
android:text="旋转" />
</RadioGroup>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.reactlibrary.widget.ViewPagerFixed
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/tv_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:text="1/2"
android:textColor="@color/white" />
<TextView
android:id="@+id/tv_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:padding="10dp"
android:text="更多"
android:textColor="@color/white" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rl_loading"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:layout_centerHorizontal="true"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="20dp"
android:layout_height="20dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/progress_bar"
android:layout_gravity="center"
android:layout_marginTop="5dp"
android:gravity="center"
android:lineSpacingExtra="3dp"
android:text="请稍候..."
android:textColor="@color/white"
android:textSize="10sp" />
</RelativeLayout>
</FrameLayout>
<?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:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/tv_edit"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@drawable/btn_white_check1"
android:gravity="center"
android:padding="10dp"
android:text="编辑"
android:textColor="@color/textColor"
android:textSize="14sp" />
<View style="@style/line_match" />
<TextView
android:id="@+id/tv_save"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@drawable/btn_white_check1"
android:gravity="center"
android:padding="10dp"
android:text="保存到相册"
android:textColor="@color/textColor"
android:textSize="14sp" />
<View style="@style/line_match" />
<TextView
android:id="@+id/tv_cancel"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@drawable/btn_white_check1"
android:gravity="center"
android:padding="10dp"
android:text="取消"
android:textColor="@color/textColor"
android:textSize="14sp" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#cc000000">
<LinearLayout
android:id="@+id/doodle_color_selector_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:clickable="true"
android:gravity="center_horizontal"
android:orientation="vertical">
<LinearLayout
android:id="@+id/doodle_shader_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:background="#ffffff"
android:padding="1dp"
android:scaleType="centerCrop"
android:src="@drawable/doodle_shader1"/>
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="5dp"
android:background="#ffffff"
android:padding="1dp"
android:scaleType="centerCrop"
android:src="@drawable/doodle_shader2"/>
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="5dp"
android:background="#ffffff"
android:padding="1dp"
android:scaleType="centerCrop"
android:src="@drawable/doodle_shader3"/>
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="5dp"
android:background="#ffffff"
android:padding="1dp"
android:scaleType="centerCrop"
android:src="@drawable/doodle_shader4"/>
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="5dp"
android:background="#ffffff"
android:padding="1dp"
android:scaleType="centerCrop"
android:src="@drawable/doodle_shader5"/>
</LinearLayout>
<EditText
android:id="@+id/doodle_txtview_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@android:color/transparent"
android:gravity="center"
android:inputType="numberDecimal"
android:minWidth="150dp"
android:padding="5dp"
android:text="999"
android:textColor="#fff"
android:textSize="16dp"/>
<LinearLayout
android:id="@+id/doodle_txtview_reduce"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical"
android:gravity="center"
android:text="-"
android:textColor="#ffffff"
android:textSize="14dp"
/>
<SeekBar
android:id="@+id/doodle_seekbar_size"
android:layout_width="260dp"
android:layout_height="33dp"
android:max="100"
android:maxHeight="33dp"
android:minHeight="33dp"
android:progressDrawable="@drawable/doodle_seekbar_bg"
android:thumb="@drawable/doodle_thumb_seekbarr"
android:thumbOffset="0dp"/>
<TextView
android:id="@+id/doodle_txtview_add"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical"
android:gravity="center"
android:text="+"
android:textColor="#ffffff"
android:textSize="14dp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#88000000"
android:orientation="horizontal">
<com.reactlibrary.widget.androids.STextView
android:id="@+id/dialog_enter_btn_01"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:background="#00000000"
android:gravity="center"
android:text="@string/doodle_cancel"
android:textColor="#bebebe"
android:textSize="20dp"
app:stv_text_color_pressed="#88bebebe"/>
<com.reactlibrary.widget.androids.STextView
android:id="@+id/dialog_enter_btn_02"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:background="#00000000"
android:gravity="center"
android:text="@string/doodle_enter"
android:textColor="#11cfff"
android:textSize="20dp"
app:stv_text_color_pressed="#8811cfff"/>
</LinearLayout>
</FrameLayout>
\ No newline at end of file
<?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="match_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"/>
<FrameLayout
android:id="@+id/doodle_image_selector_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:clickable="true"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical">
<EditText
android:id="@+id/doodle_selectable_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#88000000"
android:padding="10dp"
android:textColor="#ffffff"
android:textSize="26dp" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="bottom"
android:background="#ffffff"
android:clickable="true"
android:paddingLeft="5dp"
android:paddingRight="5dp">
<TextView
android:id="@+id/doodle_text_cancel_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="bottom|left"
android:gravity="center"
android:padding="10dp"
android:text="@string/doodle_cancel"
android:textColor="#232323"
android:textSize="16dp" />
<TextView
android:id="@+id/doodle_text_enter_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="bottom|right"
android:gravity="center"
android:padding="10dp"
android:text="@string/doodle_enter"
android:textColor="#232323"
android:textSize="16dp" />
</FrameLayout>
</LinearLayout>
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/dialog_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#88000000"
android:fitsSystemWindows="true"
android:paddingTop="10dp"
android:paddingBottom="10dp">
<com.reactlibrary.widget.androids.SLinearLayout
android:layout_width="280dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:clickable="true"
android:minWidth="280dp"
android:orientation="vertical"
android:paddingTop="0dp"
android:paddingBottom="3.5dp"
app:sel_background="#ffffff"
app:sel_background_corners="5dp">
<TextView
android:id="@+id/dialog_title"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:ellipsize="middle"
android:gravity="center"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:singleLine="true"
android:text=""
android:textColor="#2b2b2b"
android:textSize="20dp"
android:textStyle="bold" />
<FrameLayout
android:id="@+id/dialog_list_title_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#dfdfdf" />
<TextView
android:id="@+id/dialog_enter_msg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:gravity="center_vertical"
android:minWidth="50dp"
android:padding="20dp"
android:textColor="#2b2b2b"
android:textSize="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.reactlibrary.widget.androids.STextView
android:id="@+id/dialog_enter_btn_01"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:background="#00000000"
android:gravity="center"
android:text=""
android:textColor="#bebebe"
android:textSize="20dp"
app:stv_text_color_pressed="#88bebebe" />
<com.reactlibrary.widget.androids.STextView
android:id="@+id/dialog_enter_btn_02"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:background="#00000000"
android:gravity="center"
android:text=""
android:textColor="#11cfff"
android:textSize="20dp"
app:stv_text_color_pressed="#8811cfff" />
</LinearLayout>
</com.reactlibrary.widget.androids.SLinearLayout>
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.reactlibrary.widget.androids.RatioImageView
android:id="@+id/doodle_image"
android:layout_width="match_parent"
android:layout_height="0dp"
android:scaleType="centerCrop"
app:riv_height_to_width_ratio="1"
/>
<ImageView
android:id="@+id/doodle_image_selected"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:scaleType="fitXY"
android:src="@drawable/doodle_imageselector_image_selected"
/>
</RelativeLayout>
\ No newline at end of file
This diff is collapsed.
<?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="match_parent"
android:background="#dddddd"
android:orientation="vertical"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:fitsSystemWindows="true"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="45dp">
<TextView
android:id="@+id/btn_back"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:text="@string/doodle_cancel"
android:textColor="#000000"
android:textSize="16dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="45dp"
android:layout_centerInParent="true"
android:gravity="center"
android:text="@string/doodle_select_image"
android:textColor="@android:color/black"
android:textSize="18dp"
android:textStyle="normal"
/>
<TextView
android:id="@+id/btn_enter"
android:layout_width="wrap_content"
android:layout_height="45dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:gravity="center"
android:text="@string/doodle_enter"
android:textColor="@android:color/black"
android:textSize="16dp"
android:textStyle="normal"
android:visibility="visible"
/>
</RelativeLayout>
</RelativeLayout>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="#aaaaaa"/>
<GridView
android:id="@+id/doodle_list_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:cacheColorHint="@android:color/transparent"
android:horizontalSpacing="1dp"
android:listSelector="@android:color/transparent"
android:numColumns="3"
android:verticalSpacing="1dp"/>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#181818"
android:fitsSystemWindows="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/doodle_title_bar_height"
android:gravity="center_vertical"
android:orientation="horizontal">
<com.reactlibrary.widget.androids.MaskImageView
android:id="@+id/doodle_btn_back"
android:layout_width="@dimen/doodle_title_bar_height"
android:layout_height="match_parent"
android:onClick="onClick"
android:scaleType="centerInside"
android:src="@drawable/doodle_btn_back"
android:visibility="visible"
app:miv_is_ignore_alpha="true"
app:miv_mask_color="#a8a8a8" />
<FrameLayout
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginBottom="15dp"
android:layout_marginTop="15dp"
android:background="#101010" />
<com.reactlibrary.widget.androids.STextView
android:id="@+id/doodle_txt_title"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginLeft="12dp"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="1"
android:singleLine="true"
android:text="作业批改"
android:textColor="#ffffff"
android:textSize="18dp"
app:stv_text_color_pressed="#aaffffff" />
<com.reactlibrary.widget.androids.MaskImageView
android:id="@+id/doodle_btn_rotate"
android:layout_width="@dimen/doodle_title_bar_height"
android:layout_height="@dimen/doodle_title_bar_height"
android:onClick="onClick"
android:visibility="gone"
android:padding="5dp"
android:scaleType="fitXY"
android:src="@drawable/doodle_rotate"
android:textSize="20dp"
app:miv_is_ignore_alpha="true"
app:miv_mask_color="#a8a8a8" />
<com.reactlibrary.widget.androids.MaskImageView
android:id="@+id/doodle_btn_hide_panel"
android:layout_width="@dimen/doodle_title_bar_height"
android:layout_height="@dimen/doodle_title_bar_height"
android:onClick="onClick"
android:padding="13dp"
android:scaleType="fitCenter"
android:src="@drawable/doodle_btn_effect_panel"
android:visibility="gone"
app:miv_is_ignore_alpha="true"
app:miv_mask_color="#a8a8a8" />
<com.reactlibrary.widget.androids.MaskImageView
android:id="@+id/doodle_btn_finish"
android:layout_width="@dimen/doodle_title_bar_height"
android:layout_height="match_parent"
android:onClick="onClick"
android:scaleType="centerCrop"
android:src="@drawable/doodle_btn_finish"
android:visibility="visible"
app:miv_is_ignore_alpha="true"
app:miv_mask_color="#a8a8a8" />
</LinearLayout>
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_color"
android:layout_width="45dp"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/ll_bg"
android:layout_width="23dp"
android:layout_height="23dp"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:background="@drawable/bg_white_circle"
android:gravity="center">
<View
android:id="@+id/view_color"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/bg_color" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<com.reactlibrary.photoview.PhotoView
android:id="@+id/iv_ig"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:visibility="gone" />
</FrameLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_question"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_question"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:paddingTop="5dp"
android:paddingRight="10dp"
android:paddingBottom="5dp"
android:text="题目2"
android:textColor="@color/white"
android:textSize="14sp" />
<View
android:layout_width="2px"
android:layout_height="match_parent"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:background="@color/white" />
</LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_view_size"
android:layout_width="50dp"
android:layout_height="50dp"
android:gravity="center"
android:orientation="vertical">
<View
android:id="@+id/view_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:background="@drawable/bg_white" />
</LinearLayout>
\ No newline at end of file
<?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="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/ll_right_wrong"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/rg_type"
android:background="#60777a"
android:orientation="vertical">
<RadioGroup
android:id="@+id/rg_error"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_alignParentBottom="true"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="4dp">
<RadioButton
android:id="@+id/rb_correct"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:button="@null"
android:drawableTop="@drawable/icon_right"
android:gravity="center"
android:textSize="0sp" />
<RadioButton
android:id="@+id/rb_right_half"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:button="@null"
android:drawableTop="@drawable/icon_right_half"
android:gravity="center"
android:textSize="0sp" />
<RadioButton
android:id="@+id/rb_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:button="@null"
android:drawableTop="@drawable/icon_error"
android:gravity="center"
android:textSize="0sp" />
</RadioGroup>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_question"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="15dp"
android:layout_marginTop="20dp"
android:scrollbars="none" />
</LinearLayout>
<RelativeLayout
android:id="@+id/rl_color"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/rg_type"
android:visibility="gone"
android:orientation="horizontal">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_stroke_color"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:scrollbars="none" />
<ImageView
android:id="@+id/btn_undo"
android:layout_width="23dp"
android:layout_height="23dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:background="@drawable/doodle_btn_effect_round"
android:onClick="onClick"
android:scaleType="centerInside"
android:src="@drawable/doodle_ic_undo" />
</RelativeLayout>
<RadioGroup
android:id="@+id/rg_type"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_alignParentBottom="true"
android:background="#000000"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="4dp">
<RadioButton
android:id="@+id/rb_right_error"
style="@style/style_home_RadioButton"
android:checked="true"
android:drawableTop="@drawable/bar_right_wrong"
android:text="对错" />
<RadioButton
android:id="@+id/rb_doodling"
style="@style/style_home_RadioButton"
android:drawableTop="@drawable/bar_doodling"
android:text="涂鸦" />
<RadioButton
android:id="@+id/rb_rubber"
style="@style/style_home_RadioButton"
android:drawableTop="@drawable/bar_rubber"
android:text="清除" />
<RadioButton
android:id="@+id/rb_rotate"
style="@style/style_home_RadioButton"
android:drawableTop="@drawable/bar_rotate"
android:text="旋转" />
</RadioGroup>
</LinearLayout>
\ No newline at end of file
<resources>
<string name="doodle_app_name">Doodle</string>
<string name="doodle_clear_screen">Clear</string>
<string name="doodle_cant_undo_after_clearing">Are you sure to clear all?</string>
<string name="doodle_saving_picture">Save all before exiting</string>
<string name="doodle_enter">Enter</string>
<string name="doodle_cancel">Cancel</string>
<string name="doodle_save">Save</string>
<string name="doodle_edit">Edit</string>
<string name="doodle_remove">Delete</string>
<string name="doodle_top">Top</string>
<string name="doodle_bottom">Bottom</string>
<string name="doodle_select_image">Select a image</string>
<string name="doodle_edit_mode">Edit mode</string>
</resources>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment