so I'm trying to learn to do stuff with Android apps, and I have an ImageView named (id) "img_BarHealth" that i initialize to be "160dp".
I have made a button and hooked it up to this function:
public void onBack(View view) {
//Get link to the object.
ImageView bar_Health = (ImageView) findViewById(R.id.img_BarHealth);
//This is what I want done. (However this value is not accessable it seems)
bar_Health.width = "80dp";
}
So, any suggestions? =)