项目作者: RelinRan

项目描述 :
ImageView + TextView + TextView +TextView+ EditText +ImageView 实现的组合控件(ImageView +TextView+ TextView+ TextView+ EditText +ImageView implementation of the composite control)
高级语言: Java
项目地址: git://github.com/RelinRan/TextGroupView.git
创建时间: 2019-09-10T02:12:44Z
项目社区:https://github.com/RelinRan/TextGroupView

开源协议:

下载


TextGroupView

ImageView + TextView + TextView +TextView+ EditText +ImageView + ImageView 实现的组合控件

方法一 ARR依赖

TextGroupView.arr
Method 1 ARR dependence

  1. android {
  2. ....
  3. repositories {
  4. flatDir {
  5. dirs 'libs'
  6. }
  7. }
  8. }
  9. dependencies {
  10. implementation(name: 'TextGroupView', ext: 'aar')
  11. }

方法二 JitPack依赖

Method 2 JitPack dependencies

A.项目/build.grade

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }

B.项目/app/build.grade

  1. dependencies {
  2. implementation 'com.github.RelinRan:TextGroupView:1.0.2'
  3. }

效果图

img

xml布局

  1. <com.android.view.TextGroupView
  2. android:layout_width="match_parent"
  3. android:layout_height="60dp"
  4. android:layout_marginLeft="20dp"
  5. android:layout_marginRight="20dp"
  6. android:layout_marginTop="20dp"
  7. app:left_imageMarginLeft="10dp"
  8. app:left_imageSrc="@drawable/text_group_view_ic_head"
  9. app:left_imageWidth="50dp"
  10. app:left_textPaddingLeft="10dp"
  11. app:radius="8dp"
  12. app:right_imagePaddingRight="10dp"
  13. app:right_imageSrc="@drawable/text_group_view_ic_arrow"
  14. app:right_text="更换头像"
  15. app:right_textColor="#FFFFFF"
  16. app:solid="#161538"></com.android.view.TextGroupView>
  17. <com.android.view.TextGroupView
  18. android:layout_width="match_parent"
  19. android:layout_height="60dp"
  20. android:layout_marginLeft="20dp"
  21. android:layout_marginRight="20dp"
  22. android:layout_marginTop="20dp"
  23. app:edit_hintText="输入昵称"
  24. app:edit_hintTextColor="#FFFFFF"
  25. app:edit_textColor="#FFFFFF"
  26. app:left_text="昵称"
  27. app:left_textColor="#FFFFFF"
  28. app:left_textPaddingLeft="10dp"
  29. app:radius="8dp"
  30. app:right_imagePaddingRight="10dp"
  31. app:right_imageSrc="@drawable/text_group_view_ic_arrow"
  32. app:solid="#161538"></com.android.view.TextGroupView>
  33. <com.android.view.TextGroupView
  34. android:layout_width="match_parent"
  35. android:layout_height="60dp"
  36. android:layout_marginLeft="20dp"
  37. android:layout_marginRight="20dp"
  38. android:layout_marginTop="20dp"
  39. app:left_imagePaddingLeft="10dp"
  40. app:left_imageSrc="@drawable/text_group_view_ic_item"
  41. app:left_text="基本信息"
  42. app:left_textColor="#FFFFFF"
  43. app:radius="8dp"
  44. app:right_imagePaddingRight="10dp"
  45. app:right_imageSrc="@drawable/text_group_view_ic_arrow"
  46. app:solid="#161538"></com.android.view.TextGroupView>
  47. <com.android.view.TextGroupView
  48. android:layout_width="match_parent"
  49. android:layout_height="60dp"
  50. android:layout_marginLeft="20dp"
  51. android:layout_marginRight="20dp"
  52. android:layout_marginTop="20dp"
  53. app:center_imagePaddingRight="10dp"
  54. app:center_imageSrc="@drawable/text_group_view_ic_head"
  55. app:left_text="头像"
  56. app:left_textColor="#FFFFFF"
  57. app:left_textPaddingLeft="10dp"
  58. app:radius="8dp"
  59. app:right_imagePaddingRight="10dp"
  60. app:right_imageSrc="@drawable/text_group_view_ic_arrow"
  61. app:solid="#161538"></com.android.view.TextGroupView>