Skip to content

Commit

Permalink
added drawables of diferent sizes using image baker www.img-bak.in
Browse files Browse the repository at this point in the history
  • Loading branch information
Son9o committed Mar 24, 2019
1 parent efff1c6 commit 0c7ed53
Show file tree
Hide file tree
Showing 28 changed files with 23 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.example.rozklad2;

import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

import com.github.chrisbanes.photoview.PhotoView;

Expand All @@ -13,7 +16,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_kon_to_czwa_busik);


PhotoView photoView = (PhotoView) findViewById(R.id.photo_busik_zKon);
photoView.setImageResource(R.drawable.busik_crop_z_kon);
PhotoView photoView4 = (PhotoView) findViewById(R.id.photo_busik_z_kon);
photoView4.setImageResource(R.drawable.busik_crop_z_kon);
}
}
19 changes: 11 additions & 8 deletions app/src/main/java/com/example/rozklad2/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,38 +48,41 @@ public void onClick(View view) {

});

TextView busiktextview2 = (TextView) findViewById(R.id.busikZkon);

busiktextview2.setOnClickListener(new View.OnClickListener() {
TextView gtvtextview2 = (TextView) findViewById(R.id.GTVZkon);

gtvtextview2.setOnClickListener(new View.OnClickListener() {
// The code in this method will be executed when the txtview is clicked on.
@Override
public void onClick(View view) {
// Create a new intent to open the {@link }
Intent busikIntent2 = new Intent(MainActivity.this, KonToCzwaBusikActivity.class);
Intent gtvIntent2 = new Intent(MainActivity.this, KonToCzwaGTVActivity.class);

// Start the new activity
startActivity(busikIntent2);
startActivity(gtvIntent2);
}


});

TextView gtvtextview2 = (TextView) findViewById(R.id.GTVZkon);
TextView busiktextview2 = (TextView) findViewById(R.id.busikZkon);

gtvtextview2.setOnClickListener(new View.OnClickListener() {
busiktextview2.setOnClickListener(new View.OnClickListener() {
// The code in this method will be executed when the txtview is clicked on.
@Override
public void onClick(View view) {
// Create a new intent to open the {@link }
Intent gtvIntent2 = new Intent(MainActivity.this, KonToCzwaGTVActivity.class);
Intent busikIntent2 = new Intent(MainActivity.this, KonToCzwaBusikActivity.class);

// Start the new activity
startActivity(gtvIntent2);
startActivity(busikIntent2);
}


});




}
}
Binary file added app/src/main/res/drawable-hdpi/busik_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/gtv_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/gtv_crop_z_kon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-ldpi/busik_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-ldpi/gtv_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-ldpi/gtv_crop_z_kon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/busik_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/gtv_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/gtv_crop_z_kon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/busik_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/gtv_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxhdpi/busik_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxhdpi/gtv_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxxhdpi/busik_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxxhdpi/gtv_crop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_kon_to_czwa_busik.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/photo_busik_zKon"
android:id="@+id/photo_busik_z_kon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

Expand Down

0 comments on commit 0c7ed53

Please sign in to comment.