« first day (353 days earlier)      last day (2075 days later) » 

fou
6:17 AM
@Dharmendra DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(in);
doc.getDocumentElement().normalize();
String nodeValue = null;
String strAttribute = null;
NodeList nodes = doc.getElementsByTagName("Strings");

for (int i = 0; i < nodes.getLength(); i++) {
Node ndremidertype = nodes.item(i);

Element elUser = (Element) nodes.item(i);
NodeList nlusers = elUser.getElementsByTagName("String");
for (int j = 0; j < nlusers.getLength(); j++) {
 
1 message moved from Android Discussion
 
 
3 hours later…
9:47 AM
AnimationSet animSet = new AnimationSet(true);

/Rotate around center of Imageview RotateAnimation ranim =
new RotateAnimation(0f, 180f, Animation.RELATIVE_TO_SELF,
0.5f, Animation.RELATIVE_TO_SELF, 0.5f); //, 200, 200); //
canvas.getWidth() / 2, canvas.getHeight() / 2);
ranim.setDuration(400); ranim.setInterpolator(new
DecelerateInterpolator());

animSet.addAnimation(ranim);

//Translate upwards and to the right. TranslateAnimation anim
= new TranslateAnimation( Animation.ABSOLUTE, 0.0f,
Animation.ABSOLUTE, +80.0f, Animation.ABSOLUTE, 0.0f,
 
10:46 AM
1 message moved from Android
 
 
5 hours later…
3:30 PM
Can i use botton.setOnClickListener in instantiateItem() method?, i remember last time i try and it force close.

Button btnSettingsBack=(Button)view.findViewById(R.id.btnHome);
btnBack.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {

finish();
startActivity(new Intent(ViewPagerActivity.this, MainActivity.class));

}
});
 
3:47 PM
1 message moved from Android
 

« first day (353 days earlier)      last day (2075 days later) »