Hi everyone
Unfortunately my post count is still too low to post to the developer section, that's why I'm posting here (perhaps an admin can move it to the developer section).
I have a radio group with 2 radio buttons without text. In the following, I will describe everything in very detail and show everything I have tried. The layout looks as follows:
Code:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RadioGroup
android:id="@+id/radioGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
tools:ignore="RtlHardcoded">
<RadioButton
android:id="@+id/radioButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="50dp"
android:scaleX="2"
android:scaleY="2" />
<RadioButton
android:id="@+id/radioButton2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="55dp"
android:layout_marginRight="50dp"
android:scaleX="2"
android:scaleY="2" />
</RadioGroup>
</android.support.constraint.ConstraintLayout>
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As can be seen, the hit (clickable) area covers exactly the buttons (shown as blue rectangle).
Now I would like to increase the size of the clickable area. When I add
Code:
android:paddingTop="30dp"
android:paddingBottom="30dp"
to each button I'm getting the following layout:
This is nice, now the clickable area is enlarged at the top and bottom. But I would also like to expand the clickable area to the left and right. So I add
Code:
android:paddingLeft="30dp"
to each button. The result is the following:
That is bad because the clickable area (blue rectangles) is now no more centered around the button. When I add
Code:
android:paddingRight="30dp"
to each button (which is equivalend to substituting all above paddings with just android: padding="30dp") it gets even worse:
I have tried everything but I'm not able to get the clickable area centered around the button. So I have tried to move the clickable area at runtime using
Code:
RadioButton radioButton= findViewById(R.id.radioButton1);
final View parent = (View) radioButton.getParent();
parent.post(new Runnable() {
public void run() {
final Rect rect = new Rect();
radioButton.getHitRect(rect);
rect.left -= 100;
rect.right -= 100;
parent.setTouchDelegate(new TouchDelegate(rect, radioButton));
}
});
This does also not work, the clickable area somehow does not change at all.
Is there any way to get the clickable area centered around the buttons? Any help is highly appreciated.
Related
Do you know any database on WM5 :
where:
1. scrolling throw items and selecting them can be done with one hand and buttons only ?
so it would be quick, responsive, so nice to use
2. and capable of managing dynamic item contents ?
for example if a field is small it would display only one line (giving more space for seeing the other items), but could also be 10 lines big if it contains for example a lot of text in it.
I am a former Palm user and I used to put lots of information (like good outing places, IDs and password, foreign language vocabulary, ...) in a personal database. I used MobileDB for Palm (cf. http://www.handmark.com/products/detail.php?id=70), it was really convenient to use, because it had all the above characteristics: 1. and 2.
Illustration of these vital 2 characteristics:
1. on the database item view:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
you could use the hardware pad to scroll up and down, items by items and even page by page ! the right and left arrow allowed you to see all the other columns without having to select an item and see part of its information. great !
2. From that place you just had to press the central button of the direction pad to select the item view:
Here the items are only on 1 line because they are small, but if 'Location' for example had contained 10 more words this view would have displayed the all content of this field. great ! then you would just have to scroll up and down with the direction pad to see the rest if it had not enough place on the screen. Perfect!
How could I get something similar on my new WM5 PocketPC ?
I tried:
- mobiledb for PocketPC: unfortunately is NOT like the Palm version, none of the points 1. and 2. are performed in the PocketPC version.
- SprintDB: very complete database but none of points 1. and 2. and fullfilled
- GrandaSoft - XSForms & XSDesigner: similar to SprintDB very complete but none of points 1 and 2 are fullfilled.
- Data On the Run: it doesn't fullfill point 1. and 2.
Bestdem is an application which allows you in a friendly way to browse multiple sites with entertaining graphics, cinematics, texts, etc. The application has been designed for mobile phones so that never again will have to use a web browser on your phone for viewing portals.
The application lets you view the home page, waiting room and top of each of the portals. Allows grouping of sites due to the most frequently visited and favorite. If you are not visiting any of the sites you can also hide it. Through gestures and many other options you can customize the application to suit your needs.
You like the picture and you want to share it with friends on Facebook or send it as an MMS? Now it's no problem - just hold your finger on the selected image and select the corresponding your operation. Of course, recording on SD is also available.
---=== English sites ===---
-Art of Trolling
-Bash
-Comixed
-Derp
-FAIL Blog
-FAIL Book
-FMyLife
-Go Cry Emo Kid
-Graphjam
-Memebase
-MyLifeIsAverage
-QDB
-Rage Comics
-Texts from last night
-Very Demotivational
---=== Polish sites ===---
-Analizersi
-Atak Klonów
-Bash
-Bekanamaxa
-Chamsko
-Dawniej Dzisiaj
-Demotywatory
-Fabryka Memów
-Fajl
-Fanpik
-Gnioty
-Hopaj
-Kiep
-Komixxy
-Kot Burger
-Kretyn
-Kwejk
-Machina Czasu
-Mistrzowie
-Nie-Chamsko
-No To Lu
-Perełki
-Piekielni
-Rodzynki
-Roflcopter
-Sadistic
-Student Potrafi
-Suchary
-Super Bobas
-Ujarani
-Weź się tato
-Wiocha
-Wszechpolska
-Wyciągamy Karteczki
-Wykresy
-Yafud
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can find the app in Android Market searching "Bestdem".
Added new English websites:
-9gag, actinglikeanimals
-bronies
-engrishfunny
-fandom
-lolcatas
-loldogs
-photobombs
-pictureisunrelated
-pokememes
-punditkitchen
-roflrazzi
-science
-senorgif
-superheroes
Love it.
Many thanks.
New version in Market:
-Added "The Daily What" site
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Waterize Live Wallpaper is an OpenGL live wallpaper that simulates water ripples.
2.x version is a complete rewrite of the application released on Google Play some years ago with lots of new features and improvements
Features:
10 predefined backgrounds
Custom image background
Multitouch support
Interactive particles with dynamic shadows!
Rain option
Sound effects
Screenshots
Video (version 2.0.0)
The application is available on Google Play in two version:
Waterize Full (paid, all features listed above and AdFree)
Waterize Lite (free, with a limited subset of functionalities)
Official Facebook page
Changelog:
2.1.0
fixed/dynamic particles shadows! (full version)
background image scrolling option (full version)
old rocks image added (full version)
minor changes
2.0.0
complete rewrite of the app!
background image scrolling
rain option
multitouch support
particles
hires textures
fixed ripples aspect ratio
lots more!
If you want to translate Waterize into a new language:
download the attached file translate.zip
edit the xml inside the zip in this way:
Original line:
<string name="invalid_value">Invalid value</string>
Click to expand...
Click to collapse
Translated line:
<string name="invalid_value">My translation of Invalid value</string>
Click to expand...
Click to collapse
Please do not translate anything inside the "name" attribute:
<string name="do not translate this">
Click to expand...
Click to collapse
But only:
<string name="my_key">Please translate only this part</string>
Click to expand...
Click to collapse
Attach in this topic a modified version of the file or send me a pm with the download link (please remember to indicate the new language!)
I'll be glad for every contribution
Available translations:
Italian by berserker_devel (2.1.0)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SimpleMockup
Information
This application was designed to take advantage of building beautiful Android applications. That's the goal of the application. It is entirely open-sourced, and free to use.
What's included?
* ViewPager inside of a MenuDrawer
* Translucent StatusBar and NavigationBar for api19+
* Shows how to add a Header to a MenuDrawer, and an interactive footer, with an explanation in the code as to how im doing it
* Shows how to add a beautiful 'About' section, how to launch activities and use animation when opening said activities (Android L animations are included)
* Shows how to add an ImageView with a transparent statusbar. Not only does it look great, it also sort of mimics Android L
* Shows how to change the background colors of several elements of an application, how to create custom themes in styles
* How to programmatically set the fontfamily
* How to change the fontFamily in layouts, and in the styles.xml
* Shows how to create a custom request page that actually works. It will copy the title and body over to the email client the user chooses, where they can easily send the email. I worked super hard on making it look beautiful. I strongly believe it shows, and comes in handy.
* much, much more. im ALWAYS improving on this. Seriously. I work on this like every day. haha
Screenshots:
Please see the Play Store screenshots, or install the app.
Download:
https://play.google.com/store/apps/details?id=com.kyler.mockup
Source
https://github.com/I-am-Reinvented/SimpleMockup
Heads up, the hidden text mentions donations. If you don't care about it, please do not unhide it.
I put a lot of time and work into this, and do it all for you guys. If you would like to show your appreciation, and feel as if a 'thank you' isnt enough, feel free to donate to me. That can be done via PayPal, and there should be a 'Donate to me' button under my profile if you're using the desktop version of XDA.
Kudosuit is a game of the most popular genre. You should guess what is implied on a picture and input a right answer in a given field. At the start you only have information about word length. There is a group of mostly random letters that includes right ones near the answer field. You can tap (click) these letters to fill empty fields with their values. If an entered word matches a right answer this level is considered as complete. In case if you get stacked there are three standard hints available. This hint costs some coins. You can earn them in a couple of ways. The first is to complete a level and get coins for it. The second is to watch an AD and to get coins as reward. And the third is to buy coins.
There are six game types:
Erasure: Tap and drag erasing protection film with a spatula.
Pixelated image: Pixelated original image. If you can't recognize it from the beginning, you can clear a little bit the image by using the button on the bottom left of the image.
Planks: Tap the button on the bottom left of the image. Aiming and shooting planks to reveal the picture.
Trivia questions: Choose the correct answer between four possible solutions.
Four Pictures: You're shown 4 images that are united by meaning, and you have to guess the word that links them all, what they have in common?
Default: Guess what is shown in the picture.
Can you unlock all 12 achievements?
There is one Leader-board in the game ? ? ?
Your score is calculated as follows:
1000 * Completed categories + Current Coins
Your score will be submitted each time you complete a category
Disclaimer:
1. All logos shown or represented in this game are copyright and/or trademark of their respective corporations. The use of low-resolution images in this trivia app for use of identification in an informational context qualify as fair use under copyright law.
2. Most images were retrieved from Wikimedia Commons, Flickr, and Pixabay, and they are licensed under Creative Commons, GFDL, or belong to Public Domain. If you believe any photo infringes on your copyright, please contact us and we'll remove it immediately.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Google play: https://play.google.com/store/apps/details?id=com.gchatz.kudosuit
XDA Labs: https://labs.xda-developers.com/store/app/com.gchatz.kudosuit