yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] Aneel:
Styling the views

Step2:

Styling the views​

Now that we know how the code looks for TextView/ButtonView/ImageView, Let's get into styling the views as per our choice.

<View

android:layout_width="100px"
android:layout_height="100dp"
android:background="#4E4B4F" />

The above code generates a line instead of a box. WE usually make polygons and shapes in px. However, there is a very special reason why we shouldn't be using px (pixels). Every screen is covered by pixels and to understand better, See the image below and look how 2px width and 2px height looks like on different devices.

​

The dimesnion 2px x 2px in a mdpi device is good to touch and see. the same resolution in a hdpi is also good to see and touch, but when it comes to a xhdpi device we barely can see the pixels. This is the reason why we should use dp (density independent pixels) if we are defining the dimensions of any view.

Lets see the same devices with 2dp x 2dp and see how it looks.

​

Voila! The 2dp is evenly spread out on all the devices unlike the 2px.

Let's learn a few layout based definitions to understand the code. I'm taking the definitions from developer.google.com again to make it easy for everyone to refer in the future.

Now let's learn how to set a text size in a ViewType. Just like giving dimensions to a view as "dp" we use "sp"(scale independent pixels) to set the size of text.

Let's look at an example code.

<TextView
android:textSize="50sp"/>

We can add this line to any view which has text in it. By using "sp" the text looks consistent in all types of devices.

Here's a reference to the material design's typography styles. https://material.google.com/style/typography.html#typography-styles

Please check back in a few hours for more content.​
[Java for Android App Development] Aneel:
reserved for Daniel Radcliff's magic
[Java for Android App Development] Aneel:
Wait, don't forget about Kevin Hart's post here

P.S: Apologies to the moderators. Reserving a lot of place for the guide. Just one more.
[Java for Android App Development] Aneel:
reserved
[Java for Android App Development] droid4life01:
Kudos for the nice guide. http://tutorialspoint.com/ is also another great place to learn.
[Tilt, TyTN II, MDA Vario III General] djmaven:
Has anyone come across the problem of a TILT hanging up (could not find common denominator when does this occur) and ONLY the "Start" icon (and the "start" button)is inoperable. i.e. all functions work perfectly, however I have no way of getting to the Start screen - only soft reset. Help anyone :rolleyes:
[Tilt, TyTN II, MDA Vario III General] michi123:
Do you have a password set? Does this only happen after a call? If so, this has been discussed many times - just do a quick search.

If not, I´m afraid I can´t help you with your issue.

Good luck!
[Tilt, TyTN II, MDA Vario III General] mutabor:
I think I had this problem also. I'm not sure what causes it, but it looks like ti appears after I try to use MS Voice Command.
[Tilt, TyTN II, MDA Vario III General] liteswap:
I had this problem. I found it doesn't need a soft reset, just switch it off (hit the power button briefly) and back on again. Fixed it every time. Annoying but not fatal...
[Tilt, TyTN II, MDA Vario III General] Scott Whitehouse:
I am having a similar problem. I recieved an 8925 with a touch screen that doesn't work. No physical damage, but I noticed there is no start screen. I got it to upgrade to WM 6.1but still no start menu or system settings. It boots to the align screen but of course the touch screen doesn't work so that's all I get. Sometimes I get past that and the rest of the PDA seems to work with the keypad. I have reset it several times and still nothing. I removed the touchscreen and ordered a new one. Hope I haven't spent folishly. If someone has a clue to what the problem is I would be very grateful.
[Verizon Galaxy S 5 General] xmoox:
Mods please delete
[Verizon Galaxy S 5 General] Dudash:
See here
[Verizon Galaxy S 5 General] xmoox:
Yeah you posted while I was writing lol going to delete this thread
[Nexus 5 Q&A, Help & Troubleshooting] OneDon:
As the title States, I'm looking for testers for ownrom. I'm the maintainer for the Nexus 5 "Hammerhead" variant, doesn't matter how much testers. Please make sure your comfortable with flashing Roms constantly, and won't panic during a boot loop.

-TeamOwnDroid
[Galaxy E5, E7 Themes and Apps] NishRapper:
MOD EDIT

Content removed
[Galaxy E5, E7 Themes and Apps] NishRapper:
[IMG="SCREENSHOTS:-"]http://xdaforums.com/attachment.php?attachmentid=3644586&d=1455356936[/IMG]
[Galaxy E5, E7 Themes and Apps] indianets:
Have you copied links from already published articles? None of them actually work as they are not actual links but have ... in middle as if it was shortened somewhere.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
OmniROM

[#MARSH]

[#ESPRESSONAME]

​

[#WHATSOMNI]

[#WARRANTY]

Downloads:

[#DLGITHUBIO]

[#INFOOMNI]

[#DONATETOME]

XDA:DevDB Information

[unified] OmniROM 6.x, ROM for the Samsung Galaxy Tab 2

Contributors

Android-Andi, Ziyan

ROM OS Version: 6.0.x Marshmallow

ROM Kernel: Linux 3.0.x

Version Information

Status: Testing

Created 2016-06-24

Last Updated 2017-04-30
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] CygnusHyoga:
Thanks bro, cant wait to download and test this new omni 6.0 :D

Still testing version, right? Any knowns bugs? Or bugs same with your cm13?

And about the usefull link, I didnt see any changelog for omni 6.0 or am I miss that?
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Buleste:
The screen rotation seems to wrong for me. Other than that it seems to work well
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] iks8:
Exactly the same issue. Screen rotation is switched but touch is working fine
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
I don't have my tab with me, but i can upload a flashable zip later to test. I guess i know the issue.

~ All my work, news etc. on http://andi34.github.io ~
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Same as on CM 13.

looks like omni updated their page and the links not working anymore. You'll see made changes on gerrit.

~ All my work, news etc. on http://andi34.github.io ~
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Chromecast should work, but haven't tested myself.

~ All my work, news etc. on http://andi34.github.io ~
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
I hope attached zip fixes the sensor position to have proper rotation :) Please let me know if it works :)
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] iks8:
fix is working, thanks ;)
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] hkjr:
Same here - good to go!
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] lepa71:
Do I need to have Andy's TWRP? Which gapps are recommended? Do I need to flash supersu if I want root? Thanks
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Idk if older or other recoveries work, i only use the one i shared.

Deltadroid gapps, mentioned on my userpage.

About root... It's mentioned in FAQ too for a good reason....

~ All my work, news etc. on http://andi34.github.io ~
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] jforero:
now is working fine, thanks...
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] lepa71:
Do you recommend basic delta gapps or standard? I usually use nano open gapps.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
You can use open gapps too, but they cause trouble for some user if permissions aren't set before sign in.

~ All my work, news etc. on http://andi34.github.io ~
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Astro Noid:
Dear [MENTION=5153662]Android-Andi[/MENTION] & Ziyan,

thanks very much for quick updates. is 5521 build perfect?

~Omnivora~

"...stay success and keep tab 2 alive at least till 2020"
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Seems like it doesn't fix simpin which i thought it will fix :/

~ All my work, news etc. on http://andi34.github.io ~
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Hello nightly :)

http://dl.omnirom.org/espressowifi

http://dl.omnirom.org/espresso3g

Note: switching between homemade and nightly builds must be a clean flash!

~ All my work, news etc. on http://andi34.github.io ~
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] iks8:
Still I have the same rebooting issue as on every 5.0+ ROM. It works fine for a while and then it soft reboots :(
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] BoneWithABeagle:
Alright, since I resurrected a couple of NAND-bricked 16GB P31x0 ...

Bug 1: Tap on the "User image" in the notification shade - and try to set a avatar image for the "Owner" account - system crashes and reboots once you tap the "Save" button where you can crop the image you selected.

Bug 2: YouTube doesn't work overly well. When you start playing back a video it plays for 2-3 seconds then "stutters" and gives a "playback error". You can retry at which point it will work, but it's annoying (doesn't happen with the July/2 CM13 build). Also, YouTube only shows up to 480p in "Quality" where in CM13 it shows 720p (landscape full-screen).

Bug 3 (not sure if bug or "feature"): You can set the "Recent app" thingy to display "full screen" (no navbar / statusbar), but you cannot enable "extended desktop" anywhere for the UI itself.

Bug 4 (not sure it is a bug): I see a rather strange behavior on system boot...

- When I "shutdown" and have it plugged into the charger it shuts down, then the "charge anim" shows up and the screen is cleared but the backlight isn't turned off.

- When I start the system (from "shutdown" state) it seems as it does a "double boot" ... Galaxy Tab logo screen -> blank -> "reboot" (?) -> Galaxy Tab logo screen -> blank -> Omni boot anim.

All clean flashed with Delta's latest "base" Gapps package and SuperSU 2.65

I'll also slap a post into the CM13 thread as I see two minor problems with the latest build as well. ;)
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Hurkamurka:
Thanks for the headsup! Now i'm on Slim ROM, but want to try Omni again as i'll have the time and will report back.

Thanks again!
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Hurkamurka:
[/COLOR]

Thanks again! It's working. I used the Nanomod installation method with setupwizard. After first run of the Play Store i had to force close the app and clean the cache and data, then it said there is no play service on this device, but i could search and download, so no problem at all.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Update with October security patch level uploaded! Have fun!

Edit:

Forgot to update the security string [emoji14] it'll still show 2017-09-01 but all October patches are in...
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Build with KRACK fix uploaded!

Note: zip naming changed a little bit, I have reworked my build setup according to our Jenkins on Unlegacy-Android (another project I am working on) last week.

What does it mean? I hope in future I am able release incremental updates [emoji4] (seems like the custombootimg.mk make it fail ATM, need to investigate further when I have more time)
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Miwer:
Hi,

Is it just me, or does OmniRom not have Privacy Guard implemented? I cannot seem to find the option to enable it by default for newly installed apps.

Compared to Slim, I'm missing the enable button en developer options, and hence the Privacy Guard settings in Security.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
New builds up!

More information here http://andi34.github.io/news.html
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] KDMcM:
What is espresso10rf?

Hi.

Just tried to install this on my GT-P5110. It tells me the package is for a GT-P5110, but that I have a "espresso10rf".

I have a GT-P5110. What's an espresso10rf, please?

Thanks.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Skarni:
Have you installed the latest TWRP? If you are using CWM or some other recovery you might have problems.

Here is the link for Andi's latest TWRP for our devices. http://andi34.github.io/recoveries_tab2.html
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] KDMcM:
I've got a new problem. I tried to reflash SlimKat 4.4.4, which had been working, and the tab's gone into a reboot cycle. I think I'll have to go back to Odin.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
It's never a good idea dirty flashing between different roms and Android versions. Lol.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Hey together!

Some of you might have read already on a different thread that i am staying away from Android for some time (not sure yet if i continue later). Private life is complicated at the moment… Lot’s of work in my Job (and looks like it’s not getting better soon…), my gf needs to quit her job (so we’ll only have one income for some time to pay our bills), relationship between me and my gf had better times in the past too…

Well, no need to go more in detail, but I’ve pushed some last Updates for suppported Roms and Devices as a christmas present for you!

Like always: details and downloads can be found here: http://andi34.github.io

I wish you all merry Christmas and a Happy new year!
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] smart-t78:
thanks andi for the 01/13 update with included january patches:good::good:
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
I'll run a new build next days, ATM copy& paste is broken.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] mentat:
Greetings Andi,

Your continued support of this device is greatly appreciated.

I was just wondering if the copy/paste issue is also shared with the latest AOSP/UA builds for espressowifi?

Thanks.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] smart-t78:
copy+paste is already fixed in ua6.0 01/14 build;)
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Luigi.tsukune:
i've tested lineage official from they website and the rom is a bit laggy in this device, after a day using it, i decided to the last build you have of this rom, i have to say it boot fast, is smoother than lineage, im happy with it, sorry for my bad english but i want to post my experience, something ive noticed is lineage have a differente density configuration, the icons looks more tiny and the screen image more big, but it makes everything pixelated, in your room the icons looks normal and the screen quaility is not pixelated, i like that.

thanks for this great rom to keep live this oldy tab.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
New builds are up.

Switched to default libion, thx to [MENTION=2633638]Ziyan[/MENTION] and [MENTION=4473900]amaces[/MENTION] !

Note: don't flash any custom kernel on this build (also AnyKernel isn't compatible ATM)!
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Luigi.tsukune:
thanks for your work, but, im trying to download but it says no mirror found

its a problem with my internet connection?

what changes are in this build?
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] ze7zez:
Ask about hosting issues on Twitter.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Luigi.tsukune:
i dont use twitter :/
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] hollandais:
I've download yesterday evening without any problem....

Envoyé de mon Galaxy Tab 2 en utilisant Tapatalk
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Luigi.tsukune:
i dont know what happened, I tried again hours later and i downloaded without any problem too, i flashed without problem upgrading from last build
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Androidfilehost is updating server quite often, sometimes because of that slow dl speed or no mirrors.

If you know another free solution with ftp upload let me know, file1 was legend but it doesn't exist anymore.

Own server for Downloads: can't effort, sharing my work for free is enough. I've updated my PC in the past already (wasn't cheap) to keep supporting all the projects.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] hollandais:
Last OMNI, 20180211, is good as always. Thanks [MENTION=5153662]Android-Andi[/MENTION]

Envoyé de mon Galaxy Tab 2 en utilisant Tapatalk
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] barbe31:
Which version?

I was using Lineage OS 13 during weeks but I should have messed up my install and it was quite slow. I just tried Slim and it is quite pleasant but I have Omni on my smartphone so I would like to try it on Tab 2 10.1"

Any reason I should install 7.0 instead of 6.X? According to experience, which one is the lightest? (don't need gapps, I can live with apk)

Thanks
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
New build up :) enjoy!
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] stevejohnson42:
Not totally answering your question - I have Omni 6 on by Tab 2 7.0" ; smooth / works great for me. I have gapps installed ( just out of habit ) - my use is purely as for streaming music -- so not really stretching it any. I have used Slim 6 from Andi - similar results
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] secretwolf98:
[MENTION=5153662]Android-Andi[/MENTION], is LineageOS 13 for our Tab 2's forgotten?
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
It's OT here... Things will happen if it's time for...

Be Happy I've updated 2 ROMs - I've got a a$$ full of work in real life, things between me and my GF aren't well and I've got a bad pain from my back into the right costal arch since last Wednesday and it's not really better until today...
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Update available. May ASB changes applied.

Attached a "userdebug" kernel for those who need it.

Don't flash this kernel on top of other Roms!
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] sinisthro:
Thank you [MENTION=5153662]Android-Andi[/MENTION] for the 20180610 build. Works fine like always.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] xdaJoschi:
I got a big fat problem while flashing ANY other then the stock rom. I got the 3G (P-5100) Version and after flashing a new rom (for example this here) the tablet can´t find any 3G-Network... What am I doing wrong? I tried every possibility while flashing...
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Check your APN settings
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] xdaJoschi:
Leider bekomme ich nichtmal nen Ausschlag beim Empfang. Sonst wären die APN-Settings sicher ein Fact. Doch selbst mit falschen APN-Settings hätte ich zumindest irgendeinen Empfang, oder?
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
What does

adb shell cat /sys/board_properties/type

Say? If it's detecting the right variant I still believe it's wrong APN settings.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] sinisthro:
Thank you so much [MENTION=5153662]Android-Andi[/MENTION], for the new rom.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] stevejohnson42:
20190304 build question -

Anybody else have issue with this build ? It wouldn't boot for me - on the other hand , when I have some time - will try again - there are a couple of things that were not ideal ; I dirty flashed , and what was on tablet was a December build. Not a big issue -- booted back into Recovery , wiped and restored the backup I had. December build was solid - so haven't really been checking to see if new builds were up

Might be kernel changes Andi notes on his site ; Kernel version displayed is 3.0.101-gb9042d6 ; assume something I flashed of Andi's and never needed to look at again
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
You've flashed anything else? Can cross-check in the evening myself if I forgot something by accident
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] stevejohnson42:
Not yet .. will let you know.., maybe today .. thanks
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] stevejohnson42:
What i have been able to try so far ; full wipe - reflashed ; similar result

Then went back and wiped again - and just flashed the ROM ( no gapps / no root ) - same deal

Log of recover_rev1.log is log I pulled from TWRP

I did download the file again - did not do a MD5 check ; but file size from yesterday and today match

I have been using BeansGapps-Mini-7.1.x-20170725 ; i just also pulled down open gaps / arm - mini to have on hand to try later

Using TWRP 3.1.0-2 ; I assume I pulled from link on your site ; I do not recall for sure

I just downloaded your latest Slim7 , I might have time at lunch to try that

Edit : Slim from same build date boots - I did not install gapps ; just checked to see if it booted into OS

Thanks for your work on this tablet and keeping it up to date
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Boots fine here.
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] stevejohnson42:
Ok , I will recheok download and try later .. thanks for checkng
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
Noticed you used 7.1 gapps on 6.0 ;)
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] stevejohnson42:
No - referring to Omni 7 => Android 7.1.2

But -- I did go back and recheck :) -- sometimes with multi-tasking I pick wrong files ; I have had 6 on the tablet lately

a mistake i have made

Edit -- ahhh ; I see it now ; I am in the wrong thread
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
No Problem. I'll have to investigate further, couldn't fix it quickly today...
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] draxx31:
thanks @Android-Andi to provide this Rom.

I tried RR too, but it was not fully translated and annoying lags occured...

This Rom looks like as finalized product and all is well presented / structured.

It is fast as a ten years tablet can be, lol.

I did not install google apps to avoid slow down.

Nevethless I get an annoying bug. I installed firefox through aurora store. When I tried to use firefox (search bar / google search), the keyboard is well shown but pressed characters are not shown. It is like if firefox was frozen (even if others actions like go to firefox parameters / new tabs work)...

Did you already encounter this behavior?
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] Android-Andi:
@draxx31 thanks for the feedback!

I am not active on Android development anymore. It was a great time here on XDA, I've learned a lot about Android development, working in teams, met a lot of great people here and so on.... But I've lost the interest and sometimes got the feeling to be a personal compile bot for some people. My 3 Galaxy Tab 2 haven't been used actively, I've only used them to support the community with new ROMs.

So yeah, I am now working on an OpenSource Photobooth software in my limited sparetime.

My daughter was born in August 2021 and the focus changed.

I am not sure if there's any active development for the galaxy tab 2 family here on XDA.

Best regards

Andi
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] draxx31:
Hello @Android-Andi ,

I understand. Even If you explore new domains, you can see your work is still used and it should be rewarding 💪

Become Dad is a full daily job 😉

Thanks for your feedback 🙂
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] daitalos:
Omni 6

I think the fastest rom until now , very light , and with very good battery management... my device running nightly builds without problem ... Super! Nice work Andi & Ty
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] daitalos:
Takes to long to booting

To day, made twenty minutes to boot & apps...Is normal this Andi? But I am very pleased from rom...run very fast & correctly.... Nice work thanks
[Galaxy Tab 2 (Unified 7" + 10.1") Android Developm] lepa71:
Is it a 1st time or every time?