Guest User

Untitled

a guest
Dec 12th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. textTem = (TextView) findViewById(R.id.textTem);
  2. textTem.setText("ssss");
  3.  
  4. public class DayItem extends RelativeLayout {
  5. ...
  6. }
  7.  
  8. <com.example.a28210.weathpredict.DayItem
  9. android:id="@+id/days1"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. item:dayweather="snow"
  13. item:daymaxtem="-2°"
  14. item:daymintem="-12°"
  15. item:daydate="12.8" />
  16.  
  17. <?xml version="1.0" encoding="utf-8"?>
  18. <resources>
  19. <declare-styleable name="DayItem">
  20. <attr name="daydate" format="string" />
  21. <attr name="dayweather" format="string" />
  22. <attr name="daymaxtem" format="string" />
  23. <attr name="daymintem" format="string" />
  24. </declare-styleable>
  25. </resources>
  26.  
  27. DayItem d=(DayItem)view.findViewById(R.id.days1);
  28. d. //?????
Add Comment
Please, Sign In to add comment