Search in sources :

Example 1 with GestureImageView

use of com.polites.android.GestureImageView in project gesture-imageview by jasonpolites.

the class StandardImageProgrammatic method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.empty);
    LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
    view = new GestureImageView(this);
    view.setImageResource(R.drawable.image);
    view.setLayoutParams(params);
    ViewGroup layout = (ViewGroup) findViewById(R.id.layout);
    layout.addView(view);
}
Also used : LayoutParams(android.widget.LinearLayout.LayoutParams) GestureImageView(com.polites.android.GestureImageView) ViewGroup(android.view.ViewGroup)

Example 2 with GestureImageView

use of com.polites.android.GestureImageView in project gesture-imageview by jasonpolites.

the class DoubleImage method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.double_image);
    LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
    view = new GestureImageView(this);
    view.setLayoutParams(params);
    ViewGroup layout = (ViewGroup) findViewById(R.id.layout);
    layout.addView(view);
    handler.sendEmptyMessageDelayed(IMAGE_LOAD, 2000);
}
Also used : LayoutParams(android.widget.LinearLayout.LayoutParams) GestureImageView(com.polites.android.GestureImageView) ViewGroup(android.view.ViewGroup)

Aggregations

ViewGroup (android.view.ViewGroup)2 LayoutParams (android.widget.LinearLayout.LayoutParams)2 GestureImageView (com.polites.android.GestureImageView)2