Android transparent overlay without View

We’re not going to use ViewOverlay here. We’ll use Dialog instead. The overlay does not show on button click. What I did was let the overlay appear when the activity is loaded. First, create the XML file for the contents of that dialog overlay. \app\src\main\res\layout\popup_content.xml

Then add the following code into your activity’s Java […]

Read More

Android ImageView has unwanted padding: layout troubleshooting

If you use ImageView in your android app layout and you get that unwanted padding around the image, here’s an Android XML attribute that helped me solved the layout issue:

Add android:adjustViewBounds=”true” attribute to your ImageView XML tag and you’ll probably see the unwanted padding go away. According to the ImageView docs: android:adjustViewBounds Set […]

Read More

Steins;Gate anime review

I just finished watching all episodes of the anime Steins;Gate and I LOVED it! It’s about “mad scientist” Okabe Rintarou and his lab mates, who accidentally discovered/invent a “Phone Microwave” that could send messages to the past. Their experiments and curiosity led into consequences that they couldn’t handle. Art in Steins;Gate anime I like the […]

Read More