Tags » DPM

Android dynamically change Image View

all. I have a problem. I want when I press the button to resize the image.
This is the code in Activity:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_my);

    currentImage = new ImageView(this);
    RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(400, 400);
    currentImage.setLayoutParams(params);


    images = getResources().obtainTypedArray(R.array.images);

    currentImage.setImageResource(R.drawable.bronar_jenson);

    RelativeLayout l = (RelativeLayout)findViewById(R.id.layout);
    l.addView(currentImage);

    b = (Button)findViewById(R.id.button);
    b.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            currentImage.getLayoutParams().width = 20;
        }
    });



}
… 28 more words
Stackoverflow

Dirty little SQL secrets – One night with DPM and my transaction log

Caveat -This is just my understanding, so it is probably fundamentally flawed, but this is how I understand things and hopefully I can impart some of that understanding to you of how DPM and SQL server spend their time where prying eyes cannot see. 1,036 more words

SQL Server

DPM

My next project is all around DPM (disruptive pattern material) or camouflage. As a starting point I am looking at the history of camouflage as well as how it is found in nature. 184 more words

Research

High-Yielding Natural Gas MLPs to Buy Before Third-Quarter Earnings

While it seems hardly possible if you live in the southern United States, winter is just around the corner up north. If the Farmer’s Almanac is correct, it could be another very nasty one. 595 more words

Energy Business