Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- textTem = (TextView) findViewById(R.id.textTem);
- textTem.setText("ssss");
- public class DayItem extends RelativeLayout {
- ...
- }
- <com.example.a28210.weathpredict.DayItem
- android:id="@+id/days1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- item:dayweather="snow"
- item:daymaxtem="-2°"
- item:daymintem="-12°"
- item:daydate="12.8" />
- <?xml version="1.0" encoding="utf-8"?>
- <resources>
- <declare-styleable name="DayItem">
- <attr name="daydate" format="string" />
- <attr name="dayweather" format="string" />
- <attr name="daymaxtem" format="string" />
- <attr name="daymintem" format="string" />
- </declare-styleable>
- </resources>
- DayItem d=(DayItem)view.findViewById(R.id.days1);
- d. //?????
Add Comment
Please, Sign In to add comment