what is Columnweight ,rowweight and gravity in xml at android studio ? - Android Studio

android:layout_gravity
android:layout_columnweight
android:layout_rowweight
what does these xml lines refer in android studio in grid layout ?

Android: layout_gravity
- If value is 1, the object occupies the width or length of the page
-2 objects of gravity value 1; Share half of the page
android:layout_columnweight
android:layout_rowweight
- Used for table_layout, rows, and columns. The same employer is used as Layout_gravity.
- For example, there are 5 columns or rows. I want them to share the page equally.
All weight values 1
srinidhikowshik said:
android:layout_gravity
android:layout_columnweight
android:layout_rowweight
what does these xml lines refer in android studio in grid layout ?
Click to expand...
Click to collapse

Related

Transparent Text Icon

Hey all,
I was inspired by all the fabulous work on xda and created a python script to render transparent text icons.
PHP:
from PIL import Image, ImageDraw, ImageFont
import zipfile
import os
class iconpack:
def __init__(self, zipfsp, fontfsp, fontsize, height, width):
self.zip=zipfile.ZipFile(zipfsp, mode='w') # create the zip file
self.fontfsp=fontfsp
self.fontsize=fontsize
self.h=height
self.w=width
def addicon(self,lines):
iconfsp=self.render(lines)
self.zip.write(iconfsp) # add the icon tot he zip file
os.remove(iconfsp) # delete the remaining icon file
def render(self, lines):
im =Image.new("RGBA",(self.w,self.h),(0,0,0,0)) # adjust the 4th zero to adjust transparency
draw = ImageDraw.Draw(im)
font = ImageFont.truetype(self.fontfsp,self.fontsize) # the font file needs to be accessible
y=0
for line in lines:
rendered_hw=font.getsize(line) # figure out how wide the rendered text will be
x=im.size[0]/2-(rendered_hw[0]/2) # so we can centre it
draw.text((x,y), line, font=font)
y+=rendered_hw[1]-5 # adust the gap between the lines
# write image file
iconfsp=lines[0]+"_"+lines[1]+".png"
im.save(iconfsp, "png")
del im
return iconfsp
# I tried a few different sizes, I saw a simplay iconpack on xda which used 46x81, on the shoulders of giants, etc
# zipfile, font file, font size, width and height
ip=iconpack('DroidSans.zip','DroidSans.ttf',23,46,81)
ip.addicon(["Inter", "Webs"])
ip.addicon(["My", "Email"])
ip.addicon(["Work", "Email"])
ip.addicon(["Snap", "Shot"])
ip.addicon(["Pod", "Casts"])
ip.addicon(["Audio", "Books"])
ip.addicon(["The", "Mrs"])
ip.addicon(["Bar", "Code"])
ip.addicon(["Four", "Square"])
ip.addicon(["SMS", ""])
ip.addicon(["Maps", ""])
ip.addicon(["Reddit", "is fun"])
I cannot link out to a piccy of the results, but if you're curious and can be arse to type in a url, have a look at babbaging blogspot com.
If it's useful to anyone, you're welcome.
Questions?, ask away.
Matt

Android Studio 2, percent layout

I'm using PercentRelativeLayout in my apps. As you may know, with this layout, you don't have to specify layout_width and layout_height (you use app:layout_heightpercent and the equivalent width instead), and this worked fine on the previous Android Studio version. But now that I've updated to the new Android Studio 2, I get errors, it says I must define the default height and width values. What do I do?
Set them to 0dp
Sent from my D6653 using Tapatalk
Thanks, I'll try that
Uninstall the new version

RGB Color Slider Tutorial for Tasker + KLWP | KWGT | ... Zooper Widget?

I've been looking for a way to adjust a global "accent color" that I've created with KLWP and KWGT.
I couldn't find anything... So, I found a way to do it myself.
This is for those who are familiar with Tasker and KLWP...
There may also be a better way to do this.
Step 1 Create Tasks
You'll need to create 8 separate tasks
All Capitol letters are important!
1. Accent
2. Color
3. Red
4. Redhex
5. Green
6. Greenhex
7. Blue
8. Bluehex
--
1. Accent
-
1- Show Scene
Name: Accent Picker
Display As: Display, Full Display, No Bar
Animation: System
Continue Task Immediately: ✓
2- Variable Set
Name: %Accent
To: %0
2. Color
-
1- Variable Set
Name: %Color
To: %Redhex%Greenhex%Bluehex
3-8 Red, Redhex, Green, Greenhex, Blue & Bluehex
-
1- Variable Set
Name: %Red Repeat for all other tasks using the tasks name.
To: 16 Anything but 1-15
Step 2 Create A Profile
You'll need to create 1 Profile
1. Color
-
1- Event • Variable Set
Variable:%Color
Value:%Color
Step 3 Create A Scene
I called my scene Accent Picker.
You can design your scene the way you want but you will need the following elements for this tutorial.
You'll need 5 separate elements.
1. Red | Slider Element
2. Green | Slider Element
3. Blue | Slider Element
4. Finish Button | Text Element
5. Preview Box | Rectangle Element
Purpose:
You'll be using each slider element to create a value for each channel R G B
You'll be using the "Finish Button" to destroy the scene when you are done and to broadcast the new variable to KLWP or KWGT.
You'll be using the "Preview Box" to view the color you create with your slider.
1-3. Red | Slider Element *Repeat the steps below for Green and Blue*
UI
Name: Red
Min: 16
Max: 255
Default: %Red
Value Selected
1 - Variable Set
Name: Red
To: %new_val
2- Array Process
Variable: %Color
Type: Remove Duplicates
3- Variable Convert
Name: %new_val
Function: Decimal to Hex
Store Result In: %Redhex
4- Variable Set
Name: %Accent
To: %Color
5- Array Process
Variable: %Color
Type: Remove Duplicate
Min: 16
Max: 255
Default: %Red
4. Finish Button
UI you can dress this up however
Name: Done
Tap
1- Variable Set
Name: %Accent
To: %Color
2- KLWP Send Variable
Configuration: Tasker String - %Accent | Kustom Variable - accent
3- Destroy Scene
Name: Accent Picker
5. Preview Box
UI
Geometry: However you want
Colour: %Color
Step 4 Create KLWP Touch Action & Formula
You can now create a touch action in KLWP
Touch
Single: Launch Shortcut
Shortcut: Task Shortcut : Accent
You can call in the new Hex code value with the Formula Editor string
Formula
$br(tasker, accent)$
Thanks!
---
I'm currently working on a KLWP called "Nokose" which is the Muscogee word for Bear.
I'm a previous owner of multiple Windows Phones. I miss the dark theme option and having control over the accent color of my phone.
Very cool!
As an addition/adjunct/enhancement to this Project, the AutoTools beta plugin has two color pickers that are slightly different than the RGB sliders. One is a color wheel style, the other is a pre-selected set of colors from the Material Design palettes.
Could likely add buttons to the Scene to launch these as well in addition to using the RBG sliders.
Ratchet_Guy said:
Very cool!
As an addition/adjunct/enhancement to this Project, the AutoTools beta plugin has two color pickers that are slightly different than the RGB sliders. One is a color wheel style, the other is a pre-selected set of colors from the Material Design palettes.
Could likely add buttons to the Scene to launch these as well in addition to using the RBG sliders.
Click to expand...
Click to collapse
Great idea! Thanks
chaseghuggins said:
I've been looking for a way to adjust a global "accent color" that I've created with KLWP and KWGT.
I couldn't find anything... So, I found a way to do it myself.
This is for those who are familiar with Tasker and KLWP...
There may also be a better way to do this.
Click to expand...
Click to collapse
I've done this by following your tutorial some time ago. Thank you!
Just wanna share how the Color Picker looks: https://s3.postimg.org/8hmo6li9f/Screenshot_2016_08_17_09_49_42.png
#Henkate said:
I've done this by following your tutorial some time ago. Thank you!
Just wanna share how the Color Picker looks: https://s3.postimg.org/8hmo6li9f/Screenshot_2016_08_17_09_49_42.png
Click to expand...
Click to collapse
That's awesome! Thanks for sharing.
Ratchet_Guy said:
Very cool!
As an addition/adjunct/enhancement to this Project, the AutoTools beta plugin has two color pickers that are slightly different than the RGB sliders. One is a color wheel style, the other is a pre-selected set of colors from the Material Design palettes.
Could likely add buttons to the Scene to launch these as well in addition to using the RBG sliders.
Click to expand...
Click to collapse
Which auto tools beta app is the color picker? Unless I'm overlooking it, I don't see it. Thanks!
bcraft85 said:
Which auto tools beta app is the color picker? Unless I'm overlooking it, I don't see it. Thanks!
Click to expand...
Click to collapse
When adding the AutoTools Action in Tasker, choose AutoTools > Dialog.
Then under the choices for "Type" of Dialog you'll see "Color PIcker".
chaseghuggins said:
I've been looking for a way to adjust a global "accent color" that I've created with KLWP and KWGT.
I couldn't find anything... So, I found a way to do it myself.
This is for those who are familiar with Tasker and KLWP...
There may also be a better way to do this.
Step 1 Create Tasks
You'll need to create 8 separate tasks
All Capitol letters are important!
1. Accent
2. Color
3. Red
4. Redhex
5. Green
6. Greenhex
7. Blue
8. Bluehex
--
1. Accent
-
1- Show Scene
Name: Accent Picker
Display As: Display, Full Display, No Bar
Animation: System
Continue Task Immediately: ✓
2- Variable Set
Name: %Accent
To: %0
2. Color
-
1- Variable Set
Name: %Color
To: %Redhex%Greenhex%Bluehex
3-8 Red, Redhex, Green, Greenhex, Blue & Bluehex
-
1- Variable Set
Name: %Red Repeat for all other tasks using the tasks name.
To: 16 Anything but 1-15
Step 2 Create A Profile
You'll need to create 1 Profile
1. Color
-
1- Event • Variable Set
Variable:%Color
Value:%Color
Step 3 Create A Scene
I called my scene Accent Picker.
You can design your scene the way you want but you will need the following elements for this tutorial.
You'll need 5 separate elements.
1. Red | Slider Element
2. Green | Slider Element
3. Blue | Slider Element
4. Finish Button | Text Element
5. Preview Box | Rectangle Element
Purpose:
You'll be using each slider element to create a value for each channel R G B
You'll be using the "Finish Button" to destroy the scene when you are done and to broadcast the new variable to KLWP or KWGT.
You'll be using the "Preview Box" to view the color you create with your slider.
1-3. Red | Slider Element *Repeat the steps below for Green and Blue*
UI
Name: Red
Min: 16
Max: 255
Default: %Red
Value Selected
1 - Variable Set
Name: Red
To: %new_val
2- Array Process
Variable: %Color
Type: Remove Duplicates
3- Variable Convert
Name: %new_val
Function: Decimal to Hex
Store Result In: %Redhex
4- Variable Set
Name: %Accent
To: %Color
5- Array Process
Variable: %Color
Type: Remove Duplicate
Min: 16
Max: 255
Default: %Red
4. Finish Button
UI you can dress this up however
Name: Done
Tap
1- Variable Set
Name: %Accent
To: %Color
2- KLWP Send Variable
Configuration: Tasker String - %Accent | Kustom Variable - accent
3- Destroy Scene
Name: Accent Picker
5. Preview Box
UI
Geometry: However you want
Colour: %Color
Step 4 Create KLWP Touch Action & Formula
You can now create a touch action in KLWP
Touch
Single: Launch Shortcut
Shortcut: Task Shortcut : Accent
You can call in the new Hex code value with the Formula Editor string
Formula
$br(tasker, accent)$
Thanks!
---
I'm currently working on a KLWP called "Nokose" which is the Muscogee word for Bear.
I'm a previous owner of multiple Windows Phones. I miss the dark theme option and having control over the accent color of my phone.
Click to expand...
Click to collapse
Great Thing
Thanks
Sorry for dredging up an old cow, but I kinda need this color picking mechanic for my light controls, so..
I got through the whole tutorial except for the last function of the sliders, where it tells you to enter a minimum and maximum for processing an array.
"5- Array Process
Variable: %Color
Type: Remove Duplicate
Min: 16
Max: 255
Default: %Red"
For some reason, tasker wont (nolonger?) let me pick the min/max values.
Is there a way around this? Or has tasker managed to make it automatic or something?
You may see how the scene runs without the min and max? I apologize if it does not work. I've not used this scene recently.

[MOD][TUTORIAL] Pixel Launcher Mods + NMF26F SystemUI & Framework Mods - Updated 12/7

[MOD][TUTORIAL] Pixel Launcher Mods + NMF26F SystemUI & Framework Mods - Updated 12/7
I am not responsible for your phone or anything bad that happens as a result of installing these files.
NMF26F Dynamic Navbar mod can be found in post # 105 and in my other thread HERE.
NMF26F SystemUI mods (navbar animation, 4 row quicksettings, navbar tuner, and brightness toggle) can be found in post # 3.
First, thanks to @luthepa1 for providing the Pixel Launcher apk!
Second, you probably have to be on 7.1.1 (NPF10C) for this to work. Will this work on other phones on 7.1.1? Probably. I'm not sure if there was any real "porting" to bring this to the Nexus 6P or if they just snagged the apk and viola it works. Try it out at your own risk, if you like.
I have simply modded luthepa1's apk and made the icons smaller, the quick search button smaller, lowered the hot seat, and taken away the text on the home screen. That's it. This zip does not contain anything other than the NexusLauncherPrebuilt.apk. There are no other mods in there. That's it. Just the NexusLauncherPrebuilt.apk. This zip will not touch any other "Pixel mods" you may have installed like navbar icons, wallpapers, SystemUI mods, etc...
If you have installed another version or someone else's port of the Pixel Launcher, I suggest you find out exactly what the name of that Pixel Launcher apk is and exactly where it is on your phone.
I am aware of two different "versions," if you will, of the Pixel Launcher.
luthepa1's apk was name NexusLauncher.apk, and it went in a folder called NexusLauncher in \system\priv-app.
There are two others that I've seen that are called NexusLauncherPrebuilt.apk, and the go in a folder called NexusLauncherPrebuilt in \system\priv-app.
If you install this Pixel Launcher on top of one that was name differently than this, and went in a different folder than this, you will probably have two separate instances of the Pixel Launcher.
So, if your savvy enough you can open up the zip and change the name of the apk file and the name of the folder that it creates/goes into in \priv-app to match your existing Pixel Launcher install.
Otherwise, find your current Pixel Launcher install, and delete its folder and apk from your phone, and then reboot before you install this one.
Wuditlooklike?
Before ?
{
"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"
}
After ? Choose Your Flavor
How'd I do that?
To change the size of the icons...
Go to \res\xml\device_profiles.xml
Find this line:
Code:
<profile launcher:name="Nexus G" launcher:minWidthDps="387.0" launcher:minHeightDps="659.0" launcher:numRows="5" launcher:numColumns="5" launcher:numFolderRows="4" launcher:numFolderColumns="4" launcher:minAllAppsPredictionColumns="4" launcher:numHotseatIcons="5" launcher:iconSize="47.0" launcher:iconTextSize="0" launcher:hotseatIconSize="47.0" launcher:defaultLayoutId="@xml/default_workspace_5x5" />
Change the "iconSize" values to whatever you want:
launcher:iconSize="58.0" launcher:hotseatIconSize="58.0" (I have set mine to 45.0)
To remove the icon text from the Home Screen..
1) To remove the white text, go to \res\values\colors.xml
Find this line:
Code:
<color name="workspace_icon_text_color">[COLOR="Red"]#ffffffff[/COLOR]</color>
Change the value to #00000000
2)To remove the underlying text shadow, go to \res\values\styles.xml
Find this line:
Code:
<item name="android:shadowColor">[COLOR="Red"]#b0000000[/COLOR]</item>
Again, change the value to #00000000
We have not really "removed" the text and its shadow. We've simply made it transparent, which is really all we're after here.
To change the color of the app drawer background...
Go to \res\values\colors.xml
Find this line:
Code:
<color name="all_apps_container_color">[COLOR="Red"]#fff2f2f2[/COLOR]</color>
Change the value to whatever color you want. The first two characters represent the opacity or transparency level. Here's a listing of transparency values from Stack Overflow - http://stackoverflow.com/questions/23201134/transparent-argb-hex-value
I have changed mine to "8c000000". 8c represents a 55% transparency level, and 000000 represents black.
To change the size of the QSB (Quick Search Button)...
Go to \res\values\dimens.xml
Find this line:
Code:
<dimen name="qsb_button_height">[COLOR="Red"]56.0dip[/COLOR]</dimen>
Change the value to whatever size you like. I've change it to 40.0dip in this zip.
To change the height of the "hotseat" area...
Go to \res\values\dimens.xml
Find this line:
Code:
<dimen name="dynamic_grid_hotseat_height">[COLOR="Red"]88.0dip[/COLOR]</dimen>
Change the value to whatever height you want. I've changed it to 68 in this zip.
To make the hotseat background totally transparent...
This will require apktool or baksmali/smali or some other tool to get at the smali files.
Go to \smali\com\android\launcher3\hotseat.smali
1) Go to line #335
Change:
Code:
const/16 v1, 0xff
to
Code:
const/16 v1, 0x[B][COLOR="Red"]00[/COLOR][/B]
2) Go to line # 355
Replace:
Code:
const/4 v4, 0x1
with
Code:
[B][COLOR="Red"]const/4 v4, 0x0[/COLOR][/B]
Credits
Pixel Launcher apk - @luthepa1
Change Log
12/7/16
- Added NMF26F Dynamic + Smaller Navbar mod to post # 105.
- Added NMF26F SystemUI mods (Nav animation, NavTuner, 4QS, Brightness Toggle) to post # 3.
12/2/16
- Added non-root installable versions to post #2.
11/28/16
- Added two 5x7 JAB versions (see "Additional Zips Attached to Post" section below for description).
11/26/16
- Fixed transparent hotseat. Uploaded new kinetx version 2
- Added 5x7 homescreen/5x8 app drawer versions. One with transparent hotseat and one without.
11/25/16
- Added kinetx version (see "Additional Zips Attached to Post" section below for description).
11/16/16
- Added JAB versions (see "Additional Zips Attached to Post" section below for description).
v 2.0 (11/15/16)
- Changed the home screen opened folder grid to 5x5 max per page instead of 4x4 max per page.
- Made the Google quick search button smaller so as to better match the other icons.
- Lightened up the app drawer background a little bit. Went from 80% opacity to 55% opacity.
- Figure out how to "remove" only the icon text on the home screen while still leaving text in the app drawer, folders, and deep shortcuts.
- Lowered the height of the hot seat area so as to better match the other changes.
- Renamed the apk to NexusLauncherPrebuilt.apk and changed its location in \system\priv-app to the NexusLauncherPrebuilt folder. It seems that this is probably the way it is setup in the Pixel since everyone else but luthepa1 has it set up like that. Plus, I figure more people won't have to worry about manually deleting their existing installs if I changed the name and location to what is probably "proper."
(Due to this, if you installed my earlier zip, you will need to manually delete it, or you will have two instances of the Pixel Launcher on your phone.)
Additional Zips Attached to Post
- Totally transparent app drawer + all of the aforementioned mods (see screenshot in post #7)
- 5x6 homescreen, 6x7 app drawer + plus all of the aforementioned mods (see screenshots in post #8)
- 5x6 homescreen, 6x7 app drawer + Totally transparent app drawer + plus all of the aforementioned mods
- JAB (Jack.Armstrong.Blow) versions with slightly bigger icons (50 instead of my default 45) and a slightly bigger Quick Search Button (45 instead of my default 40). See screenshots in post # 25.
- JAB (Jack.Armstrong.Blow) versions with slightly bigger icons (50 instead of my default 45) and a slightly bigger Quick Search Button (45 instead of my default 40) + 5x7 homescreen and 5x8 app drawer (see screenshots of transparent app drawer version in post # 69).
- kinetx version with 5x6 homescreen, 6x7 app drawer + transparent app drawer + transparent hotseat + all of the aforementioned mods (see screenshot in post #60).
- 5x7 homescreen/5x8 app drawer + transparent app drawer + plus all of the aforementioned mods (see screenshot in post #63).
- 5x7 homescreen/5x8 app drawer + transparent app drawer + transparent hotseat plus all of the aforementioned mods (see screenshot in post #63).
These are all twrp or flashfire flashable zips.
See post #2 for "normally-installable," root-not-necessary versions.
These are "normally" installable apks.
They are in zips so that you'd know which one was which
To install:
Unzip the zip
Place the apk that's inside the zip on your phone
Make sure that you have "Unknown Sources" turned on in Settings
Go to Settings
Then, go to Security
Then, scroll down until you find the "Unknown Sources" toggle switch
Switch it on
Click the apk file
Select "Install"
To Uninstall:
Go to Settings
Then, go to Apps
Find and click on the "Pixel Launcher" from your apps list
If the "Uninstall" option is available for you , the simply click it to uninstall the Pixel Launcher
If the "Uninstall" button is grayed out:
Click the "Open by Default" option.
Click the "Clear Defaults" button.
Go back to the "Pixel Launcher" app page
The "Uninstall" button should now be available.
Click the "Uninstall" button to uninstall the Pixel Launcher.
FYI
The Pixel Launcher "swipe left on the home screen to open Google Now" function only works when the Pixel Launcher is installed as a system app. I know, it sucks, but there is absolutely nothing I can do about it.
If you're not sure which one does what, read the "Additional zips attached to this post" section from the first post.
NMF26F | Pixel Navbar Animation | Custom Navbar Icons | Navbar Tuner
As the custom home navbar icons in images one and two are my own work and design, you may use these navbar icons in your own work so long as you mention me in your credits. Thank you.
1 -
2 -
3 -
4 -
5 -
6 -
(see post # 152 for download)
7 -
(see post # 152 for download)
8 -
(see post # 152 for download)
These are flashable zips that I made for myself because there was certain combination of things that I wanted that I couldn't find elsewhere. That's why I didn't start a new thread for them. I figured I'd just upload them here.
All zips contain a SystemUI.apk, so if you have other mods that involve this file, they will get overwritten.
All zips include the following mods:
4 row QuickSettings
Navbar tuner in SystemUI Tuner
Brightness On/Off toggle in SystemUI Tuner
Pixel Navbar animation
Option of Stylized Navbar Icons
Credits
SystemUI mods (Navbar Tuner & Brightness Toggle) know how - @AL_IRAQI
Pixel Navbar animation know how - @Charles_l
These are made from NMF26F files for Nexus 6P
The number at the front of each zip corresponds with the number in front of each image above.
Great work and Thank You for adding a step-by-step.
Any chance of making a version with total transparent app dock ?
I use my 6p with Smallest width set to 590 (in developer options) which makes everything a lot smaller. Mind me asking but do you know which values to change in order to get more icons in app drawer? Because at the moment Pixel launcher app drawer grid is 5x6 which makes loads of empty space due to everything being smaller. I'd like to change the app drawer grid to lets say 7x8 or even more. Can you help me?
mholloway said:
Any chance of making a version with total transparent app dock ?
Click to expand...
Click to collapse
I've added it to the first post!
czechu01 said:
I use my 6p with Smallest width set to 590 (in developer options) which makes everything a lot smaller. Mind me asking but do you know which values to change in order to get more icons in app drawer? Because at the moment Pixel launcher app drawer grid is 5x6 which makes loads of empty space due to everything being smaller. I'd like to change the app drawer grid to lets say 7x8 or even more. Can you help me?
Click to expand...
Click to collapse
Sure thing!
Go to \res\xml\device_profiles.xml
Find this line:
Code:
<profile launcher:name="Nexus G" launcher:minWidthDps="387.0" launcher:minHeightDps="659.0" launcher:numRows="6" launcher:numColumns="5" launcher:numFolderRows="5" launcher:numFolderColumns="5" launcher:minAllAppsPredictionColumns="4" launcher:numHotseatIcons="5" launcher:iconSize="45.0" launcher:iconTextSize="13.0" launcher:hotseatIconSize="45.0" launcher:defaultLayoutId="@xml/default_workspace_5x5" />
Change and of these line to suit your needs:
launcher:numRows="6" (This is the number of rows in home screen. Adding one here automatically adds one to the app drawer as well.)
launcher:numColumns="5" (This is the number of columns in home screen. I'm not sure if this adds columns to the app drawer as well or not. I've never changed the number, but I'd assume that it does.)
launcher:numFolderRows="4" (This is the number of rows in an opened home screen folder. When the number of icons exceeds the number of folder rows multiplied by the number of folder columns, it adds another page of icons to the folder.)
launcher:numFolderColumns="4" (This is the number of columns in an opened home screen folder. When the number of icons exceeds the number of folder rows multiplied by the number of folder columns, it adds another page of icons to the folder.)
launcher:numHotseatIcons="5" (This is the number of icons in the hot seat section.)
I've added a 5x6 home screen, 6x7 app drawer version to the first post. I know you said you wanted to make more than that, but just so you and anyone else know. Here's what that looks like.
By the way, to everyone, I forgot to mention that I changed the folder rows and columns to 5x5 in all of the 1st post zips.
sharkie405 said:
I've added it to the first post!
Click to expand...
Click to collapse
Thank you
Any way to change the color of the icon text in the app drawer grid?
@sharkie405
Is it possible to make a request? If so can you change the icon sizes to 50 and the QSB to 45 in both of the 2.0 versions.
sharkie405 said:
Sure thing!
Go to \res\xml\device_profiles.xml
Find this line:
Code:
<profile launcher:name="Nexus G" launcher:minWidthDps="387.0" launcher:minHeightDps="659.0" launcher:numRows="6" launcher:numColumns="5" launcher:numFolderRows="5" launcher:numFolderColumns="5" launcher:minAllAppsPredictionColumns="4" launcher:numHotseatIcons="5" launcher:iconSize="45.0" launcher:iconTextSize="13.0" launcher:hotseatIconSize="45.0" launcher:defaultLayoutId="@xml/default_workspace_5x5" />
Change and of these line to suit your needs:
launcher:numRows="6" (This is the number of rows in home screen. Adding one here automatically adds one to the app drawer as well.)
launcher:numColumns="5" (This is the number of columns in home screen. I'm not sure if this adds rows to the app drawer as well or not. I've never changed the number, but I'd assume that it does.)
launcher:numFolderRows="4" (This is the number of rows in an opened home screen folder. When the number of icons exceeds the number of folder rows multiplied by the number of folder columns, it adds another page of icons to the folder.)
launcher:numFolderColumns="4" (This is the number of columns in an opened home screen folder. When the number of icons exceeds the number of folder rows multiplied by the number of folder columns, it adds another page of icons to the folder.)
launcher:numHotseatIcons="5" (This is the number of icons in the hot seat section.)
I've added a 5x6 home screen, 6x7 app drawer version to the first post. I know you said you wanted to make more than that, but just so you and anyone else know. Here's what that looks like.
By the way, to everyone, I forgot to mention that I changed the folder rows and columns to 5x5 in all of the 1st post zips.
Click to expand...
Click to collapse
How did you get the default layout id to be shown as default workspace 5x5? All I see is this @id/0x7F080008
czechu01 said:
How did you get the default layout id to be shown as default workspace 5x5? All I see is this @id/0x7F080008
Click to expand...
Click to collapse
I didn't do anything to change it. That's just how it is/was. Maybe it's part of the "decrypting" of the files that happens when they're opened up using apktool?
sharkie405 said:
I didn't do anything to change it. That's just how it is/was. Maybe it's part of the "decrypting" of the files that happens when they're opened up using apktool?
Click to expand...
Click to collapse
Most probably. Will try using apktool then. Thanks!
Jackson.Armstrong.Blow said:
@sharkie405
Is it possible to make a request? If so can you change the icon sizes to 50 and the QSB to 45 in both of the 2.0 versions.
Click to expand...
Click to collapse
Certainly. Let me know precisely which versions you want me to change. There are currently four posted in the first post. Assuming you respond today at some point, I'll do that this evening when I get home from work.
sharkie405 said:
Certainly. Let me know precisely which versions you want me to change. There are currently four posted in the first post. Assuming you respond today at some point, I'll do that this evening when I get home from work.
Click to expand...
Click to collapse
Both of the 5x6 homescreen layouts please.
ripv2 said:
Any way to change the color of the icon text in the app drawer grid?
Click to expand...
Click to collapse
But of course there is.
Go to \res\values\styles.xml
Find this section:
<style name="Icon.AllApps" parent="@style/Icon">
<item name="android:textColor">@color/quantum_panel_text_color</item>
<item name="android:background">@null</item>
<item name="android: paddingLeft">4.0dip</item>
<item name="android: paddingRight">4.0dip</item>
<item name="android:shadowRadius">0.0</item>
<item name="android:drawablePadding">@dimen/dynamic_grid_icon_drawable_padding</item>
<item name="customShadows">false</item>
</style>
Change the highlighted line's value to whatever color you want. Even though it's referencing a pre-stored color value from the colors.xml, you can replace that with a hex value like #ff000000, for example.
If you want me to make the mod for you, let me know precisely what color you want the text to be, and I'll do that this evening when I get home from work. You can find color hex values from websites like this one: http://html-color-codes.info/
do i flash these zips to install?
kinetx said:
do i flash these zips to install?
Click to expand...
Click to collapse
Yes
Sent from my Nexus 6P using XDA Labs
can we change the status bar icons color ? (battery and clock ex.)

Android Studio (ARcore + Sceneform)

I'm just starting out in AR and using Android Studio (ARCore + Sceneform). Using Maya to export an FBX file with embedded media checked. Using a blinn for some of the object's body and a semitransparent shader to represent glass. The issue I'm running into is the semitransparent shader is showing up 100% opaque in AR. I tried the following:
1. Blinn shader, made it semi-transparent by sliding the 'Transparency attribute' slider to the center (gray). In Maya it looks great, I export FBX load it into Android Studio use my phone to AR and nope, it's 100% opaque.
2. Blinn, Driving transparencies using a texture with gray values in the 'Transparency attribute' using a file texture. Again this doesn't work.
3. Blinn, a PNG file with some transparent areas in the 'Transparency attribute' using a file texture. Again same issue, no transparency.
Is building shaders in Maya a bad idea? If so what would be a better alternative that translates correctly? Also, I just found out about the Stingray PBS shader. Will this be the best option in Maya to use with ARCore + Sceneform? Would it be better to build the shaders in unity if that will translate material information correctly?
Guruabyss said:
I'm just starting out in AR and using Android Studio (ARCore + Sceneform). Using Maya to export an FBX file with embedded media checked. Using a blinn for some of the object's body and a semitransparent shader to represent glass. The issue I'm running into is the semitransparent shader is showing up 100% opaque in AR. I tried the following:
1. Blinn shader, made it semi-transparent by sliding the 'Transparency attribute' slider to the center (gray). In Maya it looks great, I export FBX load it into Android Studio use my phone to AR and nope, it's 100% opaque.
2. Blinn, Driving transparencies using a texture with gray values in the 'Transparency attribute' using a file texture. Again this doesn't work.
3. Blinn, a PNG file with some transparent areas in the 'Transparency attribute' using a file texture. Again same issue, no transparency.
Is building shaders in Maya a bad idea? If so what would be a better alternative that translates correctly? Also, I just found out about the Stingray PBS shader. Will this be the best option in Maya to use with ARCore + Sceneform? Would it be better to build the shaders in unity if that will translate material information correctly?
Click to expand...
Click to collapse
Can anyone please help?

Categories

Resources