Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. <ScrollView
  2. android:id="@+id/scrollField"
  3. android:layout_width="fill_parent"
  4. android:layout_height="wrap_content"
  5. android:layout_above="@+id/btnDELETE"
  6. android:layout_below="@+id/textTitle"
  7. android:layout_marginTop="10dp" >
  8.  
  9. <LinearLayout
  10. android:id="@+id/linearLayoutRatingDetails"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:orientation="vertical" >
  14.  
  15. <TextView
  16. android:id="@+id/tv_EmployeeName"
  17. android:layout_width="wrap_content"
  18. android:layout_height="40dp"
  19. android:layout_marginTop="10dp"
  20. android:text="dfkyjrtl"
  21. android:textColor="#2E1F1F" />
  22.  
  23. <TextView
  24. android:id="@+id/tv_TaskName"
  25. android:layout_width="wrap_content"
  26. android:layout_height="40dp"
  27. android:layout_marginTop="6dp"
  28. android:text="dfkyjrtl"
  29. android:textColor="#2E1F1F" />
  30.  
  31. <TextView
  32. android:id="@+id/tv_TaskDate"
  33. android:layout_width="wrap_content"
  34. android:layout_height="40dp"
  35. android:layout_marginTop="6dp"
  36. android:text="dfkyjrtl"
  37. android:textColor="#2E1F1F" />
  38.  
  39. <TextView
  40. android:id="@+id/tv_TaskRate"
  41. android:layout_width="wrap_content"
  42. android:layout_height="40dp"
  43. android:layout_marginTop="6dp"
  44. android:text="dfkyjrtl"
  45. android:textColor="#2E1F1F" />
  46. </LinearLayout>
  47. </ScrollView>
  48.  
  49.  
  50.  
  51.  
  52. Hare is my Activity code.
  53.  
  54. tvEmpName.setText(str_IntentName);
  55. tvTaskName.setText(str_IntentTaskName);
  56. tvDate.setText(str_IntentDate);
  57. tvRate.setText(str_IntentRate);
  58. Create_RatingBar();
  59.  
  60.  
  61. private void Create_RatingBar()
  62. {
  63. stepSize = (float) 0.5;
  64. rating = new RatingBar(Task_Details.this);
  65. rating.setNumStars(numStar);
  66. rating.setStepSize(stepSize);
  67.  
  68. LinearLayout.LayoutParams param = new LinearLayout.LayoutParams
  69. (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
  70. param.topMargin = 500;
  71. rating.setLayoutParams(param);
  72. lL.addView(rating);
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement